From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: How to send ACPI events to kvm guests Date: Mon, 8 Dec 2008 15:12:40 +0000 Message-ID: <20081208151240.GD410@redhat.com> References: <493D374F.4030604@roessner-net.com> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Christian Roessner Return-path: Received: from mx1.redhat.com ([66.187.233.31]:36588 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751972AbYLHPMs (ORCPT ); Mon, 8 Dec 2008 10:12:48 -0500 Content-Disposition: inline In-Reply-To: <493D374F.4030604@roessner-net.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Dec 08, 2008 at 04:03:43PM +0100, Christian Roessner wrote: > Hi, > > first of all I am not sure, if this is the right place for my question, > so if not, please speak friendly :-) > > I use kvm-72 directly over the command line, because I use vde, which is > not enabled in Ubuntu intrepid & co in package libvirt-bin. > > Anything is doing really fine, but I can not find out on how to send > ACPI-events to a guest, i.e. power-button. > > The libvirt tool seems to be able to do the trick. So what command does > virsh, whatever invoke to send the event? The virsh shutdown command / virDomainShutdown() API will use the QEMU monitor console to invoke 'system_powerdown' command. This then triggers the ACPI event. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|