Xen-4.1.2 + Linux-3.1.2 source code compilation install all of the following commands operate on centos6.2 systems. Download xen source code
Wget http://bits.xensource.com/oss-xen/release/4.1.2/xen-4.1.2.tar.gz
Install necessary software packages
yum groupinstall "Development Libraries"
yum groupinstall "Development Tools"
yum install transfig wget texi2html libaio-devel dev86 glibc-devel e2fsprogs-devel gitk mkinitrd iasl xz-devel bzip2-devel pciutils-libs pciutils-devel SDL-devel libX11-devel gtk2-devel bridge-utils PyXML qemu-common qemu-img mercurial libidn-devel
yum -y install glibc-devel.i686texinfo libuuid-devel iasl python-lxml
yum -y install openssl openssl-devel
yum -y install ncurses ncurses-*
yum install python-devel -y
Compile and install xen hypervisor
tar zxvf xen-4.1.2.tar.gz
make world
make install
/Bootadded xen-4.1.2.gz and xen-syms-4.1.2 files
Add xen to the startup script:
/sbin/chkconfig --add xend
/sbin/chkconfig --add xencommons
/sbin/chkconfig --add xendomains
/sbin/chkconfig xend on
/sbin/chkconfig xendomains on
/sbin/chkconfig xencommons on
Compile and install the linux3.1.2 Kernel
Wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.1.2.tar.bz2 #
Make oldconfig # All default#
Make menuconfigProcessor type and features ---> select paravirtualized guest support device drivers ---> xen driver support ---> select all * modify: config_xen_dev_evtchn = Y (
If it is m, xencommons cannot be started at startup.)
Make
Make modules
Make modules_install
Make install (the xen-evtchn module is not found, ignore)
Depmod 3.1.2
Mkinitrd-v-f -- with = aacraid -- with = sd_mod -- with = scsi_mod initramfs-3.1.2.img 3.1.2
Configure grub: Title centos (3.1.2-xen)
Root (hd0, 0)
Kernel/boot/xen-4.1.2.gz dom0_mem = 1024 m
Module/boot/vmlinuz-3.1.2 Ro root =/dev/sda1
Module/boot/initramfs-3.1.2.img
Refer:
Http://linuxme.blog.51cto.com/1850814/390778
Http://share.blog.51cto.com/278008/723828
Http://blog.chinaunix.net/space.php? Uid = 147142 & Do = Blog & id = 2788048
Http://wiki.xen.org/xenwiki/2.6.18-to-2.6.31-and-higherhttp://wiki.xen.org/wiki/Migrate_from_Linux_2.6.18_to_2.6.31_and_higherhttp://wiki.xen.org/wiki/Mainline_Linux_Kernel_Configshttp://wiki.xen.org/wiki/HostConfiguration/Networking