Here are my notes on the installation of Xen 3.0 on a Debian Etch operating system.

Debian installation

Make a vanilla install of Debian Etch. Select only the base system packages.

Xen installation

Install the following packages

  • xen-hypervisor-3.0.3-1-i386
  • xen-utils-3.0.3-1-i386
  • xen-docs-3.0
  • xen-tools
  • linux-image-xen-686

This can be done with the following commands :

aptitude -y update
aptitude -y upgrade
aptitude -y install xen-hypervisor-3.0.3-1-i386 xen-utils-3.0.3-1-i386 xen-docs-3.0 xen-tools linux-image-xen-686

The entry in the /boot/grub/menu.lst is created automatically. You can now reboot on the new Xen kernel.

Debian Boot Screen with XEN 3.0.3 installed

Xen guest OS creation

Here is the command line to create a Debian Etch guest system (backed by a sparse file) :

xen-create-image \
--initrd /boot/initrd.img-2.6.17-2-xen-686 \
--kernel /boot/vmlinuz-2.6.17-2-xen-686 \
--memory 32 \
--size 1Gb \
--noswap \
--dist etch \
--debootstrap \
--mirror http://ftp.fr.debian.org/debian \
--dhcp \
--dir /srv/xen \
--hostname vm00

Xen guest OS creation

Here is the command line to create a Debian Etch guest system (backed by a LVM partition create on "vg0" Volume Group) :

xen-create-image \
--initrd /boot/initrd.img-2.6.17-2-xen-686 \
--kernel /boot/vmlinuz-2.6.17-2-xen-686 \
--memory 32 \
--size 1Gb \
--noswap \
--dist etch \
--debootstrap \
--mirror http://ftp.fr.debian.org/debian \
--dhcp \
--lvm vg0 \
--hostname vm00