1. yum install xen 报错,应该是yum没有设置好,不搞了手动安装
[root@localhost Server]# yum install xen
Loaded plugins: rhnplugin, security
Repository centos is listed more than once in the configuration
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xen.i686 0:3.0.3-142.el5_9.3 set to be updated
--> Processing Dependency: xen-hypervisor-abi = 3.1 for package: xen
--> Processing Dependency: xen-libs = 3.0.3-142.el5_9.3 for package: xen
--> Processing Dependency: libxenctrl.so.3.0 for package: xen
--> Processing Dependency: libSDL-1.2.so.0 for package: xen
--> Processing Dependency: libfsimage.so.1.0 for package: xen
--> Processing Dependency: libxenguest.so.3.0 for package: xen
--> Processing Dependency: libxenstore.so.3.0 for package: xen
--> Processing Dependency: python-virtinst for package: xen
--> Processing Dependency: bridge-utils for package: xen
--> Processing Dependency: libblktap.so.3.0 for package: xen
--> Processing Dependency: libfsimage.so.1.0(libfsimage.so.1.0) for package: xen
--> Processing Dependency: xz-libs for package: xen
--> Running transaction check
---> Package kernel-xen.i686 0:2.6.18-348.18.1.el5 set to be installed
---> Package xen.i686 0:3.0.3-142.el5_9.3 set to be updated
--> Processing Dependency: libSDL-1.2.so.0 for package: xen
--> Processing Dependency: python-virtinst for package: xen
--> Processing Dependency: bridge-utils for package: xen
--> Processing Dependency: xz-libs for package: xen
---> Package xen-libs.i686 0:3.0.3-142.el5_9.3 set to be updated
--> Processing Dependency: libext4fs.so.2 for package: xen-libs
--> Processing Dependency: liblzma.so.0 for package: xen-libs
--> Finished Dependency Resolution
xen-3.0.3-142.el5_9.3.i686 from centos has depsolving problems
--> Missing Dependency: bridge-utils is needed by package xen-3.0.3-142.el5_9.3.i686 (centos)
xen-libs-3.0.3-142.el5_9.3.i686 from centos has depsolving problems
--> Missing Dependency: libext4fs.so.2 is needed by package xen-libs-3.0.3-142.el5_9.3.i686 (centos)
xen-3.0.3-142.el5_9.3.i686 from centos has depsolving problems
--> Missing Dependency: python-virtinst is needed by package xen-3.0.3-142.el5_9.3.i686 (centos)
xen-3.0.3-142.el5_9.3.i686 from centos has depsolving problems
--> Missing Dependency: libSDL-1.2.so.0 is needed by package xen-3.0.3-142.el5_9.3.i686 (centos)
xen-libs-3.0.3-142.el5_9.3.i686 from centos has depsolving problems
--> Missing Dependency: liblzma.so.0 is needed by package xen-libs-3.0.3-142.el5_9.3.i686 (centos)
xen-3.0.3-142.el5_9.3.i686 from centos has depsolving problems
--> Missing Dependency: xz-libs is needed by package xen-3.0.3-142.el5_9.3.i686 (centos)
Error: Missing Dependency: bridge-utils is needed by package xen-3.0.3-142.el5_9.3.i686 (centos)
Error: Missing Dependency: libSDL-1.2.so.0 is needed by package xen-3.0.3-142.el5_9.3.i686 (centos)
Error: Missing Dependency: python-virtinst is needed by package xen-3.0.3-142.el5_9.3.i686 (centos)
Error: Missing Dependency: liblzma.so.0 is needed by package xen-libs-3.0.3-142.el5_9.3.i686 (centos)
Error: Missing Dependency: libext4fs.so.2 is needed by package xen-libs-3.0.3-142.el5_9.3.i686 (centos)
Error: Missing Dependency: xz-libs is needed by package xen-3.0.3-142.el5_9.3.i686 (centos)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
[root@localhost VT]# rpm -ivh python-virtinst-0.400.3-11.el5.noarch.rpm libvirt-python-0.8.2-15.el5.i386.rpm libvirt-0.8.2-15.el5.i386.rpm ../Server/bridge-utils-1.1-2.i386.rpm ../Server/cyrus-sasl-md5-2.1.22-5.el5_4.3.i386.rpm ../Server/xen-libs-3.0.3-120.el5.i386.rpm ../Server/e4fsprogs-libs-1.41.12-2.el5.i386.rpm ../Server/xz-libs-4.999.9-0.3.beta.20091007git.el5.i386.rpm
warning: python-virtinst-0.400.3-11.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:xz-libs ########################################### [ 13%]
2:e4fsprogs-libs ########################################### [ 25%]
3:xen-libs ########################################### [ 38%]
4:cyrus-sasl-md5 ########################################### [ 50%]
5:bridge-utils ########################################### [ 63%]
6:libvirt ########################################### [ 75%]
7:libvirt-python ########################################### [ 88%]
8:python-virtinst ########################################### [100%]
[root@localhost VT]# pwd
/mnt/VT
注意我的目录是/mnt/VT
2.重新运行
[root@localhost VT]# yum install xen
Loaded plugins: rhnplugin, security
Repository centos is listed more than once in the configuration
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xen.i686 0:3.0.3-142.el5_9.3 set to be updated
--> Processing Dependency: xen-hypervisor-abi = 3.1 for package: xen
--> Processing Dependency: xen-libs = 3.0.3-142.el5_9.3 for package: xen
--> Processing Dependency: libSDL-1.2.so.0 for package: xen
--> Running transaction check
---> Package kernel-xen.i686 0:2.6.18-348.18.1.el5 set to be installed
---> Package xen.i686 0:3.0.3-142.el5_9.3 set to be updated
--> Processing Dependency: libSDL-1.2.so.0 for package: xen
---> Package xen-libs.i686 0:3.0.3-142.el5_9.3 set to be updated
--> Finished Dependency Resolution
xen-3.0.3-142.el5_9.3.i686 from centos has depsolving problems
--> Missing Dependency:
libSDL-1.2.so.0 is needed by package xen-3.0.3-142.el5_9.3.i686 (centos)
Error: Missing Dependency: libSDL-1.2.so.0 is needed by package xen-3.0.3-142.el5_9.3.i686 (centos)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
3.安装SDL rpm包,再重新运行就可以安装xen了
[root@localhost VT]# rpm -ivh ../Server/SDL-1.2.10-8.el5.i386.rpm
warning: ../Server/SDL-1.2.10-8.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:SDL ########################################### [100%]
[root@localhost VT]# yum install xen
Loaded plugins: rhnplugin, security
Repository centos is listed more than once in the configuration
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xen.i686 0:3.0.3-142.el5_9.3 set to be updated
--> Processing Dependency: xen-hypervisor-abi = 3.1 for package: xen
--> Processing Dependency: xen-libs = 3.0.3-142.el5_9.3 for package: xen
--> Running transaction check
---> Package kernel-xen.i686 0:2.6.18-348.18.1.el5 set to be installed
---> Package xen-libs.i686 0:3.0.3-142.el5_9.3 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
xen i686 3.0.3-142.el5_9.3 centos 1.9 M
Installing for dependencies:
kernel-xen i686 2.6.18-348.18.1.el5 centos 21 M
Updating for dependencies:
xen-libs i686 3.0.3-142.el5_9.3 centos 178 k
Transaction Summary
=============================================================================================================================
Install 2 Package(s)
Upgrade 1 Package(s)
Total download size: 23 M
Is this ok [y/N]:y
报错,手动安装kernel-xen 支持xen的linux 内核
[root@localhost Server]# rpm -ivh kernel-xen-2.6.18-238.el5.i686.rpm
warning: kernel-xen-2.6.18-238.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:kernel-xen ########################################### [100%]
[root@localhost Server]# cd ../VT/
[root@localhost VT]# rpm -ivh xen-
xen-3.0.3-120.el5.i386.rpm xen-devel-3.0.3-120.el5.i386.rpm
[root@localhost VT]# rpm -ivh xen-3.0.3-120.el5.i386.rpm
warning: xen-3.0.3-120.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:xen ########################################### [100%]
[root@localhost VT]# rpm -q xen kernel-xen xen-libs virt-manager python-virtinst
xen-3.0.3-120.el5
kernel-xen-2.6.18-238.el5
xen-libs-3.0.3-120.el5
package virt-manager is not installed
python-virtinst-0.400.3-11.el5
查询virt-manger没有安装,可以自己安装下
[root@localhost VT]# rpm -ivh virt-manager-0.6.1-13.el5.i386.rpm ../Server/gnome-python2-gnomekeyring-2.16.0-3.el5.i386.rpm ../Server/gtk-vnc-python-0.3.8-3.el5.i386.rpm ../Server/gtk-vnc-0.3.8-3.el5.i386.rpm
warning: virt-manager-0.6.1-13.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:gtk-vnc ########################################### [ 25%]
2:gtk-vnc-python ########################################### [ 50%]
3:gnome-python2-gnomekeyr########################################### [ 75%]
4:virt-manager ########################################### [100%]