Disable serial port drivers
<*> Export Xen attributes in sysfs
Xen version compatibility (3.3.0 and later) --->
3.3.0 and later
配置好内核参数以后,保存并退出,开始编译 Linux 内核:
$ make
$ make modules
# make modules_install
# make install
# /sbin/depmod 2.6.31.8
更新 grub:
# vi /boot/grub/menu.lst
...
title CentOS (2.6.31.8-xen)
root (hd0,0)
kernel /xen-4.0.0.gz
module /vmlinuz-2.6.31.8 ro root=/dev/VolGroup00/LogVol00
module /initrd-2.6.31.8.img
...
重启系统,确认 Xen 安装成功:
# reboot
# uname -a
Linux localhost.localdomain 2.6.31.8 #2 SMP Tue Apr 20 11:19:19 SAST 2010 x86_64 GNU/Linux
# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3713 4 r----- 36.0