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

[Xen-devel] Domain creation tools with Xenbus, without Xend

  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Jacob Gorm Hansen <jacobg@xxxxxxx>
  • Date: Mon, 10 Oct 2005 13:12:38 +0200
  • Delivery-date: Mon, 10 Oct 2005 11:10:03 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KhTWqIrb+VOMxKvd/NnFYbjVsm11ch3HJS93H5SBh2Av6qXE1LQaL1dSP8naQYitWWVjRp3255n4AGFDlMkFBDVQ5jwBZIfd/zxVo3CgrYxOzmAB3D15jJe+baZW0K4chbMoVsPDm8z2eGepPlxSPWfUB6cAj2mn64cstrWQp5Y=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>


I promised to share my results with getting a domain connected to disk
and net, without involving Xend. My mercurial repository sits at:


My tools are in the tools/migrate directory. They are:

businit.c   :   run this after dom0 boot and after starting xenstored
to init xenstore.
buscreate.c [-p] cfgfile   :   create a domain from settings in cfgfile

The file format of cfgfile is very simple, here is an example:

~ # cat normallinux.cfg
cmdline=init=/linuxrc root=/dev/ram init=/linuxrc $1 debug console=tty0

(NB: Please beware that hda1=hda1 is hardcoded for now, that should be
easy to fix in buscreate.c!)

The easiest way to build my tools is to execute 'jam' at either the
top level, or in the tools/migrate subdirectory. The resulting
binaries will end up in the 'build' directory at the toplevel,
statically linked against libxc and libxs. The kernel tree there also
contains my self-migration/self-checkpointing driver which now works
with xen-unstable and linux 2.6, but you will need further explanation
to get that running. Contact me if interested.

My tree also servers as an example of how you can build the tools with
Jam, without polluting your source tree with .o files and similar
nasty stuff.


Save time and bandwidth with EDelta: http://www.diku.dk/~jacobg/edelta/

Xen-devel mailing list



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