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] More specific questions about creating a domU via the API

To: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
Subject: Re: [Xen-API] More specific questions about creating a domU via the API
From: Tom Wilkie <tom.wilkie@xxxxxxxxx>
Date: Thu, 5 Jul 2007 17:34:31 +0100
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 05 Jul 2007 09:32:08 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=NFeJ7pHy7/nA06cN9BQZHz42HwOwnYhAJChDlRNhS/cj57hTsWaMa1H72Shs22yR+nLBxMCz3zS8zUa7ffuyNqOhDEK6VmcPWdfMkMtbMwk4HJ7RtzoKtLqeYl/GnbGVijR4IajjdliRvyJbGhNKAJTTmM1DjKlIBZyE+BFoSqo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=YoZvSYCSzpuxcB9NPGHORuEy2rtr9JD69LLHf13nDzBmNPiQ02nAu5VDfs9BvVQe7aDtjjvR8FfnOUXWdA7QNp7UTMHNYiUODj92HeGxfgdczSgrpC1fNXdD2p0PVcvzm6n7LZnNU062cm+Tv8nKUHpY1WMpU6vag/Yj1ly3nM8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <2d460de70707050930h383cf602uf9cda2dccdb4858a@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/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <2d460de70707050930h383cf602uf9cda2dccdb4858a@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Xend doesn't manage the storage yet, I'm afraid, so it has to be done manually.

Once you have created you LVM partition, you need to create (via the API) a VDI (virtual disk image) to represent it. Do this with VDI.create(...), an example of the params is in the xenapi_create.py file in xm/.

Once you have a VDI, you must create a VBD to attach it to a VM. You VBD.create to do this, again examples in the xenapi_create.py file.

Then, it should work!



On 5 Jul 2007, at 17:30, Richard Hartmann wrote:

Hi yet again ;)

after looking at the source of the API, I am now able to
create a domU via XML RPC. What I do not understand
though, is how I could attach VBDs to my domU.

Using lvcreate to create a VBD on my physical disk works
like a charm, but VBD.get_all will not list that VBD.

If possible, I would, of course, prefer to create the VBD via
the API in the first place.

As always, thanks for any help you guys can give me :)
xen-api mailing list

xen-api mailing list

<Prev in Thread] Current Thread [Next in Thread>