]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix auto-shutdown of qemu VMs by the qemu driver
authorPeter Krempa <pkrempa@redhat.com>
Fri, 27 Jun 2025 14:10:03 +0000 (16:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 8 Jul 2025 12:51:44 +0000 (14:51 +0200)
commit82963fdcb67742fad3066d31f2bd9b14c8153574
tree1bdff68fe1ff2ed61acb8a2566f85d9181e927b2
parentfe57a6deaa8ab83ffdb8ed73104196e4b1421893
qemu: Fix auto-shutdown of qemu VMs by the qemu driver

When auto-shutdown via the qemu driver is requested (rather than via
libvirt guests) we need to start the VMs in a way that they will be kept
around for libvirt to terminate them. This involves inverting the
dependancy relationship for the machined unit file.

Since the setup is done at startup of the VM, add a disclaimer to
qemu.conf that switching between the two modes with VMs running will not
work properly.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu.conf.in
src/qemu/qemu_cgroup.c