From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Roessner Subject: How to send ACPI events to kvm guests Date: Mon, 08 Dec 2008 16:03:43 +0100 Message-ID: <493D374F.4030604@roessner-net.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from mx0.roessner-net.de ([78.46.253.227]:33952 "EHLO mx0.roessner-net.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753149AbYLHPKN (ORCPT ); Mon, 8 Dec 2008 10:10:13 -0500 Received: from localhost (localhost [127.0.0.1]) by mx0.roessner-net.de (Postfix) with ESMTP id D18311A800B for ; Mon, 8 Dec 2008 16:03:47 +0100 (CET) Received: from mx0.roessner-net.de ([127.0.0.1]) by localhost (amavis.internal.roessner-net.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5blc8IZJz2Hn for ; Mon, 8 Dec 2008 16:03:44 +0100 (CET) Received: from [192.168.1.3] (ip-81-210-196-220.unitymediagroup.de [81.210.196.220]) (Authenticated sender: de10000) by mx0.roessner-net.de (Postfix) with ESMTPSA for ; Mon, 8 Dec 2008 16:03:44 +0100 (CET) Sender: kvm-owner@vger.kernel.org List-ID: 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 i= s 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? A friend and I have spend hours and hours with Google, tried to study the source-code of kvm and libvirt, but could not find the answer. I want to write s simple init-script for the kvm instances, so I really would like a clean solution. A bad hack would be ssh guest "shutdown -h now", but I would prefer the ACPI version, if possible. So, I hope, somebody may help me with this question. Thanks alot. I really like kvm. Kind regards Christian --=20 Roessner Network Solutions (R.N.S.) Licher Str. 19a, 35394 Gie=DFen Telefon: +49 641 5879091, Mobil: +49 176 78168371 USt-IdNr.: DE225643613 URL: http://www.roessner-net.com/ PGP: http://www.roessner-net.com/0x6B929997.asc