[libvirt] detection of events in kvm

Eric Blake eblake at redhat.com
Sat Jan 4 12:39:16 UTC 2014

On 01/04/2014 12:27 AM, rash wrote:
> Hello,
>       I am student and doing a project in virtualization.My project requires
> detection of events in kvm like start of a virtual machine,shutoff of a
> virtual machine.

Yes, libvirt supports various events for asynchronous feedback when
certain actions have happened in a guest, including when a guest i
started or stopped.  See examples/object-events/events-test.c for an
example of how to use them from a C program; there are also bindings in
other languages such as libvirt-python.

I'm also in the process of adding a new API that allows developers to
query arbitrary QMP events from qemu, even if those events have not yet
been ported to libvirt events.

Eric Blake   eblake 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: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140104/69ca5daf/attachment-0001.sig>

More information about the libvir-list mailing list