From: "Daniel P. Berrange" <berrange@redhat.com>
To: Christian Roessner <christian@roessner-net.com>
Cc: kvm@vger.kernel.org
Subject: Re: How to send ACPI events to kvm guests
Date: Mon, 8 Dec 2008 15:12:40 +0000 [thread overview]
Message-ID: <20081208151240.GD410@redhat.com> (raw)
In-Reply-To: <493D374F.4030604@roessner-net.com>
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 :|
next prev parent reply other threads:[~2008-12-08 15:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 15:03 How to send ACPI events to kvm guests Christian Roessner
2008-12-08 15:12 ` Daniel P. Berrange [this message]
2008-12-08 18:53 ` Christian Roessner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081208151240.GD410@redhat.com \
--to=berrange@redhat.com \
--cc=christian@roessner-net.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox