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

Debbugs page

Yann Dupont wrote 2 years ago
(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
Ludovic Courtès wrote 2 years ago
(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
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help