主頁 > 知識庫 > CentOS下使用yum安裝xen 4.2.2教程

CentOS下使用yum安裝xen 4.2.2教程

熱門標簽:臨沂語音電話機器人公司 用什么軟件做地圖標注 電銷機器人自動撥號信息 騰沖銷售外呼管理系統(tǒng)服務 洛陽外呼增值業(yè)務線路解決方案 北京地圖標注平臺注冊入駐 長沙呼叫中心外呼系統(tǒng)穩(wěn)定嗎 昆明crm外呼系統(tǒng)價格 400電話申請安裝

1.下載kernel-xen repo鏡像

復制代碼
代碼如下:

wget http://us3.mirror.crc.id.au/el6/x86_64/kernel-xen-release-6-4.noarch.rpm
rpm -ivh kernel-xen-release-6-4.noarch.rpm

2 安裝xen 內(nèi)核及其相關(guān)軟件

復制代碼
代碼如下:

yum install-y xen kernel-xen xen-libs python-virtinst bridge-utils
reboot

3.重新編譯libvirtrpm包,因為CentOS 6 中的libvirt去掉了對xen支持

復制代碼
代碼如下:

mkdir-p /root/src/
cd/root/src
wget ftp://ftp.redhat.com/pub/redhat/Linux/enterprise/6Server/en/os/SRPMS/libvirt-0.8.1-27.el6.src.rpm
rpm -i libvirt-0.8.1-27.el6.src.rpm
wget http://pasik.reaktio.net/xen/patches/libvirt-spec-rhel6-enable-xen.patch
cd/root/rpmbuild/SPECS
cp-a libvirt.spec libvirt.spec.orig
patch -p0 ~/src/libvirt-spec-rhel6-enable-xen.patch
yum installebtables libcgroup lzop iscsi-initiator-utils lvm2 dnsmasq xen-devel nfs-utils libnl-devel xhtml1-dtds libudev-devel libpciaccess-devel yajl-devel libpcap-devel avahi-devel parted-devel device-mapper-devel numactl-devel netcf-devel python-devel autoconf automake libtool libxml2-devel readline-devel ncurses-devel gnutls-devel cyrus-sasl-devel libcap-ng-devel libcurl-devel
rpmbuild -bb libvirt.spec
/root/rpmbuild/RPMS/x86_64
rpm -Uvh --force libvirt-0.8.1-27.el6.x86_64.rpm libvirt-client-0.8.1-27.el6.x86_64.rpm libvirt-python-0.8.1-27.el6.x86_64.rpm

4. 配置網(wǎng)卡為橋接模式

例如:

復制代碼
代碼如下:

cd/etc/sysconfig/network-scripts/
cp-a ifcfg-eth0 ifcfg-br0
ifcfg-br0 內(nèi)容為
DEVICE="br0"
BOOTPROTO="none"
HWADDR="6C:92:BF:00:40:CA"
NM_CONTROLLED="yes"
IPADDR=172.19.10.21
ONBOOT="yes"
type="Bridge"
NETMASK="255.255.255.0"
#UUID="a833937d-9306-44d3-a011-b941d4c4dd7b"

ifcfg-eth0修改如下

修改完畢重啟網(wǎng)卡

復制代碼
代碼如下:

service network restart

5.最后修改/boot/grub/grub.conf

復制代碼
代碼如下:

grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda8
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (3.6.7-1.el6xen.x86_64)
root (hd0,0)
kernel /xen-4.2.gz dom0_mem=4096M
module /vmlinuz-3.6.7-1.el6xen.x86_64 ro root=UUID=1b782dd8-0693-4336-b3b3-512f8f1ed548 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet
module /initramfs-3.6.7-1.el6xen.x86_64.img
title CentOS (2.6.32-279.14.1.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-279.14.1.el6.x86_64 ro root=UUID=1b782dd8-0693-4336-b3b3-512f8f1ed548 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-279.14.1.el6.x86_64.img
title CentOS (2.6.32-279.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-279.el6.x86_64 ro root=UUID=1b782dd8-0693-4336-b3b3-512f8f1ed548 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-279.el6.x86_64.img

6.重啟linux

標簽:通化 遼寧 濰坊 汕頭 昌都 涼山 三亞 南充

巨人網(wǎng)絡通訊聲明:本文標題《CentOS下使用yum安裝xen 4.2.2教程》,本文關(guān)鍵詞  CentOS,下,使用,yum,安裝,xen,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡,涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《CentOS下使用yum安裝xen 4.2.2教程》相關(guān)的同類信息!
  • 本頁收集關(guān)于CentOS下使用yum安裝xen 4.2.2教程的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章