From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vagrant Cascadian Subject: bug#31365: libvirt/virt-manager: Embeds full path to qemu-system in saved .xml files Date: Fri, 04 May 2018 17:01:03 -0700 Message-ID: <87in83ots0.fsf@aikidev.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEkeN-0002P9-Cq for bug-guix@gnu.org; Fri, 04 May 2018 20:02:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEkeK-0001rL-A0 for bug-guix@gnu.org; Fri, 04 May 2018 20:02:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fEkeK-0001rF-7C for bug-guix@gnu.org; Fri, 04 May 2018 20:02:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fEkeI-0001iK-7j for bug-guix@gnu.org; Fri, 04 May 2018 20:02:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEkdd-0002HN-Dz for bug-guix@gnu.org; Fri, 04 May 2018 20:01:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fEkdZ-0001W4-V7 for bug-guix@gnu.org; Fri, 04 May 2018 20:01:21 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:41372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fEkdZ-0001TW-PR for bug-guix@gnu.org; Fri, 04 May 2018 20:01:17 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id ECC1E1B6DB for ; Fri, 4 May 2018 17:01:14 -0700 (PDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 31365@debbugs.gnu.org --=-=-= Content-Type: text/plain When i create a new libvirt instance with virt-manager, it embeds the full path to the qemu binary used at the time. For the machine named "networkboot": # grep qemu-system /etc/libvirt/qemu/networkboot.xml /gnu/store/0rzb7rjri2kb258j58asndw2pnp0xv9p-qemu-2.11.1/bin/qemu-system-x86_64: If I later run "guix gc" and it happens to remove this particular qemu version, the system no longer runs, of course: # virsh start networkboot error: Failed to start domain networkboot error: Cannot check QEMU binary /gnu/store/0rzb7rjri2kb258j58asndw2pnp0xv9p-qemu-2.11.1/bin/qemu-system-x86_64: No such file or directory It also means each virtual machine may be running on an older version of qemu, for better or worse. Manaully replacing the emulator entry in the .xml file with /run/current-system/profie/bin/qemu-system-x86_64 works around the issue, and might be the easiest fix. It wouldn't take advantage of a qemu install done in the user's profile. I'm not sure if libvirtd can be run as a user-installed profile, so maybe it has to use the system path anyways. I believe libvirtd is normally run as it's own user, with it's own PATH. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcDardHbDotegGFCHt4uC1IFLkbYFAlrs9D8ACgkQt4uC1IFL kbY67g/+MtPUFd8xmOlWmxUSZpPiCe09eB9OU/tY6Nc0SDu61golpJSBgtxhFdoC ayCoUSB1g3VO9sjiHw0+YS8TMbRwOkLUXe4jiyhaHbGzPY+B1wn5rFr4gnyDOj7S gT+P4L2K/A8Ijyv8e/kpSsDI0wC2TqO3mXRj0hvmOrxFCo4Xa5KGwnWTMSf0M8i7 2HycWHY+U7CiF8DwZRiwvrVLlQzck5g+DEhLVKkcjhRLTMtZIpn4IOfcYRQjlNrV SqD8SCOtFLMXX/HURzS1KiIp9fsfBSqhty6U7qSiRCwHCDajk8+S5461TNjuptOk C8/E6x9Bao3ecthI654CVfeI+pvItJe0JsBy+0aXQvd2u0kmHjANNGfFmeruL++W tgzVcchU1x8Qu6QcM7cNYKmQ7Esf2kqa5kM9zQL8BeZ6N9623D35xLK7M/l6Rh+o adgWybWcuItf8xpRMoXY80pvvvvM8jFrqr7Bozgyzo2Tm03TH64VKrPEKQvCuFJH I6OoTYNhEplAtYZBdXw4NrnamHolkUq5zVMUJOG149t+tmRtq7z+ONVPip7KHb8o s1yR0xshvAQIcJ/SjrE05ZrDmfVIE8tt+KAlKZzOSf4T8UCzkn7L3RIDAAiv+tQY wRPk4V5MbXSNFItnKvYK2CiuC8V7EaYRHGqDdP++Lxc9W6RIg2c= =6D/Q -----END PGP SIGNATURE----- --=-=-=--