On Wed, Mar 10, 2010 at 11:40:44AM -0300, Richard Maciel wrote:
Hi,
I work on a project that makes use of libvirt (called libvirt-cim)
and we created an algorithm to detect when a new machine is created.
However, I need to filter the ones created by the migration
operation.
Does libvirt provides a way to distinguish a machine created by
'migrate' command from a machine created by the 'define' command
(virDomainDefineXML API call)?
I think that if you register for domain lifetime events then
you will get this informations as part of the details, but asynchronously
http://libvirt.org/html/libvirt-libvirt.html#virConnectDomainEventRegister
Also see Dan Berrange post from last week about event extensions.
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit
http://xmlsoft.org/
daniel(a)veillard.com | Rpmfind RPM search engine
http://rpmfind.net/
http://veillard.com/ | virtualization library
http://libvirt.org/