Linux - VirtualizationThis forum is for the discussion of all topics relating to Linux Virtualization. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
According to the upsmon.conf man page, SHUTDOWNCMD command can be used to configure a command for upsmon to run when the system needs to be brought down. That command could be a script which shuts down the VMs and then shuts down the host.
IDK KVM so cannot advise on the command(s) to shut down the VMs. If netsearching dosn't give you a solution, it might be worth a new thread, asking how to shut down KVM VMs programatically.
We had the same problem with nut waiting until the battery had about 2 minutes life left in it. This corrupted the VM's because they needed time to save their state to the disk.
The approach of using a Non-default shutdown worked for us.
Check this out http://linuxman.wikispaces.com/NUT
and scroll down to the Non-default shutdown section.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.