[adding upstream libvirt, as this topic seems to be getting hot lately]
On 11/18/2013 04:34 PM, Mateusz Marzantowicz wrote:
KMV/QEMU guest are not shut down properly during host shutdown
procedure. One of 3 running virtual machines needs about 20-30 seconds
to power off but whole host system (F20) goes off in less than 10
seconds (at last this works perfectly).
There's a good chance that this may be related to one or both of
https://bugzilla.redhat.com/show_bug.cgi?id=1031696
https://bugzilla.redhat.com/show_bug.cgi?id=906009
Not all guests (chosen randomly) are started again after host system
reboot despite they are configured to do so.
Because identical configuration worked for me in F17 and F19 I suspect
some regression in libvirtd or systemd (or maybe some other component?)
Entirely possible. And would be nice to fix.
Running /usr/libexec/libvirt-guests.sh stop|start directly from command
line works as expected.
# systemctl status libvirt-guests.service
libvirt-guests.service - Suspend Active Libvirt Guests
Loaded: loaded (/usr/lib/systemd/system/libvirt-guests.service; enabled)
Active: active (exited) since wto 2013-11-19 00:05:10 CET; 2min 21s ago
Process: 1616 ExecStart=/usr/libexec/libvirt-guests.sh start
(code=exited, status=0/SUCCESS)
Main PID: 1616 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/libvirt-guests.service
lis 19 00:05:10 hive.local systemd[1]: Starting Suspend Active Libvirt
Guests...
lis 19 00:05:10 hive.local systemd[1]: Started Suspend Active Libvirt
Guests.
# cat /etc/sysconfig/libvirt-guests
ON_SHUTDOWN=shutdown
PARALLEL_SHUTDOWN=0
SHUTDOWN_TIMEOUT=300
Thanks for any suggestions,
Alas, I don't have good suggestions on how to fix the problem myself,
but hopefully by adding upstream libvirt we can get more eyes looking at
the problem.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org