From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Held Subject: Re: Question about shutting down Guest KVM during HOST OS shutdown Date: Mon, 23 Nov 2009 13:13:20 +0100 Message-ID: References: <1f6793290911230212k1c793c8ala441c716d503d8b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from lo.gmane.org ([80.91.229.12]:36945 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756963AbZKWMNi (ORCPT ); Mon, 23 Nov 2009 07:13:38 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NCXnc-0008WP-4C for kvm@vger.kernel.org; Mon, 23 Nov 2009 13:13:44 +0100 Received: from smtp.mgpi.de ([212.202.249.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Nov 2009 13:13:44 +0100 Received: from bheld by smtp.mgpi.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Nov 2009 13:13:44 +0100 In-Reply-To: <1f6793290911230212k1c793c8ala441c716d503d8b@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Arun! > send_cmd() { > QEMU_MONITOR_COMMAND=$1 > echo "${QEMU_MONITOR_COMMAND}" | socat - UNIX-CONNECT:${FILE_MONITOR} > } > > which sends the "exit" command to the qemu process via a socket file. Just send "system_powerdown", and your guest will receive an ACPI shutdown request. Bernhard