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
 
   
 

xci-devel

Re: [Xci-devel] Which API for VM lifecycle?

To: Andreas Sommer <AndiDog@xxxxxx>
Subject: Re: [Xci-devel] Which API for VM lifecycle?
From: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
Date: Mon, 25 Jan 2010 11:50:30 +0000
Cc: "xci-devel@xxxxxxxxxxxxxxxxxxx" <xci-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 25 Jan 2010 03:52:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B5B4B2B.6000906@xxxxxx>
List-archive: <http://lists.xensource.com/archives/html/xci-devel>
List-help: <mailto:xci-devel-request@lists.xensource.com?subject=help>
List-id: xci-devel.lists.xensource.com
List-post: <mailto:xci-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xci-devel>, <mailto:xci-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xci-devel>, <mailto:xci-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4B5B4B2B.6000906@xxxxxx>
Sender: xci-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109)
Andreas Sommer wrote:
I'm currently trying to find out the basic structure of XCI and would like to know which APIs are available (in general), and which of them can be used for simple lifecycle tasks like:

- Creating, starting, shutting down, ... VMs
- List running VMs
xenvm is the main thing you should look at. it's a single VM daemon
that control the lifecycle of the VM. it supports all sorts of methods (available conveniently through xenvm-cmd, on dbus and/or a unix socket), to start/shutdown/suspend/etc..

I'll suggest having a look at the xenvm.readme file for more description on how to use it.

From a more low-level point of view, you have the xenops binary that have lots of sub command; the only really useful is xenops list, but you should be able to chain multiple xenops command (create, build, add_vbd, .. ) to create a fully working VM with a shell script too. xenops help and xenops <subcmd> -h will get you already quite far.

--
Vincent

_______________________________________________
Xci-devel mailing list
Xci-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xci-devel

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