Jacob Gorm Hansen
2005-Oct-10 11:12 UTC
[Xen-devel] Domain creation tools with Xenbus, without Xend
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=/vmlinux initrd=/domUinitrd cmdline=init=/linuxrc root=/dev/ram init=/linuxrc $1 debug console=tty0 mem=16 maxmem=64 nic=1 vbd=1 console=1 (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. Jacob -- Save time and bandwidth with EDelta: http://www.diku.dk/~jacobg/edelta/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel