qemu-guest-agent-shepherd-service probably lacks (requirement '(udev))

  • Done
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Yann Dupont
Owner
unassigned
Submitted by
Yann Dupont
Severity
normal
Y
Y
Yann Dupont wrote on 13 Jun 2023 16:55
(address . bug-guix@gnu.org)
62ea3302-59f4-e1b9-fa67-1e9aff2e12ac@univ-nantes.fr
Hi all, we've noticed that qemu-guest-agent doesn't start reliably on
virtual machines generated by guix system.
the log file shows the following:

2023-06-12 14:36:14 1686573373.873765: critical: error opening channel
'/dev/virtio-ports/org.qemu.guest_agent.0': No such file or directory
2023-06-12 14:36:14 1686573373.873779: critical: failed to create guest
agent channel 2023-06-12 14:36:14 1686573373.873782: critical: failed to
initialize guest agent channel

I guess the udev dependency is missing. The following patch seems to do
the trick here:

Toggle diff (10 lines)
diff --git a/gnu/services/virtualization.scm
b/gnu/services/virtualization.scm index 2e311e3813..b1b7eafd75 100644
--- a/gnu/services/virtualization.scm +++
b/gnu/services/virtualization.scm @@ -962,6 +962,7 @@ (define
(qemu-guest-agent-shepherd-service config) (list (shepherd-service
(provision '(qemu-guest-agent)) + (requirement '(udev)) (documentation
"Run the QEMU guest agent.") (start #~(make-forkexec-constructor
`(,(string-append #$qemu "/bin/qemu-ga")

Cheers,
Attachment: file
L
L
Ludovic Courtès wrote on 16 Jun 2023 00:20
(name . Yann Dupont)(address . yann.dupont@univ-nantes.fr)(address . 64057-done@debbugs.gnu.org)
87bkhgtlje.fsf@gnu.org
Hi,

Yann Dupont <yann.dupont@univ-nantes.fr> skribis:

Toggle quote (9 lines)
> Hi all, we've noticed that qemu-guest-agent doesn't start reliably on virtual machines generated by guix system.
> the log file shows the following:
>
> 2023-06-12 14:36:14 1686573373.873765: critical: error opening channel '/dev/virtio-ports/org.qemu.guest_agent.0': No such file or directory 2023-06-12
> 14:36:14 1686573373.873779: critical: failed to create guest agent channel 2023-06-12 14:36:14 1686573373.873782: critical: failed to initialize guest agent
> channel
>
> I guess the udev dependency is missing. The following patch seems to do the trick here:

Thanks for the bug report and suggestion! This is now fixed in
c27479a739cdbe89be7cb03f73a4a5230e84379d.

LUdo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 64057@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 64057
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch