From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: How to properly turn off guest VM on server shutdown? Date: Sun, 24 Jan 2010 09:29:08 -0600 Message-ID: <4B5C6744.8070006@codemonkey.ws> References: <4B5C5A31.7060807@web.de> <20100124151140.GC24932@defiant.freesoftware> <4B5C6425.7070000@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: dbareiro@gmx.net, kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mail-yx0-f187.google.com ([209.85.210.187]:36547 "EHLO mail-yx0-f187.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389Ab0AXP3M (ORCPT ); Sun, 24 Jan 2010 10:29:12 -0500 Received: by yxe17 with SMTP id 17so2174462yxe.33 for ; Sun, 24 Jan 2010 07:29:10 -0800 (PST) In-Reply-To: <4B5C6425.7070000@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 01/24/2010 09:15 AM, Avi Kivity wrote: > On 01/24/2010 05:11 PM, Daniel Bareiro wrote: >> But also it would interest to me to know if this can be done without >> using libvirt. > > Well, it can, but you get to duplicate all the libvirt code that does > this. I don't think it can. The original question was whether QEMU could initiate an ACPI shutdown when it receives a kill signal. It cannot and it's unclear to me if it's a good thing for us to do. 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. Regards, Anthony Liguori