From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bareiro Subject: Re: How to properly turn off guest VM on server shutdown? Date: Sun, 24 Jan 2010 15:27:23 -0300 Message-ID: <20100124182723.GE24932@defiant.freesoftware> References: <4B5C5A31.7060807@web.de> <20100124151140.GC24932@defiant.freesoftware> <4B5C6425.7070000@redhat.com> <4B5C6744.8070006@codemonkey.ws> Reply-To: dbareiro@gmx.net Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ytoMbUMiTKPMT3hY" To: kvm@vger.kernel.org Return-path: Received: from mail.gmx.net ([213.165.64.20]:51225 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751476Ab0AXS1b (ORCPT ); Sun, 24 Jan 2010 13:27:31 -0500 Received: from defiant (defiant.freesoftware [10.1.0.65]) by hermes.freesoftware (Postfix) with ESMTP id E21E987E for ; Sun, 24 Jan 2010 15:27:50 -0300 (ART) Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: --ytoMbUMiTKPMT3hY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sunday, 24 January 2010 19:41:42 +0200, Avishay Traeger 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. > Does the 'system_powerdown' monitor command initiate an ACPI shutdown? > If so, I guess you can make an rc.d script that calls it during > shutdown? Interesting... I didn't know this command of Qemu Monitor. Doing a test being connected to one of my guest by serial console, I see that when executing the command from Qemu Monitor, guest does a normal shutdown. But for this I believe that acpi package (Debian) must be installed. Thanks for the information! Regards, Daniel --=20 Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Lenny - Linux user #188.598 --ytoMbUMiTKPMT3hY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAktckQsACgkQZpa/GxTmHTf5ogCcCrkS4pxKbyy1z74RUxBvkGb2 CPYAoIk64haX4AKXyXn8j+8zN/B9rqkZ =RuuD -----END PGP SIGNATURE----- --ytoMbUMiTKPMT3hY--