Re: init scripts for KVM guests UPDATE!

Charles Duffy
2009-07-19T05:02:00Z

To echo Michael a little here -- posting this on the KVM mailing list
implies that it shouldn't have dependencies beyond KVM; as such, the
libvirt mailing list would probably be a better place for these scripts.

That said -- no, there isn't an option within libvirt to save or
gracefully shut down the guests on daemon (or host) shutdown. This is in
part because in newer versions, the libvirt daemon can be shut down or
restarted without also shutting down the guests -- presuming that the
host is being shut down whenever the guest is terminated would be an
unfortunate thing from the perspective of some users, so in my opinion a
separate init script for controlling the guests (similar to what you're
doing here) is probably the Right Thing.