On Wed, Nov 10, 2010 at 10:35:40AM +0200, Avi Kivity wrote: > On 11/10/2010 10:01 AM, Hermann Himmelbauer wrote: > >Hi, > >I manage my KVM machines via libvirt and wonder if there are any init.d > >scripts for automatically starting up and shutting down virtual machines > >during boot/shutdown of the host? > > > >Writing this for myself seems to be not that simple, as when shutting down, > >the system has somehow to wait until all machines are halted (not responding > >guests have to be destroyed etc.), and I don't really know how to accomplish > >this. > > > >My host system is Debian Lenny, is there anything available? > >Perhaps libvirt offers something I'm unaware of? > > > > I think it does. Copying the libvirt mailing list. There's a script /usr/share/doc/libvirt-bin/examples/libvirt-suspendonreboot in Debian but I think Laurent is currently working on switching this to the upstream libvirt-guest script which will then be installed by default. Cheers, -- Guido -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list