[Libvir] libvirt 0.1.8 Help

2007-06-27 Thread Omer Khalid
Hi, I have the following code working on libvirt 0.1.9: conn = libvirt.openReadOnly(None) if conn == None: print 'Failed to open connection to the hypervisor' #sys.exit(1) try: domains =

Re: [Libvir] libvirt 0.1.8 Help

2007-06-27 Thread Daniel P. Berrange
On Wed, Jun 27, 2007 at 03:39:30PM +0200, Omer Khalid wrote: Hi, I have the following code working on libvirt 0.1.9: conn = libvirt.openReadOnly(None) if conn == None: print 'Failed to open connection to the hypervisor'

Re: [Libvir] libvirt 0.1.8 Help

2007-06-27 Thread Omer Khalid
I tried with the traceback. Here is the output: [('stdin', 3, '?', None), ('/usr/lib/python2.3/site-packages/libvirt.py', 268, 'lookupByID', if ret is None:raise libvirtError('virDomainLookupByID() failed'))] [('stdin', 3, '?', None), ('/usr/lib/python2.3/site-packages/libvirt.py', 268,

Re: [Libvir] libvirt 0.1.8 Help

2007-06-27 Thread Richard W.M. Jones
Omer Khalid wrote: I tried with the traceback. Here is the output: [('stdin', 3, '?', None), ('/usr/lib/python2.3/site-packages/libvirt.py', 268, 'lookupByID', if ret is None:raise libvirtError('virDomainLookupByID() failed'))] [('stdin', 3, '?', None),

Re: [Libvir] libvirt 0.1.8 Help

2007-06-27 Thread Omer Khalid
Hi Richard, Thanks for your prompt reply. I looked up the link. It refers to changing Language bindings could be modified to detect this function... What does that mean? Because catching the exception is concerned, that is I am already doing! Cheers Omer On 6/27/07, Richard W.M. Jones

[Libvir] PATCH: Fix remote driver to handle network API for local non-QEMU

2007-06-27 Thread Daniel P. Berrange
The remote_internal.c code is basically a no-op in its remoteNetworkOpen method. This means the remote driver will only handle the networking APIs, if it is also handling the main domain APIs. This works fine if connecting to a remote URI, or if using QEMU URIs, but it does not work if using the

[Libvir] [Q]Will virConnectNumOfNetworks and virConnectNumOfDefinedNetworks be supported by Xen ?

2007-06-27 Thread S.Sakamoto
Hi, When I use virt-manager that is connected by xen, the following error is given at every monitoring. libvir: Error : this function is not supported by the hypervisor: virConnectNumOfNetworks libvir: Error : this function is not supported by the hypervisor: virConnectNumOfDefinedNetworks