Thanks a lot. This did the trick.<br><br><div class="gmail_quote">On 15 May 2011 18:19, Matthias Bolte <span dir="ltr"><<a href="mailto:matthias.bolte@googlemail.com">matthias.bolte@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2011/5/15 Abhishek Gupta <<a href="mailto:abhishekgupta.iitd@gmail.com">abhishekgupta.iitd@gmail.com</a>>:<br>
<div class="im">> Hello,<br>
><br>
> I am using python bindings of libvirt. When I use the function<br>
> listDomainsID( ) it successfully returns me the list of the ids of my<br>
> current virtual machines, but when I call function listDefinedDomains( ) it<br>
> returns me an empty list.<br>
<br>
</div>That's correct. In your case all known VMs are running.<br>
<div class="im"><br>
> Is this some kind of bug because as per my understanding listDefinedDomains<br>
> should return a superset of vm's as returned by listDefinedDomains().<br>
<br>
</div>listDefinedDomains doesn't return a superset, it just returns the list<br>
of known but non-running VMs, it doesn't return all known VMs. To get<br>
the list of all known VMs you need to combine the lists returned by<br>
listDomainsID and listDefinedDomains.<br>
<font color="#888888"><br>
Matthias<br>
</font></blockquote></div><br>