Thanks!<br><br>I tried virsh -c xen:///system list --all<br>and I got:<br>Domain 0  running<br>test          idle<br><br>I'm able to successfully ping the test VM also. How can I get the list of active VMs now?<br><br>
<br><br><div class="gmail_quote">On Tue, Nov 15, 2011 at 11:00 AM, Matthias Bolte <span dir="ltr"><<a href="mailto:matthias.bolte@googlemail.com" target="_blank">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/11/15 PREETHI RAMESH <<a href="mailto:iampreethiramesh@gmail.com" target="_blank">iampreethiramesh@gmail.com</a>>:<br>
> Hey all,<br>
> I've been trying to make listDomains() work on Xen but it simply returns an<br>
> array of null values. Also, while displaying the length of the array<br>
> returned by listDomains(). Upon using the same function in KVM, I'm able to<br>
> retrieve the complete array of active machines. I'm positive that active Xen<br>
> machines are running(cross checked it with xm list).<br>
><br>
> I've been posting this for quite sometime now but haven't received any reply<br>
> which could debug my code. I'd really appreciate it if someone could help<br>
> me.<br>
<br>
Your problem is probably not related to your code or the Java bindings at all.<br>
<br>
Did you check whether 'virsh list' shows active domains for Xen?<br>
<br>
I guess your problem is that libvirt doesn't recognize your active Xen<br>
domains form some reason. Therefore, 'virsh list' and your own code<br>
don't show active domains.<br>
<font color="#888888"><br>
--<br>
Matthias Bolte<br>
<a href="http://photron.blogspot.com" target="_blank">http://photron.blogspot.com</a><br>
</font></blockquote></div><br>