Installing Xen on Debian Lenny – Binaries

Update and upgrade the system.

apt-get update && apt-get upgrade -y

Then install the following packages.

apt-get install xen-linux-system-2.6.26-2-xen-amd64 linux-modules-2.6-xen-amd64

xen-linux-system-2.6.26-2-xen-amd64 installs the following packages.

linux-image-2.6.26-2-xen-amd64
xen-hypervisor-3.2-1-amd64

This installation will create the Xen kernel at /boot and add the proper entries to the /boot/grub/menu.lst. Check your menu.lst and set the Xen kernel as the booting kernel.

vi /boot/grub/menu.lst

Check whether your Xen kernel entry is something similar to the following.

title           Xen 3.2-1-amd64 / Debian GNU/Linux, kernel 2.6.26-2-xen-amd64
root            (hd0,2)
kernel          /xen-3.2-1-amd64.gz
module          /vmlinuz-2.6.26-2-xen-amd64 root=/dev/sda1 ro console=tty0
module          /initrd.img-2.6.26-2-xen-amd64

Set the booting kernel number by changing the default line. And reboot.

After logging in check whether the Xen daemon (xend) is running. Then issue the following command to make sure Xen is running properly.

xm list

It should output something like this.

Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0 14711     8     r-----   5205.1

Return Fire!