CentOS 5.3源码安装xen-3.2.0

跟風遠走 提交于 2019-12-01 12:15:50


到http://www.xen.org/download/index_3.2.0.html下载源码。第一个文件,Xen3.2 tarball是官方的源码包,第三个文件,Xen 3.2是针对Red Hat Enterprise Linux 5 and Centos 5的rpm包。将它们下载到本地一个文件夹。(xen software)

[root@localhost xen software] gedit /etc/yum.conf
将gpgcheck=1改为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     00:00    
updates                                                  | 1.9 kB     00:00    
addons                                                   |  951 B     00:00    
extras                                                   | 2.1 kB     00: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 0:3.2.0-0xs.centos5 set to be updated
---> Package xen-devel.i386 0:3.2.0-0xs.centos5 set to be updated
---> Package xen-libs.i386 0:3.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/5]
  Updating       : xen                                               [2/5]
  Installing     : xen-devel                                         [3/5]
  Cleanup        : xen                                               [4/5]
  Cleanup        : xen-libs                                          [5/5]

Installed: xen-devel.i386 0:3.2.0-0xs.centos5
Updated: xen.i386 0:3.2.0-0xs.centos5 xen-libs.i386 0:3.2.0-0xs.centos5
Complete!
[root@localhost xen software]# tar zxvf xen-3.2.0.tar.gz
[root@localhost xen software]cd xen-3.2.0

[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

添加如下:

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!