Sample contents.The scope of this article only covers creating the dom0 layer. Even though the Xen layer resides over the hardware layer, you will have to start with a server running Ubuntu 9.04 server edition. You will need to download the Debian Xen kernel and modules from the Debian website. Install the kernel and modules with the command:
sudo dpkg -i linux-image-2.6.26-2-xen-686_2.6.26-15lenny2_i386.deb linux-modules-2.6.26-2-xen-686_2.6.26-15lenny2_i386.deb
Once the kernel is installed, the next step is to download the Xen hypervisor and tools with the command:
sudo apt-get install xen-docs-3.3 xen-hypervisor-3.3 xen-utils-3.3 xen-tools
That is all the software that will need to be installed. The dom0 is created with the command:
sudo xen-create-image --hostname=example.net --ip=192.168.0.235 --ide --force --dir /xen
It is then started with the command:
sudo xm create /etc/xen/example.net.cfg