From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 13 22:39:25 2023 Received: (at submit) by debbugs.gnu.org; 14 Jun 2023 02:39:25 +0000 Received: from localhost ([127.0.0.1]:43372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9GPq-0006RO-On for submit@debbugs.gnu.org; Tue, 13 Jun 2023 22:39:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:33834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q95RB-0001cN-2D for submit@debbugs.gnu.org; Tue, 13 Jun 2023 10:56:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q95RA-0005n5-Kn for bug-guix@gnu.org; Tue, 13 Jun 2023 10:56:00 -0400 Received: from smtptls1-cha.cpub.univ-nantes.fr ([193.52.103.113] helo=smtp-tls.univ-nantes.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q95R7-0007Di-Kl for bug-guix@gnu.org; Tue, 13 Jun 2023 10:56:00 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp-tls.univ-nantes.fr (Postfix) with ESMTP id 0C54020931 for ; Tue, 13 Jun 2023 16:55:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=univ-nantes.fr; s=mailv2; t=1686668153; bh=7irIoQB+iSuAwMLu/WtRKfF+KlXQ9Wj2X8s18Y8tuMM=; h=Date:From:Subject:To:From; b=DdSXMraOzZYwjoaGUSbixoD204nx1yZJSJQ6hawLhNI7i59HPeLl3Qnna/HXjcZna 0fXx8joasBz3XhP8d84xYcgxxD7Wkv7bsWAQ2qFu7p7qzfzDonHaB8lwA5aVd+gKra zVj32Q5bYdqCLYKa10qH2a+50DCs7IG+hF//PfULDlvv2bIM2T0mmJz6jRrRFejWJa oVV/d61HqCYAF+/V5B5kXlRrkHJR6CeM81kQpBQn7FKVE4u+ld9OIaGzr4Od3OxViK WcO7JyrCrDj1bihcl3eZ1C/sjmY7yc++eLVi6hR1v3myRdMLkqXOfT3txK8JHP3bfD dgpRsANX/OCfg== X-Virus-Scanned: Debian amavisd-new at smtptls1-lmb.cpub.univ-nantes.fr Received: from smtp-tls.univ-nantes.fr ([127.0.0.1]) by localhost (smtptls1-cha.cpub.univ-nantes.fr [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jgmbQjsPRqAI for ; Tue, 13 Jun 2023 16:55:52 +0200 (CEST) Received: from [IPV6:2001:660:7220:389:de9f:6270:1f4:1d60] (unknown [IPv6:2001:660:7220:389:de9f:6270:1f4:1d60]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-tls.univ-nantes.fr (Postfix) with ESMTPSA id C498B20930 for ; Tue, 13 Jun 2023 16:55:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=univ-nantes.fr; s=mailv2; t=1686668152; bh=7irIoQB+iSuAwMLu/WtRKfF+KlXQ9Wj2X8s18Y8tuMM=; h=Date:From:Subject:To:From; b=CNEPf1fM7oFjPhK3heGzhBL9GCs1s8mpirPpSQviX0egCMC7mWuqPJrEjUtfIblzR 7wFJm0AAX9A0qFFEu0ElyFyyr9K/orPN1mjizdwLZlgBtrlUGObKnoHsiHBHVtaXiW Kb4gk1c8o2TvO2VsYsbVAYsUlSA3YqwIzmMn6iqXjEZe0up/T5/Sx6qv4T1piJOnLN zVd9ZCtsOZ6m/kyiczoSyrXvK9/Bd4mAT1M8k4XYdx+WEdACN9NLT+tV1bYALCpW+m YxNGo3oRgrVagcjk3rWRKrWxDlQ+k5ZHFM1T0o9n1WIqKIGNfPr0cIqbdGKcFWbDp3 OmNgDBaGzUFQQ== Content-Type: multipart/alternative; boundary="------------XLKXivilL0Tml00fenEeej1R" Message-ID: <62ea3302-59f4-e1b9-fa67-1e9aff2e12ac@univ-nantes.fr> Date: Tue, 13 Jun 2023 16:55:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 From: Yann Dupont Subject: qemu-guest-agent-shepherd-service probably lacks (requirement '(udev)) To: bug-guix@gnu.org Content-Language: fr Organization: =?UTF-8?Q?Nantes_Universit=c3=a9/GLiCID?= Received-SPF: pass client-ip=193.52.103.113; envelope-from=yann.dupont@univ-nantes.fr; helo=smtp-tls.univ-nantes.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 13 Jun 2023 22:39:20 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) This is a multi-part message in MIME format. --------------XLKXivilL0Tml00fenEeej1R Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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, --------------XLKXivilL0Tml00fenEeej1R Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

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,

--------------XLKXivilL0Tml00fenEeej1R-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 15 18:20:49 2023 Received: (at 64057-done) by debbugs.gnu.org; 15 Jun 2023 22:20:49 +0000 Received: from localhost ([127.0.0.1]:48164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9vKj-0003pU-4A for submit@debbugs.gnu.org; Thu, 15 Jun 2023 18:20:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9vKh-0003pH-5H for 64057-done@debbugs.gnu.org; Thu, 15 Jun 2023 18:20:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9vKa-0001fp-7z; Thu, 15 Jun 2023 18:20:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=keWG5xDtsXghSay6tYtRqLcTAHS0bP23LdWu/I/4eS0=; b=gIuoB+3xfGjuUuwnfWyA knywmCRaXaFWgsX0sNKJSaO9YF7ZcwerJc8XvaVYu1gCzUVbHuizkfF0gI6pv8JxdjO4897VrcNwJ 7BbZQ1qRqQatUTVK2i2ws1aNpHxRYYKbC2cN+3n24PMGaIWelF53+paitXZ3AqioVIX3+M8S4MZpv G2KIom7w7uJb9NkPSEnmoXTj5rbV9nUWQ5KxPUgEnG4q0iltplI7L8yLsjJb5yt9+EdibncteZ5kK gKmyNvkpVf8ek0LOxuHlIw38tJ5XZSL8KTKLxQhI5EwQWoKJoJaj5vuYYgsjXBdwJyuhQNRaB5neY rSQ+vn4u4Bv0EA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9vKZ-0001QO-Rf; Thu, 15 Jun 2023 18:20:40 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Yann Dupont Subject: Re: bug#64057: qemu-guest-agent-shepherd-service probably lacks (requirement '(udev)) References: <62ea3302-59f4-e1b9-fa67-1e9aff2e12ac@univ-nantes.fr> Date: Fri, 16 Jun 2023 00:20:37 +0200 In-Reply-To: <62ea3302-59f4-e1b9-fa67-1e9aff2e12ac@univ-nantes.fr> (Yann Dupont's message of "Tue, 13 Jun 2023 16:55:52 +0200") Message-ID: <87bkhgtlje.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64057-done Cc: 64057-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Yann Dupont skribis: > Hi all, we've noticed that qemu-guest-agent doesn't start reliably on vir= tual machines generated by guix system.=20 > 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 channe= l 2023-06-12 14:36:14 1686573373.873782: critical: failed to initialize gue= st agent > channel > > I guess the udev dependency is missing. The following patch seems to do t= he trick here:=20 Thanks for the bug report and suggestion! This is now fixed in c27479a739cdbe89be7cb03f73a4a5230e84379d. LUdo=E2=80=99. From unknown Sat Jun 21 10:42:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 14 Jul 2023 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator