From mboxrd@z Thu Jan 1 00:00:00 1970 From: pradeep Subject: Re: Startup/Shutdown scripts for KVM Machines in Debian (libvirt) Date: Wed, 10 Nov 2010 14:37:01 +0530 Message-ID: <20101110143701.3847465c@skywalker> References: <201011100901.40451.dusty@qwer.tk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Hermann Himmelbauer Return-path: Received: from e36.co.us.ibm.com ([32.97.110.154]:51876 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755130Ab0KJJHU (ORCPT ); Wed, 10 Nov 2010 04:07:20 -0500 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e36.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id oAA92nYG024315 for ; Wed, 10 Nov 2010 02:02:49 -0700 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id oAA97BED248506 for ; Wed, 10 Nov 2010 02:07:11 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id oAA9794V007737 for ; Wed, 10 Nov 2010 02:07:10 -0700 In-Reply-To: <201011100901.40451.dusty@qwer.tk> Sender: kvm-owner@vger.kernel.org List-ID: 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 >