[libvirt-users] (no subject)

Abhishek Gupta abhishekgupta.iitd at gmail.com
Sun May 15 13:00:43 UTC 2011


Thanks a lot. This did the trick.

On 15 May 2011 18:19, Matthias Bolte <matthias.bolte at googlemail.com> wrote:

> 2011/5/15 Abhishek Gupta <abhishekgupta.iitd at gmail.com>:
> > Hello,
> >
> > I am using python bindings of libvirt. When I use the function
> > listDomainsID( ) it successfully returns me the list of the ids of my
> > current virtual machines, but when I call function listDefinedDomains( )
> it
> > returns me an empty list.
>
> That's correct. In your case all known VMs are running.
>
> > Is this some kind of bug because as per my understanding
> listDefinedDomains
> > should return a superset of vm's as returned by listDefinedDomains().
>
> listDefinedDomains doesn't return a superset, it just returns the list
> of known but non-running VMs, it doesn't return all known VMs. To get
> the list of all known VMs you need to combine the lists returned by
> listDomainsID and listDefinedDomains.
>
> Matthias
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110515/096c64e6/attachment.htm>


More information about the libvirt-users mailing list