[libvirt] Storage api problem

2008-05-23 Thread sarveswara rao mygapula
Hi,

I am just trying to use libvirt storage api from python terminal, and i am
getting the following error.

 import libvirt
 con = libvirt.open(my uri using ssh)
 con.numOfDefinedStoragePools()
libvir: Remote error : Broken pipe
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python2.5/libvirt.py, line 1022, in
numOfDefinedStoragePools
ret = libvirtmod.virConnectNumOfDefinedStoragePools(self._o)
AttributeError: 'module' object has no attribute
'virConnectNumOfDefinedStoragePools'


I have checked in the libvirt.c file and the function
virConnectNumOfDefinedStoragePools(virConnectPtr conn) is implemented.

Thanks,
--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


[libvirt] Problem in attaching a interface to a domain

2008-05-22 Thread sarveswara rao mygapula
Hello,

I am facing problems in creating a network bridge using libvirt. My
requirement is, i need to create a bridge on the host machine. The bridge
shd get ip address from dhcp server(instead of static). I am not getting
what exactly the xml format that virsh is looking for?

I am using the following xml for creating a bridge.
network
namelocal/name
bridge name=virbr1 /
source dev=eth1/
mac address=00:11:22:33:44:55/
/network


The bridge is getting created but not with the specified device and mac
address. Bridge is not getting ip address at all.
Can you please tell me the xml format for my requirement?

Thanks.
--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list