1、yum install gcc openssl-devel zlib-devel python-devel libX11-devel bridge-utils ncurses-devel diffstat rpm-build
2、yum install mercurial
3、wget ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/epel/5/i386/quilt-0.46-1.el5.i386.rpm
rpm -ivh quilt-0.46-1.el5.i386.rpm
4、cd /usr/src/
hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg
5、cd ../xen-3.2.1/
make world
make install
make dist
sh install.sh
6、depmod 2.6.18.8-xen
7、mkinitrd -v -f --with=aacraid --with=sd_mod --with=scsi_mod initrd-2.6.18.8-xen.img 2.6.18.8-xen
8、mkinitrd /boot/initrd-2.6.18.8-xen.img 2.6.18.8-xen
9、修改grub如下:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/sda4
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.25-14.fc9.x86_64)
root (hd0,2)
kernel /vmlinuz-2.6.25-14.fc9.x86_64 ro root=UUID=d5766f23-8458-446f-852a-55fb8279f93f rhgb quiet
initrd /initrd-2.6.25-14.fc9.x86_64.img
title Xen 3.2 / XenLinux 2.6.18.8
root (hd0,2)
kernel /xen-3.2.1.gz
module /vmlinuz-2.6.18.8-xen root=/dev/sda4 ro console=tty0
module /initrd-2.6.18.8-xen.img
10、[root@lustre-xen xen-3.2.1]# reboot
我是用的fedora9,并在其上面装xen3.2.1。
我还在第五步的make world和make install时出现了这个(include2/asm/byteorder.h:5:28: 错误:linux/compiler.h:没有那个文件或目录)的错误。
并且我在修改完grub后重启时选择Xen 3.2 / XenLinux 2.6.18.8启动后出现了启不来机的情况!
我想找找高手问问到底是怎么回事!
先谢谢各位了!
wozdaixxma 于 2011-01-08 13:59:37发表:
我也是按照楼主那样的去,总是make出错啊。楼主最近有没有找到什么办法啊?
wozdaixxma 于 2011-01-06 11:19:00发表:
楼主介绍下经验啊
灰色橙子 于 2009-01-05 11:17:54发表:
是的,只能等xen3.4出来再看看把。楼主杭电的?
ba0zhu 于 2009-01-03 23:06:39发表:
f8是最后一个正式支持xen的系统。。。
想要xen就用f8
czfyht 于 2008-12-25 12:36:45发表:
我装的是xen3。1的,内核是linux2.6.18。也遇到了和你类似的问题,你后来是怎么解决的??谢谢