[libvirt-users] Determine state of the guest OS/kernel from host
Eric Blake
eblake at redhat.com
Fri Aug 3 19:08:32 UTC 2012
On 08/03/2012 12:39 PM, Harish Patil wrote:
>>> Is there a way that I can register with libvirt for the state change
>>> notifications in the guest OS?
> Thanks Eric. Understand that there is no such facility at the libvirt
> level. Do you know whether such notification can be received/trapped at the
> qemu level itself ? I had once checked that QEVENT_RESET event is emitted
> when the guest OS reboots.
Certain guest events such as shutdown ARE detected by qemu, and
therefore feed a lifecycle event that you can then monitor via libvirt.
We even have an example program shipped in the libvirt sources for
tracking all events in the lifecycle of a domain. However, I don't know
if a guest reboot is always detected by qemu.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120803/d879f3e1/attachment.sig>
More information about the libvirt-users
mailing list