This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-API] Re: [Xen-devel] About OpenNebula and XCP integration Pt2

To: Tino Vazquez <tinova@xxxxxxxxxxxxxx>
Subject: Re: [Xen-API] Re: [Xen-devel] About OpenNebula and XCP integration Pt2
From: Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
Date: Thu, 17 Feb 2011 09:46:51 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>, "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 17 Feb 2011 01:47:04 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinczv0OogD735ow0xQ2SjZybCskkGxBNQLNPQea@xxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTimSabucVohMKQ+EbyzaOsU9UUc9XbR9VQO9ya9K@xxxxxxxxxxxxxx> <20110211113325.GG18135@xxxxxxxxxxxxxxxxxxxxxxx> <AANLkTinczv0OogD735ow0xQ2SjZybCskkGxBNQLNPQea@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcvOh5onkPIRtOtkTc+ysKP+1FeEww==
Thread-topic: [Xen-API] Re: [Xen-devel] About OpenNebula and XCP integration Pt2
On 11 Feb 2011, at 11:46, Tino Vazquez wrote:

> Hi Tim,
> Many thanks for the hint, I've added myself to the xen-api list. I'll
> repeat my questions here for clarity shake:
> * Is it possible to add users other than with Active Directory? How
> can I achieve that using the API? Is it possible to do so xi "xe"?

Not currently, but it should be possible to achieve - I think there's a google 
summer of code proposal to address this. 

> * Is it possible to create a VM from previously existing VDIs? What
> parameters should I fill? In my tests, the created VM doesn't find the
> hard disk, these are my steps:
>    * Create vm with xe vm-create
>    * Attach a disk via XenCenter (how can I perform this operation with xe?)

xe vbd-create vm-uuid=<foo> vdi-uuid=<bar> device=<device number>

>    * Set a PV-kernel (do it need  to be in /boot/guest/?)

Yes - you need to mkdir this. You can use pygrub to boot a kernel present on 
the disk.

> * Do I need to create VMs off templates?


> * Can I attach a CDROM device using xe?

xe vbd-create type=CD vdi-uuid=... vm=... 

You can do almost everything with the CLI that you can with XenCenter, and the 
CLI commands are much more close in naming to the underlying API than the GUI 
operations. If you want to see what the GUI is doing during a particular 
operation, tail /var/log/xensource.log or audit.log, and you should see the API 
calls it's making. The CLI commands will be very similar to the names of the 

For most xe commands, don't forget that you can tab-complete your way to 
success :-)

xen-api mailing list