Subject: bug#64057: closed (Re: bug#64057: qemu-guest-agent-shepherd-service probably lacks (requirement '(udev)))

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 15 Jun 2023 22:21:02 +0000

Your bug report

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

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
64057: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64057
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#64057: qemu-guest-agent-shepherd-service probably lacks (requirement '(udev))
From: Ludovic Courtès <[email-masked]>
To: Yann Dupont <[email-masked]>
Cc: [email-masked]
Date: Fri, 16 Jun 2023 00:20:37 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Yann Dupont <[email-masked]> skribis:

> 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’.

Subject: qemu-guest-agent-shepherd-service probably lacks (requirement '(udev))
From: Yann Dupont <[email-masked]>
To: [email-masked]
Date: Tue, 13 Jun 2023 16:55:52 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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:

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,