[libvirt-users] Checking if the VM has been created

2011-11-16 Thread Preethi Ramesh
I'm a Libvirt newbie and I'd really appreciate it if someone could answer my doubts. I'm using Libvirt's Java API. My doubts: 1.Currently, I'm able to create a VM on Ubuntu 11.04 using Libvirt functions domainCreateLinux() and domainDefineXML(). Apart fromt the boolean return status of these opera

Re: [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-users] 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

Re: [libvirt-users] Problem with listDomains() in Xen

2011-11-11 Thread PREETHI RAMESH
and all the domains are running. The output of xm --list also confirms it. Thanks! Preethi On Sat, Nov 12, 2011 at 4:51 AM, Eric Blake wrote: > [your mailer seems to want to start a new thread rather than replying to > the existing thread, which makes following your mails difficult. Could

[libvirt-users] Problem with listDomains() in Xen

2011-11-10 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-users] Finding out if Xen or KVM is used

2011-11-05 Thread PREETHI RAMESH
I've got 2 doubts: 1.I've been trying to write an application using Libvirt's Java API which should run on both Xen and KVM running machines and execute the Xen or KVM code based on the hypervisor used. I want the physical machine to know if it's running Xen or KVM and execute only that code. Whil

[libvirt-users] Help with running virt-top from Java file

2011-10-17 Thread PREETHI RAMESH
I've been trying to run virt-top to save the usage statistics to a csv file from my Java code using process builder. However, this gets executed in the Java file but I don't seem to find the file created anywhere. Is executing virt-top possible via a Java code? I'm using the example here

[libvirt-users] Live Migration using Libvirt migrate()

2011-10-10 Thread PREETHI RAMESH
Hi, This is a follow up of the mail regd migration I'd posted a few days ago. My scenario: I'm creating two virtual machines images from an Ubuntu 10.10 iso of RAM size 128 and 700 MB. Using the migrate() , I migrate it from the current physical machine to the destination machine via a 100 Mbps

[libvirt-users] Libvirt newbie, need help with doubts

2011-10-07 Thread PREETHI RAMESH
Hi, These are my doubts: 1. I tried live migration of Ubuntu 11.04 from the one physical machine to another using the migrate() function. I connected via tcp in the destination URI and migrated successfully(lesser than 2 seconds). I tried running virsh list --all on the destination PM and confirme

[libvirt-users] libvir: Remote error : cannot recv data: : Connection reset by peer

2011-10-04 Thread PREETHI RAMESH
I'm using Libvirt's Java API and connecting to the hypervisor using the same. My program is such that periodic discovery of active VMs is done using Libvirt's functions. However, when I try to perform any VM related operations while the Java code connecting to Qemu is running such as shutdown, sta

[libvirt-users] IPs of VMs on KVM

2011-09-09 Thread PREETHI RAMESH
How can I find the IPs of the VMs using libvirt function? As of now, I'm thinking of using Nmap to get the MAC address and the ARP it to get the IP. Can someone please help me out? ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat

[libvirt-users] Unable to migrate a vm

2011-06-03 Thread PREETHI RAMESH
Hi! I've attached my code The error I got was: run: Domain:hda2 id 11 running hvm libvir: Domain error : operation virDomainMigrate forbidden for read only access exception FOUR caught:org.libvirt.LibvirtException: operation virDomainMigrate forbidden for read only access level:VIR_ERR_ERROR code:V

[libvirt-users] unable to migrate guests

2011-05-31 Thread PREETHI RAMESH
I'm new to libvirt and I'm facing a problem while migrating the guest domain. Both guest and host are of the same config(checked it with uname -a) Migrating using virsh, I get: virsh # migrate hda2 --desturi qemu+ssh://root@10.129.54.254/system root@10.129.54.254's password: error: operation fail