From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?=) Subject: bug#31365: libvirt/virt-manager: Embeds full path to qemu-system in saved .xml files Date: Wed, 11 Sep 2019 19:21:18 +0800 Message-ID: <871rwnxemp.fsf@member.fsf.org> References: <87in83ots0.fsf@aikidev.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35135) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i80hI-0006r5-Ph for bug-guix@gnu.org; Wed, 11 Sep 2019 07:22:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i80hH-0005PU-U1 for bug-guix@gnu.org; Wed, 11 Sep 2019 07:22:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33254) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i80hG-0005P3-6R for bug-guix@gnu.org; Wed, 11 Sep 2019 07:22:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i80hG-0000Ii-18 for bug-guix@gnu.org; Wed, 11 Sep 2019 07:22:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87in83ots0.fsf@aikidev.net> (Vagrant Cascadian's message of "Fri, 04 May 2018 17:01:03 -0700") 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: Vagrant Cascadian Cc: 31365-done@debbugs.gnu.org Vagrant Cascadian writes: > 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. > Hello, I believe my commit 'ef640db2f509f51ebfe3a6a66ba837ef3103bbb7' fix this, now it use '/run/current-system/profie/bin/qemu-system-x86_64' in the xml files. Close now.. Thank you!