[Libvir] How to deploy Virtual Machine via libvirt

Omer Khalid Omer.Khalid at cern.ch
Fri Sep 21 08:47:59 UTC 2007


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 is
forwarded from Python to Xen, and no error code is returned; I loose track
if the domain deployment request fails which is rare but happens.

So I thought to use libvirt for virtual machine deployment, and wondered if
there are python bindings which I could use. I also try to look up for some
kind of small example code to deploy a VM via libvirt on the libvirt site
but didn't succeed to find. Can any body help me out with their experience?

Thanks,
Omer
-- 
----------------------------------------------------------
CERN – European Organization for Nuclear
Research, IT Department,  CH-1211
Geneva 23, Switzerland

Phone: +41 (0) 22 767 2224
Fax:     +41 (0) 22 766 8683
E-mail : Omer.Khalid at cern.ch
Homepage: http://cern.ch/Omer.Khalid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070921/50f55d78/attachment-0001.htm>


More information about the libvir-list mailing list