[libvirt] [libvirt-users] listDomains() not working on Xen

Preethi Ramesh pree011235 at gmail.com
Tue Nov 15 13:30:50 UTC 2011


Thanks!

I tried virsh -c xen:///system list --all
and I got:
Domain 0  running
test          idle

I'm able to successfully ping the test VM also. How can I get the list of
active VMs now?



On Tue, Nov 15, 2011 at 11:00 AM, Matthias Bolte <
matthias.bolte at googlemail.com> wrote:

> 2011/11/15 PREETHI RAMESH <iampreethiramesh at gmail.com>:
> > Hey all,
> > I've been trying to make listDomains() work on Xen but it simply returns
> an
> > array of null values. Also, while displaying the length of the array
> > returned by listDomains(). Upon using the same function in KVM, I'm able
> to
> > retrieve the complete array of active machines. I'm positive that active
> Xen
> > machines are running(cross checked it with xm list).
> >
> > I've been posting this for quite sometime now but haven't received any
> reply
> > which could debug my code. I'd really appreciate it if someone could help
> > me.
>
> Your problem is probably not related to your code or the Java bindings at
> all.
>
> Did you check whether 'virsh list' shows active domains for Xen?
>
> I guess your problem is that libvirt doesn't recognize your active Xen
> domains form some reason. Therefore, 'virsh list' and your own code
> don't show active domains.
>
> --
> Matthias Bolte
> http://photron.blogspot.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111115/3ce86ec4/attachment-0001.htm>


More information about the libvir-list mailing list