Le 10/11/2010 10:07, pradeep a écrit :
On Wed, 10 Nov 2010 09:01:40 +0100
Hermann Himmelbauer<dusty@xxxxxxx> 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?
You can set it using "autostart" in virsh.
Best Regards,
Hermann
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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:jean-philippe.menil@xxxxxxxxxxxxxx
title;quoted-printable:Administrateur R=C3=A9seau
url:http://www.cri.univ-nantes.fr
version:2.1
end:vcard