Vagrant Cascadian wrote 7 years ago
(address . bug-guix@gnu.org)
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
<emulator>/gnu/store/0rzb7rjri2kb258j58asndw2pnp0xv9p-qemu-2.11.1/bin/qemu-system-x86_64:</emulator>
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
-----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-----