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   [email protected]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
libvirt-users mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvirt-users

Reply via email to