debxen
Install Xen 3.0.2 from sources on Debian
Pre-requirements
In addition to runtime Xen dependencies I needed to install also zlib1g-dev and python2.3-devwget http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-3.0.2-2-src.tgz
Untar and go to xen-3.0.2-2 directory
Make sure to backup and remove:/usr/lib/xen/ /usr/lib/python/xen/ /usr/lib/python/grub/ /etc/default/xendomains /etc/init.d/xend /etc/init.d/xendomains /boot/xen*.gz
Compile and install
make xen make install-xen make tools make install-tools # create/update dom0 kernel make linux-2.6-xen0-config CONFIGMODE=menuconfig make linux-2.6-xen0-build make linux-2.6-xen0-dist # ( will copy the kernel to dist/ ) make linux-2.6-xen0-install # ( install in /boot ) # create/update domU kernel make linux-2.6-xenU-config CONFIGMODE=menuconfig make linux-2.6-xenU-build make linux-2.6-xenU-dist # ( will copy the kernel to dist/ ) make linux-2.6-xenU-install # ( install in /boot )
Post-install
Install the modules inside the domU domains
/etc/xen/domU-config.sxp (dual cpu, ext3, LVM2 root and swap)
name="NAME" kernel="/boot/vmlinuz-2.6.16-xenU" root="/dev/hda1 ro rootflags=data=journal elevator=cfq" memory=256 disk=['phy:/dev/sys/NAME,hda1,w','phy:/dev/sys/NAME_swap,hda2,w'] # network dhcp ="off" vif = [ 'mac=00:10:10:10:xx:yy' ] hostname="NAME" vcpus=2 cpus="0-1" extra="3"
Edit the /boot/grub/menu.lst
title Xen 3.0.2-2 - Linux 2.6.16-xen0 kernel /boot/xen-3.0.2-2.gz dom0_mem=262144 module /boot/vmlinuz-2.6.16-xen0 root=/dev/sda2 ro