CentOS 5.3源碼安裝xen-3.2.0

來源:互聯網
上載者:User

到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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.