Re: [libvirt] How to differentiate creation from migration?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]