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(a)googlemail.com> wrote:
2011/11/15 PREETHI RAMESH <iampreethiramesh(a)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