WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] xc_domain_create

To: "Shaun R." <mailinglists@xxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] xc_domain_create
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Sun, 31 Aug 2008 19:01:00 +0100
Cc:
Delivery-date: Sun, 31 Aug 2008 11:01:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <g9eku4$mov$1@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckLk4ZqxOSBNHeGEd2+VwAWy6hiGQ==
Thread-topic: [Xen-devel] xc_domain_create
User-agent: Microsoft-Entourage/11.4.0.080122
On 31/8/08 18:37, "Shaun R." <mailinglists@xxxxxxxxxxxxxxxx> wrote:

> I dont understand the flags, looking at other code it looks like this is
> where i need to pass all the config data but i'm unsure how.

Not really -- a good deal of the configuration data gets cooked and written
to xenstored.

> pdomid, not sure what this is for.
> 
> If anybody can show me a basic example that would get me started in the
> right direction it would be much appreciated.

I'd start a domain with that config using xend, see what gets written to
xenstore (xenstore-ls) and then cook up a small program of your own to write
the same and then invoke xc_domain_create(), xc_dom_build(),
xc_domain_unpause(), etc.

Or you could try to work out how xend does it by looking at the python
source.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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