install Xen 3.4.2 on Ubuntu 8.04(x86) (1)
1.install necessary packages,include but not limited in:
2.download these packages from Xen official website
linux-2.6.18-xen-3.4.2.tar.gz => uncomcompress to ../xen-4.3.2/linux-2.6.18-xen.hg
from now on, the base directory of paths mentioned below is /xen-4.3.2
3.put these files in /stubdom/
![](https://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif)
lwip-1.3.0.tar.gz(http://download.savannah.gnu.org/releases-noredirect/lwip/lwip-1.3.0.tar.gz)
newlib-1.16.0.tar.gz(ftp://sources.redhat.com/pub/newlib/newlib-1.16.0.tar.gz)
pciutils-2.2.9.tar.gz(http://www.kernel.org/pub/software/utils/pciutils/pciutils-2.2.9.tar.gz)
zlib-1.2.3.tar.gz(http://www.zlib.net/zlib-1.2.3.tar.gz)
4.modify /linux-2.6.18-xen.hg/Makefile, specify AWK=gawk.
5.modify /buildconfigs/src.hg-clone
set -e ; \
//delete lines here
touch $@
6.compile xen and kernel
when ask for option, press y or m.
7.install Xen
8.check if these file or directory exist.
/lib/modules/2.6.18.8-xen/
/boot/vmlinuz-2.6.18.8-xen
9.make image
cp initrd.img-2.6.18.8-xen /boot/
10.modify grub, add these lines. Note the UUID should be different.
![](https://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif)
root (hd0,0)
kernel /boot/xen-3.4.2.gz
module /boot/vmlinuz-2.6.18.8-xen root=UUID=73fd4329-a05b-4dd4-b6a5-e11e99e320bd ro console=tty0 quiet
module /boot/initrd.img-2.6.18.8-xen
quiet
11.restart and choose the Xen kernel.
I got a crash here because I did these steps in VirtualBox. The info of the crash is "Crash Guru Meditation -2304 (VERR_REM_TOO_MANY_TRAPS)". It seems VB can't support virtualization guest OS, I also got failure when trying to install ESXi 3.5. The experience will continue when I got standalone machine and I'm not sure current result is correct. So pls don't follow me or you will be on your own risk.
to be continued ...
Reference
http://hi.baidu.com/shuxiaotu/blog/item/c1854cf9236e6104d9f9fd94.html
http://deidara.blog.51cto.com/400447/269062