Re: (no subject)

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

 



Thanks a lot. This did the trick.

On 15 May 2011 18:19, Matthias Bolte <matthias.bolte@xxxxxxxxxxxxxx> wrote:
2011/5/15 Abhishek Gupta <abhishekgupta.iitd@xxxxxxxxx>:
> 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


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux