[libvirt] auto shutdown for qemu / kvm
Matthias Pfafferodt
matthias.pfafferodt at mapfa.de
Sat Jul 12 20:25:01 UTC 2008
Hello,
there is the possibility to autostart a (qemu/kvm) domain. If libvirtd is
stopped this domain is killed and the filesystem is in a unclean state. I
miss the possible of an 'autostop' option that will shutdown a (qemu/kvm)
domain if libvirtd is stopped.
I changed the init script of my system (opensuse 11.0) to implement
the 'autostop' option. Is there a simpler solution? Do you have tips how to
improve the script?
Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirtd.init
Type: application/x-shellscript
Size: 2897 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080712/1ba55835/attachment-0001.bin>
-------------- next part --------------
## Path: System/Virtualization
## Description: libvirtd stop configuration
## Type: yesno
## Default: yes
#
# On 'libvirtd stop' all running (kvm) domains are killed. If
# LIBVIRTD_KVM_SHUTDOWN is set to 'yes' all running vm's are given time
# for a gracefully shutdown.
#
LIBVIRTD_KVM_SHUTDOWN="yes"
## Path: System/Virtualization
## Description: libvirtd timeout
## Type: integer
## Default: 300
#
# On 'libvirtd stop' the vm's are ask to shutdown. This optine gives the
# maximum number of seconds the script will wait until libvirt is stopped.
#
LIBVIRTD_KVM_SHUTDOWN_MAXWAIT=300
More information about the libvir-list
mailing list