These are the commands that I used to compile and install Xen 3.4.1 on my Ubuntu Server.
sudo su - apt-get update apt-get upgrade dpkg-reconfigure tzdata echo 'export EDITOR=/usr/bin/vi' >> /etc/profile apt-get remove exim4 exim4-base lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig apt-get install build-essential g++ apt-get install python-dev python-twisted apt-get install bridge-utils apt-get install debootstrap apt-get install reiserfsprogs apt-get install mercurial apt-get install gawk apt-get install gettext openssl zlib1g-dev openssl libssl-dev libx11-dev apt-get install libx86-dev bin86 bcc ncurses-dev texinfo mkdir /usr/src/XEN cd !$ wget http://bits.xensource.com/oss-xen/release/3.4.1/xen-3.4.1.tar.gz hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg tar zxf xen-3.4.1.tar.gz cd xen-3.4.1 make prep-kernels make dist make install