From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hermann Himmelbauer Subject: Startup/Shutdown scripts for KVM Machines in Debian (libvirt) Date: Wed, 10 Nov 2010 09:01:40 +0100 Message-ID: <201011100901.40451.dusty@qwer.tk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mx10.lb01.inode.at ([62.99.145.10]:7227 "EHLO mx.inode.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752962Ab0KJIBr (ORCPT ); Wed, 10 Nov 2010 03:01:47 -0500 Received: from [83.64.146.242] (port=15192 helo=horn.qwer.tk) by smartmx-10.inode.at with esmtp (Exim 4.69) (envelope-from ) id 1PG5cm-00007V-Ih for kvm@vger.kernel.org; Wed, 10 Nov 2010 09:01:44 +0100 Received: from localhost (localhost [127.0.0.1]) by horn.qwer.tk (Postfix) with ESMTP id A8F40202AD42 for ; Wed, 10 Nov 2010 09:01:42 +0100 (CET) Received: from horn.qwer.tk ([127.0.0.1]) by localhost (horn [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05937-01-3 for ; Wed, 10 Nov 2010 09:01:40 +0100 (CET) Received: from piano.qwer.tk (piano.qwer.tk [192.168.50.71]) by horn.qwer.tk (Postfix) with ESMTP id B291C2028807 for ; Wed, 10 Nov 2010 09:01:40 +0100 (CET) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 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 -- hermann@qwer.tk GPG key ID: 299893C7 (on keyservers) FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7