Startup/Shutdown scripts for KVM Machines in Debian (libvirt)
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?
Best Regards,
Hermann
Signature · 3 lines
[email protected] GPG key ID: 299893C7 (on keyservers) FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
Quoted 5 lines · Hermann Himmelbauer
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?
Quoted 8 lines
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.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 5 lines · On Wed, 10 Nov 2010 09:01:40 +0100 Hermann Himmelbauer <[email protected]> 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?
Quoted 7 lines
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?
You can set it using "autostart" in virsh.
Quoted 5 lines
Best Regards,
Hermann
Quoted 18 lines · pradeep
Quoted 5 lines · On Wed, 10 Nov 2010 09:01:40 +0100 Hermann Himmelbauer<[email protected]> 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?Quoted 7 lines
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?
You can set it using "autostart" in virsh.
Quoted 1 line
Quoted 7 lines
Quoted 3 lines
Best Regards,
Hermann--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi,
in libvirt, there is two startup script you need to be aware. /etc/init.d/libvirt-bin for the libvirt daemon and the /etc/init.d/libvirt-guest for a properly startup/shutdown of the guests. And take a look at tht /etc/default/libvirt-*
Regards.
begin:vcard
fn:Jean-Philippe Menil
n:Menil;Jean-Philippe
org;quoted-printable:Universit=C3=A9 de Nantes;IRTS - DSI adr;quoted-printable:;;2 rue de la Houssini=C3=A8re;Nantes;Loire-Atlantique;44382;France email;internet:[email protected] title;quoted-printable:Administrateur R=C3=A9seau url:http://www.cri.univ-nantes.fr
version:2.1
end:vcard