Mailing List Archive

Start a VM from a .cfg file with xen api
Hi!

This is my first mail on this list.

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?

Regards,
Agustin

_______________________________________________
xen-api mailing list
xen-api@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
Re: Start a VM from a .cfg file with xen api [ In reply to ]
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@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api