- 关闭SELinux
vi /etc/sysconfig/selinux
SELINUX=disabled
SELINUXTYPE=targeted
reboot
2. 搭建网桥
yum install bridge-utils
vi /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE="br0"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Bridge
#bootproto=dhcp
BOOTPROTO=none
IPADDR=192.168.0.100
PREFIX=24
GATEWAY=192.168.0.1
DNS1=8.8.8.8
DNS2=8.8.4.4
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System br0"vi /etc/sysconfig/network-scripts/ifcfg-eth0
#Add
BRIDGE=br0/etc/init.d/network restart
3. 安装Xen
egrep '(vmx|svm)' --color=always /proc/cpuinfo
如果没有东西出来, 那么就只能半虚拟化.
yum install http://au1.mirror.crc.id.au/repo/kernel-xen-release-latest.noarch.rpm
yum install kernel-xen xen
有用指令
xm info
英文来源
http://xen.crc.id.au/support/guides/
文章评论