From: Jean-Philippe Menil Subject: Re: Startup/Shutdown scripts for KVM Machines in Debian (libvirt) Date: Wed, 10 Nov 2010 10:18:11 +0100 Message-ID: <4CDA6353.7010403@univ-nantes.fr> References: <201011100901.40451.dusty@qwer.tk> <20101110143701.3847465c@skywalker> Reply-To: jean-philippe.menil@univ-nantes.fr Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060204080802010702070806" Cc: Hermann Himmelbauer , kvm@vger.kernel.org To: pradeep Return-path: Received: from smtp-tls1.univ-nantes.fr ([193.52.101.145]:46730 "EHLO smtp-tls.univ-nantes.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753738Ab0KJJSR (ORCPT ); Wed, 10 Nov 2010 04:18:17 -0500 In-Reply-To: <20101110143701.3847465c@skywalker> Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------060204080802010702070806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Le 10/11/2010 10:07, pradeep a écrit : > On Wed, 10 Nov 2010 09:01:40 +0100 > 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? > 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@vger.kernel.org > 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. --------------060204080802010702070806 Content-Type: text/x-vcard; charset=utf-8; name="jean-philippe_menil.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="jean-philippe_menil.vcf" 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@univ-nantes.fr title;quoted-printable:Administrateur R=C3=A9seau url:http://www.cri.univ-nantes.fr version:2.1 end:vcard --------------060204080802010702070806--