For Vmware workstation 5.5
I install xen from source code. The guide is as follows:
1) Download Xen 3.0.2-2 from
Xen site and linux-2.6.16.tar.bz2 from
Linux site. unzip xen source code and put linux-2.6.16.tar.bz2 into the root directory of xen.
2) compile
modify the makefile of xen root directory. Change the line KERNELS ?= linux-2.6-xen to KERNELS= linux-2.6-xen0 linux-2.6-xenU. Then compile two kernels for dom0 and domU in the following steps.
[root@localhost xen-3.0.2]# make linux-2.6-xen0-config CONFIGMODE=menuconfig (or xconfig). In this step, make sure that include the SCSI support and BUS Logic driver in the low level drivers. Otherwise you will run into kernel panic errors when booting xen.
[root@localhost xen-3.0.2]# make linux-2.6-xen0-install
[root@localhost xen-3.0.2]# make linux-2.6-xenU-config CONFIGMODE=menuconfig (or xconfig)
[root@localhost xen-3.0.2]# make linux-2.6-xenU-install
3) make initrd
You can make initrd respectively for two kernels.
Go to specified kernel directories under the xen root directory and execute the following commands.
[root@localhost 2.6.16-xen0]# make modules_install
[root@localhost 2.6.16-xen0]# mkinitrd /boot/initrd-2.6.16-xen0.img 2.6.16.6-xen
4)Modify the grub configuration. Add the following command lines.
title Xen 3.0 (XenLinux 2.6)
root (hd0,7)
kernel /boot/xen-3.0.2.gz
module /boot/vmlinuz-2.6.16-xen0 root=LABEL=/12 rhgb quiet selinux=0 (you must specify the root directory according to your configuration)
module /boot/initrd-2.6.16-xen0.img
Now you have installed dom0 successfully. Maybe you need change the init level to 3 in /etc/inittab for xen boot.
Topic revision: r2 - 24 Jun 2008 - 14:39:37 - Main.Admininistrator