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

2011-11-15 Thread Preethi Ramesh
gt; 2011/11/15 PREETHI RAMESH : > > 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&

[libvirt] listDomains() not working on Xen

2011-11-15 Thread PREETHI RAMESH
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 act

[libvirt] Problem with listDomains() in Xen

2011-11-11 Thread PREETHI RAMESH
This question concerns the usage of the listDomains(). When I run this piece of code in KVM, it works perfectly fine but throws an array out of bounds exception in Xen. Connect conn=null; conn = new Connect("xen:///", true); int[] id = conn.listDomains(); System.out.println("lD of VM " +id[0])

[libvirt] Operation forbidden for read only access

2011-06-05 Thread PREETHI RAMESH
I'm using libvirt's Java API bindingsa and i've opened a connection : Connect conn=null; Connect conn1=null; Connect conn2=null; Domain testDomain1 = null; //connect to host vm try{ conn = new Connect("qemu:///system", true); System.o