[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] Start a VM from a .cfg file with xen api



On Mon, 12 May 2008, Agustín López wrote:

>
> I am looking for one example to start a xen VM with the python binding
> of the xen API .
> I am trying:
>
>    vm = session.xenapi.VM.get_by_name_label(domainU)[0]
>
> but this get one error because domainU is not started.
>
> Any tip, please?

I can help you with exactly this problem... but there are currently some
better alternatives. For XenAPI you have to go Xen XML, I'm probably the
only one with an example of this online.

Next to this importing the XenAPI python code is required to for 'useful'
creates. For new users I would advise to go with libvirt's python
bindings. It has more documentation to set such thing up.


Stefan


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.