From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Duffy Subject: Re: init scripts for KVM guests UPDATE! Date: Sun, 19 Jul 2009 00:01:52 -0500 Message-ID: References: <4A6113B8.20507@opensoft24.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from main.gmane.org ([80.91.229.2]:40052 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750856AbZGSFCA (ORCPT ); Sun, 19 Jul 2009 01:02:00 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MSOX6-0004hc-EC for kvm@vger.kernel.org; Sun, 19 Jul 2009 05:01:56 +0000 Received: from 143.166.197.6 ([143.166.197.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Jul 2009 05:01:56 +0000 Received: from Charles_Duffy by 143.166.197.6 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Jul 2009 05:01:56 +0000 In-Reply-To: <4A6113B8.20507@opensoft24.com> Sender: kvm-owner@vger.kernel.org List-ID: To echo Michael a little here -- posting this on the KVM mailing list implies that it shouldn't have dependencies beyond KVM; as such, the libvirt mailing list would probably be a better place for these scripts. That said -- no, there isn't an option within libvirt to save or gracefully shut down the guests on daemon (or host) shutdown. This is in part because in newer versions, the libvirt daemon can be shut down or restarted without also shutting down the guests -- presuming that the host is being shut down whenever the guest is terminated would be an unfortunate thing from the perspective of some users, so in my opinion a separate init script for controlling the guests (similar to what you're doing here) is probably the Right Thing.