You are not logged in.

#1 2015-08-11 01:14:44

jamespharvey20
Member
Registered: 2015-06-09
Posts: 129

Anyone have KVM/libvirt/QEMU graceful shutdown of VM on host shutdown?

Running libvirt 1.2.18-1 and QEMU-git 2.4.0.r40384.2d69736.  (Have to run QEMU-git because using the Q35 chipset, and SATA controller prevents migration (even if you have no SATA devices) which in turn prevents suspending - and this is fixed in 2.4 which is at release candidate 4)

I've tried every method I can think of, and keep running into issues.

managedsave/start fails because of ridiculously repeating (fill screen ever 0.003 kernel seconds) uhci_hcd errors.  See https://bugzilla.redhat.com/show_bug.cgi?id=1252202

Deleting the USB controller is better.  But, managedsave/start still fails with IRQ and task blocked errors, and the network interface being unusable.  See https://bugzilla.redhat.com/show_bug.cgi?id=1252203

Using libvirt-guests.service doesn't work.  Although I can "virsh # shutdown" to make the client gracefully shut down, and I can manually do what libvirt-guests.service does ("/usr/lib/libvirt/libvirt-guests.sh stop") and make the client gracefully shut down, I can't just "systemctl reboot/poweroff" because it immediately kills the VM.  See https://bugzilla.redhat.com/show_bug.cgi?id=1252204

I've tried verious combinations of acpid, qemu-ga, and systemd's acpi handlers...

Offline

#2 2015-08-11 01:34:16

jamespharvey20
Member
Registered: 2015-06-09
Posts: 129

Re: Anyone have KVM/libvirt/QEMU graceful shutdown of VM on host shutdown?

After adding "resume=/dev/md0" to the "/etc/default/grub" GRUB_CMDLINE_LINUX_DEFAULT, and "resume" after udev and lvm2 in "/etc/mkinitcpio.conf", and running "grub-mkconfig" and "mkinitcpio":

Running "pm-hibernate" or "systemctl hibernate" turns the machine off, and on boot says it's loading the image, but then goes to the black screen of death.  Only suggestion I can find on this is to use the LTS kernel, which is not an option...

Last edited by jamespharvey20 (2015-08-11 02:50:53)

Offline

Board footer

Powered by FluxBB