位置: 编程技术 - 正文
推荐整理分享CentOS下使用yum安装xen 4.2.2教程(centos怎么安装yum源),希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:centos常用命令安装,centos7如何安装yum命令,centos如何安装yum,centos如何安装yum,centos安装yum,centos常用命令安装,centos6.5安装yum,centos安装yum,内容如对您有帮助,希望把文章链接给更多的朋友!
1.下载kernel-xen repo镜像复制代码代码如下:wget -ivh kernel-xen-release-6-4.noarch.rpm2 安装xen 内核及其相关软件复制代码代码如下:yum install-y xen kernel-xen xen-libs python-virtinst bridge-utilsreboot3.重新编译libvirtrpm包,因为CentOS 6 中的libvirt去掉了对xen支持复制代码代码如下:mkdir-p /root/src/cd/root/srcwget -i libvirt-0.8.1-.el6.src.rpmwget libvirt.spec libvirt.spec.origpatch -p0 < ~/src/libvirt-spec-rhel6-enable-xen.patchyum 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-develrpmbuild -bb libvirt.spec/root/rpmbuild/RPMS/x_rpm -Uvh --force libvirt-0.8.1-.el6.x_.rpm libvirt-client-0.8.1-.el6.x_.rpm libvirt-python-0.8.1-.el6.x_.rpm
4. 配置网卡为桥接模式
例如:复制代码代码如下:cd/etc/sysconfig/network-scripts/cp-a ifcfg-eth0 ifcfg-br0ifcfg-br0 内容为DEVICE="br0"BOOTPROTO="none"HWADDR="6C::BF:::CA"NM_CONTROLLED="yes"IPADDR=...ONBOOT="yes"type="Bridge"NETMASK="...0"#UUID="ad--d3-a-bd4c4dd7b"
ifcfg-eth0修改如下
修改完毕重启网卡复制代码代码如下:service network restart5.最后修改/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/sdadefault=0timeout=5splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle CentOS (3.6.7-1.el6xen.x_)root (hd0,0)kernel /xen-4.2.gz dom0_mem=Mmodule /vmlinuz-3.6.7-1.el6xen.x_ ro root=UUID=1bdd8---b3b3-f8f1ed rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quietmodule /initramfs-3.6.7-1.el6xen.x_.imgtitle CentOS (2.6.-..1.el6.x_)root (hd0,0)kernel /vmlinuz-2.6.-..1.el6.x_ ro root=UUID=1bdd8---b3b3-f8f1ed rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quietinitrd /initramfs-2.6.-..1.el6.x_.imgtitle CentOS (2.6.-.el6.x_)root (hd0,0)kernel /vmlinuz-2.6.-.el6.x_ ro root=UUID=1bdd8---b3b3-f8f1ed rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quietinitrd /initramfs-2.6.-.el6.x_.img6.重启linux
Centos下安装免安装版JDK和配置方法 首先从官网下载免安装的.tar.gz版本的jdk我下载的是jdk-7u-linux-x.tar.gz并且解压到/usr/java/目录下,这个java目录本来是没有的自己随便创建设置环境变量v
Centos 6.4 位版命令行下设置无线网卡教程 最近用台式机搞了个服务器,安装了最新的Centos6.4最新的位版本。因为不想使用网线,因此买了一个PCI-E的无线网卡,使用无线连接。无线网卡型号为
CentOS安装jdk 1.6教程 在linux上很多程序都需要jdk的支持,但jdk1.7对这些程序来说的确太新了,今天就把jdk1.6安装上去.系统:centos5.5(位)需要的软件包:jdk-6u-linux-i-rpm.bin1.下载j
标签: centos怎么安装yum源
本文链接地址:https://www.jiuchutong.com/biancheng/362263.html 转载请保留说明!上一篇:CentOS中使用Yum把MySQL平滑迁移到MariaDB(centos yum 命令)
下一篇:Centos下安装免安装版JDK和配置方法(centos简易安装)
友情链接: 武汉网站建设