From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-15?Q?Markus_Breitl=E4nder?= Subject: Re: How to properly turn off guest VM on server shutdown? Date: Sun, 24 Jan 2010 18:16:07 +0100 Message-ID: <4B5C8057.4010405@stud.fh-dortmund.de> References: <4B5C5A31.7060807@web.de> <20100124151140.GC24932@defiant.freesoftware> <4B5C6425.7070000@redhat.com> <4B5C6744.8070006@codemonkey.ws> <20100124170015.GD24932@defiant.freesoftware> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from betty.stud.FH-Dortmund.DE ([193.25.19.66]:53695 "EHLO mail.stud.fh-dortmund.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932107Ab0AXRre (ORCPT ); Sun, 24 Jan 2010 12:47:34 -0500 Received: from [192.168.0.17] (i53877463.versanet.de [83.135.116.99]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.stud.fh-dortmund.de (Postfix) with ESMTP id AD6B3119BDA4 for ; Sun, 24 Jan 2010 18:16:05 +0100 (CET) In-Reply-To: <20100124170015.GD24932@defiant.freesoftware> Sender: kvm-owner@vger.kernel.org List-ID: Hi! Does anyone have sample scripts for this job? I know you can send the 'system_powerdown' command to the qemu-monitor, this CAN work for windows guests as far as i know. What other commands could be used in shutdown scripts? Regards, Markus Am 24.01.2010 18:00, schrieb Daniel Bareiro: > Hi, Anthony. > > On Sunday, 24 January 2010 09:29:08 -0600, > Anthony Liguori wrote: > >> But the origin of the question here is probably, can something >> automatically shut down guests when a machine shutdowns down via the >> normal mechanism. AFAIK, libvirt does not support this today although >> there are some scripts floating around the intertubes that can drive >> this operation through libvirt. > > Well.. perhaps I'm confused because I did these tests a long time ago. > But now that you mention it, I believe that I had tried was that, > through virsh commands, the VM shutdown could be done from the VMHost > being it always running. > > I suppose that scripts that you mention will call to virsh when shutdown > becomes of the VMHost. > > Regards, > Daniel