From: Jacob Gorm Hansen Subject: Domain creation tools with Xenbus, without Xend Date: Mon, 10 Oct 2005 13:12:38 +0200 Message-ID: Reply-To: Jacob Gorm Hansen Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org hi, I promised to share my results with getting a domain connected to disk and net, without involving Xend. My mercurial repository sits at: http://www.distlab.dk/hg/index.cgi/xen-evilman.hg 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 kernel=3D/vmlinux initrd=3D/domUinitrd cmdline=3Dinit=3D/linuxrc root=3D/dev/ram init=3D/linuxrc $1 debug console= =3Dtty0 mem=3D16 maxmem=3D64 nic=3D1 vbd=3D1 console=3D1 (NB: Please beware that hda1=3Dhda1 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. Jacob -- Save time and bandwidth with EDelta: http://www.diku.dk/~jacobg/edelta/