使用Xen made Easy源安装xen

网址:http://xen.crc.id.au/

软件包列表:http://au1.mirror.crc.id.au/repo/


Support - Xen Installation Guide

RedHat Enterprise Linux 6
CentOS 6
Scientific Linux 6

As any user of an EL6 distro would know, the creator of EL6 packages is RedHat (lovingly called TUV or The Upstream Vendor). Sadly, Redhat dropped support for Xen in version 6 of RedHat Enterprise Linux - preferring KVM as their corporate solution. Personally, I don't think this was the correct decision. This mini-howto will give the basics of setting up the Xen Dom0 using packages maintained by Steven Haigh, the main author of this site. From there, any Xen tutorial will cover the basics (and some more advanced) functionality of Xen guests (both Windows and Linux).

More support for these packages can be found in the support section of this site.

Step 1

Download and install your base OS. I personally use Scientific Linux 6. After downloading and burning the DVD, perform a minimal install adding packages you require.

Step 2

Install the bridge-utils package.

# yum install bridge-utils

Step 3

Enable my Xen Repo for x86_64:

# yum install http://au1.mirror.crc.id.au/repo/kernel-xen-release-latest.noarch.rpm

Step 4

Choose your Xen version. We currently package Xen 4.2, 4.4 and 4.5.

Xen 4.2

# yum install xen# ls -l /boot/xen.gz lrwxrwxrwx 1 root root 12 Sep 10 02:54 /boot/xen.gz -> xen-4.2.5.gz

Xen 4.4

# yum install xen44# ls -l /boot/xen.gz lrwxrwxrwx 1 root root 12 Sep 10 02:54 /boot/xen.gz -> xen-4.4.1.gz

Xen 4.5 - Requires kernel-xen-testing enabled in EL6.

# yum install xen45# ls -l /boot/xen.gz lrwxrwxrwx 1 root root 12 Sep 10 02:54 /boot/xen.gz -> xen-4.5.0.gz

Step 5

Install the kernel-xen package. NOTE: It is important to do this AFTER installing Xen and in a separate yum command. If you combine the two, the kernel-xen package may be installed before the xen package. This will result in the required grub.conf entries not being set up.

# yum install kernel-xen

Step 6

Disable SELinux. While selinux is a great idea, it really screws with Xen. If there is anyone out there who wants to wade through what should be set for selinux to be enabled and still have Xen working, please email me! In the mean time, disable it by editing the following file /etc/sysconfig/selinux.

# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.SELINUX=disabled# SELINUXTYPE= can take one of these two values:# targeted - Targeted processes are protected,# mls - Multi Level Security protection.SELINUXTYPE=targeted

Step 7

Reboot into your new Xen kernel and test:

# xm infohost : xenhost.lan.crc.id.aurelease : 3.8.3-1.el6xen.x86_64version : #1 SMP Sat Mar 16 15:16:57 EST 2013machine : x86_64nr_cpus : 4nr_nodes : 1cores_per_socket : 4threads_per_core : 1cpu_mhz : 3303hw_caps : bfebfbff:28100800:00000000:00003f40:179ae3bf:00000000:00000001:00000000virt_caps : hvmtotal_memory : 8116free_memory : 322free_cpus : 0xen_major : 4xen_minor : 2xen_extra : .1xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64xen_scheduler : creditxen_pagesize : 4096platform_params : virt_start=0xffff800000000000xen_changeset : unavailablexen_commandline : dom0_mem=2048M cpufreq=xen dom0_max_vcpus=2 dom0_vcpus_pincc_compiler : gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4)cc_compile_by : mockbuildcc_compile_domain : crc.id.aucc_compile_date : Sat Feb 16 19:16:38 EST 2013xend_config_format : 4
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值