[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.