The Perfect Xen 3.1.0 Setup For Debian Etch (i386) - Page 2

4 Installing The Binary Package

Run the following commands:

apt-get remove exim4 exim4-base lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig

apt-get install screen ssh debootstrap python python-twisted iproute bridge-utils libcurl3-dev libssl0.9.7


4.1 Install Xen

Then download xen-3.1.0-install-x86_32.tgz from, unpack it, and run the install script:

cd /usr/src
tar xvzf xen-3.1.0-install-x86_32.tgz
cd dist/
mv /lib/tls /lib/tls.disabled

Now Xen is installed. In order to start the Xen services at boot time, do the following:

update-rc.d xend defaults 20 21
update-rc.d xendomains defaults 21 20

We need a ramdisk for our new Xen kernel, therefore we do the following:

depmod 2.6.18-xen
apt-get install yaird

To create the ramdisk, we run

mkinitrd.yaird -o /boot/initrd.img-2.6.18-xen 2.6.18-xen

The last command creates the ramdisk /boot/initrd.img-2.6.18-xen.

Next we add our new kernel to Grub, our bootloader. We can do this with one simple command:


Now reboot the system:

shutdown -r now

At the boot prompt, Grub should now list Xen 3.1.0 / Debian GNU/Linux, kernel 2.6.18-xen as the first kernel and boot it automatically:

If your system comes up without problems, then everything is fine!


uname -a

and your new Xen kernel should show up:

server1:~# uname -a
Linux 2.6.18-xen #1 SMP Fri May 18 16:11:33 BST 2007 i686 GNU/Linux

Share this page:

7 Comment(s)

Add comment


From: at: 2007-11-19 07:26:51

I installed xen from binary package in Debian Lenny (amd64) according your notes and everything is fine.

The only problem was initrd, where my Raid partitions were not recognized on the boot and therefore the boot failed. The solution was using:

mkinitramfs -o /boot/initrd.img-2.6.18-xen 2.6.18-xen

instead of

mkinitrd.yaird -o /boot/initrd.img-2.6.18-xen 2.6.18-xen

From: at: 2007-09-07 19:32:07

Dear Author

please add the bcc package to your requirements. The hvmloader won´t be compiled without it. It took me an hour or so to discover the missing package.

Best Regards an thx for the Howto



From: at: 2007-10-26 22:33:58

 You say:

> Please make sure that you comment out the initrd line!

When I did this my LVM-based VM's wouldn't boot.

From: at: 2007-11-14 22:14:38


 I think there isa newer version of xen utils neccessary, because the XEN-3.1.0 Binary version seems to be to new ...

It also asked a lots of questions about replacing scripts when I installed xen utils via aptitude - and after rebooting it a secound time my xen bridge settings got lost and I wheren't able to start any virtual machine again.

There might be an update of the Howto neccessary ...



J. K. S.

From: at: 2007-06-21 10:00:34

some hints for compiling Xen 3.1:

if you wan't the VNC/SDL feature with HVM you need the following packages:

 libjpeg62-dev, libvncserver-dev,  libsdl1.2-dev

and you need to set the following var:

export XENFB_TOOLS=y

and maybe you miss hvmloader: you need the package bcc or it will just not compile.

To check build dependecies there is a nice script:

cd tools/check

./chk build

- Thomas 

PS: see also: 

From: at: 2007-07-17 16:31:24

If your root partition is on LVM you need to create an initrd for xen0 kernel as well, run: mkinitramfs -o /boot/initrd.img-2.6.18-xen0 2.6.18-xen0 before update-grub

From: at: 2007-11-01 05:16:08

It seems that the default bnx2 drivers in the Debian Etch kernel are malfunctioning with the network-bridge script in Xen 3.1.

For anyone having issues with the network-bridge and you are using broadcom nics (Dell PowerEdge, etc.) you should install the drivers found here:

Also check out this thread for some talk on the problem: