[libvirt] auto shutdown for qemu / kvm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: libvirtd.init
Description: application/shellscript

--- Begin Message ---
#
# 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

--- End Message ---
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]