[Libvir] How to deploy Virtual Machine via libvirt

2007-09-21 Thread Omer Khalid
Hi, I have been using libvirt in my python software for a while just to get deployed domain information. Usually I create a xen configuration file with all the parameters and trigger a xm create -f file command to deploy the VM. The problem I have noticed since some time is that as this command

Re: [Libvir] Updating an existing libvirt installation

2007-07-10 Thread Omer Khalid
Thanks a lot for your prompt reply and the explaination. The upgrade I would like to make is from 0.1.8 to 0.1.9. Could you please guide me to a HowTo link? Many thanks, Omer On 7/10/07, Richard W.M. Jones [EMAIL PROTECTED] wrote: Omer Khalid wrote: Hi, I am wondering if its possible

[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 Omer Khalid
, 'lookupByID', if ret is None:raise libvirtError('virDomainLookupByID() failed'))] Thanks Omer On 6/27/07, Daniel P. Berrange [EMAIL PROTECTED] wrote: 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

Re: [Libvir] libvirt 0.1.8 Help

2007-06-27 Thread Omer Khalid
[EMAIL PROTECTED] wrote: 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), ('/usr/lib

[Libvir] Still can't run a simple python test libvirt !

2006-12-19 Thread Omer Khalid
Hi, I am still unable to run my simple libvirt test! I checked out the code from libvirt cvs and following the instructions till 'make install'. It all went well. So then I ran my simply python test, as shown here (http://www.libvirt.org/python.html). It keeps on giving me the following error.

Re: [Libvir] Still can't run a simple python test libvirt !

2006-12-19 Thread Omer Khalid
Aha.. I thought so :-) Ok.. I will try to deploy this with later Python versions (2.5) perhaps! Thanks ! Omer On 12/19/06, Daniel P. Berrange [EMAIL PROTECTED] wrote: On Tue, Dec 19, 2006 at 04:40:43PM +0100, Omer Khalid wrote: Thank you Daniel! So setting up the PYTHONPATH variable did

Re: [Libvir] Libvirt Build problems

2006-12-12 Thread Omer Khalid
, line 1, in ? import libvirt ImportError: No module named libvirt Any help would be much appreciated! Cheers Omer On 12/11/06, Daniel Veillard [EMAIL PROTECTED] wrote: On Mon, Dec 11, 2006 at 05:22:41PM +0100, Omer Khalid wrote: Hi, I am trying to build libvirt on *SL4 (kernal

[Libvir] Libvirt Build problems

2006-12-11 Thread Omer Khalid
Hi, I am trying to build libvirt on *SL4 (kernal = 2.6.12.6-xen3_12.1_rhel4.1). I tried both snapshot tar ball and the cvs checked out version. With the tar ball, after running the ./configure script, make file is created. But make file fails and complains the following: libvirt.c:24:16: xs.h: