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] Create VM with libxc

To: ferrucci@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] Create VM with libxc
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Wed, 28 Jun 2006 19:48:53 +0200
Delivery-date: Wed, 28 Jun 2006 10:49:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060628193729.lt17cf1g4kook4os@xxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acaa2bupvAn7xBVcTX2+rXAQuVkUfwAABcGg
Thread-topic: [Xen-devel] Create VM with libxc
> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> ferrucci@xxxxxxxxxxxxxxx
> Sent: 28 June 2006 18:37
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> Subject: RE: [Xen-devel] Create VM with libxc
> 
> 
> > What's wrong with using something like
> > execve("xm", args);
> >
> > --
> > Mats
> >
> I know this solution but it's not enough for my purpose. I must use 
> libxc/xs because I must know when I exactly create a VM and I want 
> receive a callback.
> Can someone help me?

Sure, I just try to suggest the most user-friendly approach before I go
into more complicated solutions... 

So, you need to look at .../tools/python/xm/create.py - but beware that
creating a domain isn't entirely straight-forward... 

Or if you want a more direct method, you need to parse or know the
"builder" key, and use either xc_linux_build or xc_hvm_build to perform
the actual domain creation. Not sure how you attach devices, I haven't
worked with that... 

--
Mats
> 
> Ferrucci Luca
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 
> 



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

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