CentOS6.x安装Xen4.2虚拟化实践

虽然RHEL6默认不支持xen虚拟化,但是互联网有大量的第三方源以及开源组织提供了xen4 on RHEL/CentOS6 xen的安装,继续开源xen应用与发展,本文采用Xen Made Easy项目网站提供的第三方安装源,方便快捷。

本文只是实践安装过程,注明:安装环境适用采用物理机进行安装,VMware workstation环境安装不成功。

官方安装文档:

一、环境说明

1. 本文采用CentOS6.5 x64,安装开发包及开发工具。

CentOS6.x安装Xen4.2虚拟化实践

2. 关闭selinux

CentOS6.x安装Xen4.2虚拟化实践

XenServer如何添加本地存储

开启并配置Citrix XenServer的SNMP服务

CentOS/Linux安装 XS-Tools (XenServer)

XenServer教程:XenCneter实现热迁移步骤

二、开始安装

1. 安装bridge-utils package

[root@xen ~]# yum install bridge-utils
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
epel/metalink | 5.4 kB 00:00
* base: centos.ustc.edu.cn
* epel: mirror01.idc.hinet.net
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
base | 3.7 kB 00:00
epel | 4.4 kB 00:00
epel/primary_db | 6.2 MB 01:07
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.7 MB 00:09
Setting up Install Process
Package bridge-utils-1.2-10.el6.x86_64 already installed and latest version
Nothing to do

2. 安装crc.id.au安装源

[root@xen ~]# yum install
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* epel: mirror01.idc.hinet.net
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
kernel-xen-release-6-5.noarch.rpm | 10 kB 00:00
Examining /var/tmp/yum-root-myODPk/kernel-xen-release-6-5.noarch.rpm: kernel-xen-release-6-5.noarch
Marking /var/tmp/yum-root-myODPk/kernel-xen-release-6-5.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package kernel-xen-release.noarch 0:6-5 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================
Installing:
kernel-xen-release noarch 6-5 /kernel-xen-release-6-5.noarch 3.5 k

Transaction Summary
================================================================================================================================================================================
Install 1 Package(s)

Total size: 3.5 k
Installed size: 3.5 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kernel-xen-release-6-5.noarch 1/1
Verifying : kernel-xen-release-6-5.noarch 1/1

Installed:
kernel-xen-release.noarch 0:6-5

Complete!
[root@xen ~]#

3. 安装xen虚拟化

[root@xen ~]# yum install xen
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* epel: mirror01.idc.hinet.net
* extras: centos.ustc.edu.cn
* kernel-xen: au1.mirror.crc.id.au
* updates: centos.ustc.edu.cn
kernel-xen | 2.9 kB 00:00
kernel-xen/primary_db | 66 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package xen.x86_64 0:4.2.4-4.el6 will be installed
base/filelists_db | 5.9 MB 00:14
epel/filelists_db | 8.7 MB 00:20
extras/filelists_db | 11 kB 00:00
kernel-xen/filelists_db | 821 kB 00:07
updates/filelists_db | 2.2 MB 00:03
--> Processing Dependency: xen-runtime = 4.2.4-4.el6 for package: xen-4.2.4-4.el6.x86_64
--> Processing Dependency: xen-licenses = 4.2.4-4.el6 for package: xen-4.2.4-4.el6.x86_64
--> Processing Dependency: xen-libs = 4.2.4-4.el6 for package: xen-4.2.4-4.el6.x86_64
--> Processing Dependency: xen-hypervisor = 4.2.4-4.el6 for package: xen-4.2.4-4.el6.x86_64
--> Processing Dependency: xen-doc = 4.2.4-4.el6 for package: xen-4.2.4-4.el6.x86_64
--> Processing Dependency: yajl for package: xen-4.2.4-4.el6.x86_64
--> Processing Dependency: libxenstore.so.3.0()(64bit) for package: xen-4.2.4-4.el6.x86_64
--> Processing Dependency: libxenguest.so.4.2()(64bit) for package: xen-4.2.4-4.el6.x86_64
--> Processing Dependency: libxenctrl.so.4.2()(64bit) for package: xen-4.2.4-4.el6.x86_64
--> Running transaction check
---> Package xen-doc.x86_64 0:4.2.4-4.el6 will be installed
---> Package xen-hypervisor.x86_64 0:4.2.4-4.el6 will be installed
--> Processing Dependency: qemu-img for package: xen-hypervisor-4.2.4-4.el6.x86_64
---> Package xen-libs.x86_64 0:4.2.4-4.el6 will be installed
---> Package xen-licenses.x86_64 0:4.2.4-4.el6 will be installed
---> Package xen-runtime.x86_64 0:4.2.4-4.el6 will be installed
---> Package yajl.x86_64 0:1.0.7-3.el6 will be installed
--> Running transaction check
---> Package qemu-img.x86_64 2:0.12.1.2-2.415.el6_5.10 will be installed
--> Processing Dependency: libusbredirparser.so.1()(64bit) for package: 2:qemu-img-0.12.1.2-2.415.el6_5.10.x86_64
--> Processing Dependency: libgfxdr.so.0()(64bit) for package: 2:qemu-img-0.12.1.2-2.415.el6_5.10.x86_64
--> Processing Dependency: libgfrpc.so.0()(64bit) for package: 2:qemu-img-0.12.1.2-2.415.el6_5.10.x86_64
--> Processing Dependency: libgfapi.so.0()(64bit) for package: 2:qemu-img-0.12.1.2-2.415.el6_5.10.x86_64
--> Running transaction check
---> Package glusterfs-api.x86_64 0:3.4.0.57rhs-1.el6_5 will be installed
---> Package glusterfs-libs.x86_64 0:3.4.0.57rhs-1.el6_5 will be installed
---> Package usbredir.x86_64 0:0.5.1-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/17659.html