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).
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?)
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, Mateusz Marzantowicz
On Tue, 2013-11-19 at 00:34 +0100, 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).
I think you may be working on a false premise here. IIRC, by default, libvirt does not *shut down* guests on host shutdown, but *suspends* them.
On 19.11.2013 00:41, Adam Williamson wrote:
On Tue, 2013-11-19 at 00:34 +0100, 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).
I think you may be working on a false premise here. IIRC, by default, libvirt does not *shut down* guests on host shutdown, but *suspends* them.
What about this line in /etc/sysconfig/libvirt-guests ON_SHUTDOWN=shutdown
Is it not taken into account anymore?
Mateusz Marzantowicz
On Tue, 2013-11-19 at 00:44 +0100, Mateusz Marzantowicz wrote:
On 19.11.2013 00:41, Adam Williamson wrote:
On Tue, 2013-11-19 at 00:34 +0100, 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).
I think you may be working on a false premise here. IIRC, by default, libvirt does not *shut down* guests on host shutdown, but *suspends* them.
What about this line in /etc/sysconfig/libvirt-guests ON_SHUTDOWN=shutdown
Is it not taken into account anymore?
I don't know, you didn't mention that you had such a configuration setting. I was just describing the default configuration.
On 19.11.2013 00:46, Adam Williamson wrote:
On Tue, 2013-11-19 at 00:44 +0100, Mateusz Marzantowicz wrote:
On 19.11.2013 00:41, Adam Williamson wrote:
On Tue, 2013-11-19 at 00:34 +0100, 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).
I think you may be working on a false premise here. IIRC, by default, libvirt does not *shut down* guests on host shutdown, but *suspends* them.
What about this line in /etc/sysconfig/libvirt-guests ON_SHUTDOWN=shutdown
Is it not taken into account anymore?
I don't know, you didn't mention that you had such a configuration setting. I was just describing the default configuration.
Actually, I was :-) See bottom of my first post.
Mateusz Marzantowicz
On Tue, 2013-11-19 at 00:47 +0100, Mateusz Marzantowicz wrote:
On 19.11.2013 00:46, Adam Williamson wrote:
On Tue, 2013-11-19 at 00:44 +0100, Mateusz Marzantowicz wrote:
On 19.11.2013 00:41, Adam Williamson wrote:
On Tue, 2013-11-19 at 00:34 +0100, 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).
I think you may be working on a false premise here. IIRC, by default, libvirt does not *shut down* guests on host shutdown, but *suspends* them.
What about this line in /etc/sysconfig/libvirt-guests ON_SHUTDOWN=shutdown
Is it not taken into account anymore?
I don't know, you didn't mention that you had such a configuration setting. I was just describing the default configuration.
Actually, I was :-) See bottom of my first post.
Oop, indeed, read your mail twice, missed it both times :/ Sorry.
[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.
On 19.11.2013 00:58, Eric Blake wrote:
[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
Thanks for that links. They more or less describe problems I encounter.
Mateusz Marzantowicz