[libvirt] [PATCH] Init script for suspending/resuming guests on shutdown/boot

Gerd v. Egidy lists at egidy.de
Fri May 14 21:53:50 UTC 2010


Hi,

just an idea: wouldn't it make sense to add a global configure switch allowing 
to shut down the vms instead of suspending them?

E.g. in /etc/sysconfig/libvirtd:

ON_SHUTDOWN=suspend (this is the default)
or
ON_SHUTDOWN=shutdown

This could be made available through the init script too:
/etc/init.d/libvirt-guests shutdown

Usecase: I want to be able to make sure the diskspace is unmounted and the 
filesystems of my vms are clean state. This is needed e.g. before copying the 
raw blockdevices.

Another thing is timing: a shutdown is sometimes a very time-constrained thing 
(think of an ups running out of power). Depending on the programs in the vms, 
memory size and disk speed, suspending can take longer than a clean shutdown.

Kind regards,

Gerd





More information about the libvir-list mailing list