Close

CentOS6.5安装KVM

yum install -y qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-utils python-virtinst
chkconfig libvirtd on
机器名加入到本地hosts
service libvirtd start
配置虚拟网卡,配置了双网卡绑定的,以下忽略
cp ifcfg-em1 ifcfg-br0
vim cfg-em1
DEVICE=em1
TYPE=Ethernet
#UUID=e5d0c48c-da1a-49c1-a617-500b2c673f95
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
HWADDR=44:a8:42:0c:71:42
#IPADDR=172.16.0.10
#PREFIX=24
#GATEWAY=172.16.0.1
#DEFROUTE=yes
#IPV4_FAILURE_FATAL=yes
#IPV6INIT=no
#NAME=”System em1″
#NETMASK=255.255.255.0
#USERCTL=no
BRIDGE=br0
vim ifcfg-br0
DEVICE=br0
TYPE=Bridge
#UUID=e5d0c48c-da1a-49c1-a617-500b2c673f95
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
#HWADDR=44:a8:42:0c:71:42
IPADDR=172.16.0.10
PREFIX=24
GATEWAY=172.16.0.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
#NAME=”System em1″
NETMASK=255.255.255.0
USERCTL=no

 

 

 

 

打赏

About 老周

留言

Your email address will not be published. Required fields are marked *

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据