Download the source code at http://www.xen.org/download/index_3.2.0.html. In the first file, xen3.2 tarball is the official source code package and the third file. xen 3.2 is the RPM package for Red Hat Enterprise Linux 5 and centos 5. Download them to a local folder. (Xen software)
[Root @ localhost xen software] gedit/etc/yum. conf
Change gpgcheck = 1 to gpgcheck = 0
[Root @ localhost xen software] # Yum install xen-3.2.0-0xs.centos5.i386.rpm xen-libs-3.2.0-0xs.centos5.i386.rpm xen-devel-3.2.0-0xs.centos5.i386.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Base: mirrors.163.com
* Updates: mirrors.163.com
* Addons: mirrors.163.com
* Extras: mirrors.163.com
Base | 1.1 kb
Updates | 1.9 kb: 00
Addons | 951 B 00: 00
Extras | 2.1 kb: 00
Setting up install process
Parsing package install arguments
Examining xen-3.2.0-0xs.centos5.i386.rpm: xen-3.2.0-0xs.centos5.i386
Marking xen-3.2.0-0xs.centos5.i386.rpm as an update to xen-3.0.3-105.el5.i386
Examining xen-libs-3.2.0-0xs.centos5.i386.rpm: xen-libs-3.2.0-0xs.centos5.i386
Marking xen-libs-3.2.0-0xs.centos5.i386.rpm as an update to xen-libs-3.0.3-105.el5.i386
Examining xen-devel-3.2.0-0xs.centos5.i386.rpm: xen-devel-3.2.0-0xs.centos5.i386
Marking xen-devel-3.2.0-0xs.centos5.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package xen. i386. 2.0-0xs. centos5 set to be updated
---> Package xen-devel.i386. 2.0-0xs. centos5 set to be updated
---> Package xen-libs.i386. 2.0-0xs. centos5 set to be updated
--> Finished dependency resolution
Dependencies resolved
========================================================== ==========================================================
Package arch version repository size
========================================================== ==========================================================
Installing:
Xen-devel i386 3.2.0-0xs. centos5 xen-devel-3.2.0-0xs.centos5.i386.rpm 220 K
Updating:
Xen i386 3.2.0-0xs. centos5 xen-3.2.0-0xs.centos5.i386.rpm 4.8 m
Xen-libs i386 3.2.0-0xs. centos5 xen-libs-3.2.0-0xs.centos5.i386.rpm 157 K
Transaction Summary
========================================================== ==========================================================
Install 1 package (s)
Update 2 package (s)
Remove 0 package (s)
Total download size: 5.2 m
Is this OK [Y/n]: Y
Downloading packages:
Running rpm_check_debug
Running transaction Test
Finished transaction Test
Transaction test succeeded
Running transaction
Updating: xen-libs [1, 1/5]
Updating: xen [2, 2/5]
Installing: xen-devel [3/5]
Cleanup: xen [1, 4/5]
Cleanup: xen-libs [5/5]
Installed: xen-devel.i386. 2.0-0xs. centos5
Updated: xen. i386. 2.0-0xs. centos5 xen-libs.i386. 2.0-0xs. centos5
Complete!
[Root @ localhost xen software] # tar zxvf xen-3.2.0.tar.gz
[Root @ localhost xen software] xen-3.2.0 CD
[Root @ localhost xen-3.2.0] rpm-IVH ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
[Root @ localhost xen-3.2.0] Yum install mercurial
[Root @ localhost xen-3.2.0] Hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg
[Root @ localhost xen-3.2.0] Make Dist
[Root @ localhost xen-3.2.0] make install
[Root @ localhost xen-3.2.0] mkinitrd-v-f -- with = aacraid -- with = sd_mod -- with = scsi_mod/boot/initrd-2.6.18.8-xen.img 2.6.18.8-xen
[Root @ localhost xen-3.2.0] vi/boot/GRUB/grub. conf
Add as follows:
Title Xen-3.2.0
Root (hd0, 5)
Kernel/xen-3.2.0.gz
Module/vmlinuz-2.6.18.8-xen Ro root = label =/rhgb quiet
Module/initrd-2.6.18.8-xen.img