Re: [libvirt-users] libvirt python api for storage-volumes and storage-pools

2012-05-06 Thread John Wayne
thanks! - Original Message - From: Alex Jia To: John Wayne Cc: "libvirt-users@redhat.com" Sent: Sunday, May 6, 2012 10:54 PM Subject: Re: [libvirt-users] libvirt python api for storage-volumes and storage-pools On 05/07/2012 01:28 PM, John Wayne wrote: > hi, > > how do i list storag

Re: [libvirt-users] libvirt python api for storage-volumes and storage-pools

2012-05-06 Thread Alex Jia
On 05/07/2012 01:28 PM, John Wayne wrote: hi, how do i list storage pools and volumes using the python bindings? basically the python api calls for virsh pool-list and virsh vol-list I think I have answered your question in previous mail: You may use 'dir' to list all of class/method of libvir

[libvirt-users] libvirt python api for storage-volumes and storage-pools

2012-05-06 Thread John Wayne
hi, how do i list storage pools and volumes using the python bindings? basically the python api calls for virsh pool-list and virsh vol-list thanks ___ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt

Re: [libvirt-users] Destroy VM failed.

2012-05-06 Thread Alex Jia
On 05/07/2012 11:12 AM, david_zhu wrote: > Hi, > > When I destroy a VM, sometimes virsh will report failed. > So I tried the following shell script: > > > -bash-4.1# for ((i=0; i<1000; i++)); do virsh start david_mac; virsh > destroy david_mac; if [ $? != 0 ] ; then echo $i; break; fi; done It alwa

Re: [libvirt-users] Libvirt LXC and VCPU?

2012-05-06 Thread Alex Jia
On 05/04/2012 04:45 PM, Samuel Hassine wrote: Hi, We are using Openstack and Libvirt/LXC as our virtualization endpoint. Here is an example of one of our libvirt domain: http://paste.debian.net/167276/ So we have 4. But the command : root@PAR-SRV-02-MASTER:/etc/libvirt/lxc# virsh --connect

[libvirt-users] Destroy VM failed.

2012-05-06 Thread david_zhu
Hi,     When I destroy a VM, sometimes virsh will report failed.     So I tried the following shell script: -bash-4.1# for ((i=0; i<1000; i++)); do virsh start david_mac; virsh destroy david_mac; if [ $? != 0 ] ; then echo $i; break; fi; done D

Re: [libvirt-users] printing domain information

2012-05-06 Thread Doug Goldstein
On Sat, May 5, 2012 at 1:24 AM, John Wayne wrote: > how do i print the features of a domain from functions that return a domain > object? > for instance mydomain = virdomain=libvirt.virConnect.lookupByID(conn,domainid) > so mydomain is virDomainPtr, which is typedef virDomain * virDomainPtr > i a

[libvirt-users] Submission Deadline Extension

2012-05-06 Thread VHPC 12
we apologize if you receive multiple copies of this CFP === CALL FOR PAPERS 7th Workshop on Virtualization in High-Performance Cloud Computing VHPC '12 as part of Euro-Par 2012, Rhodes Island, Greece

[libvirt-users] storage-pools and volumes

2012-05-06 Thread John Wayne
hi, i am trying to create a domain using libvirt 0.9.4 python api and i can't find any information on how to use the libvirt python api with linux logical volumes http://libvirt.org/guide/html-single/#Application_Development_Guide-Device_Config-Disks is TBD i figured out that i need to use def