本文共 966 字,大约阅读时间需要 3 分钟。
修改内核模式为内核启动:
vi /boot/grub2/grub.cfg defaults=1关闭selinux
关闭防火墙
--bios开启虚拟化
安装
yum -y install kvm python-virtinst libvirt tunctl bridge-utils virt-manager qemu-kvm-tools virt-viewer virt-v2v yum -y install libguestfs-tools启动
service libvirtd start 查看kvm模块 lsmod|grep kvm 查看虚机工具版本 virsh --version virt-install --version qemu-kvm -version手动配置网桥工具
chkconfig NetworkManager off service NetworkManager stop cd /etc/sysconfig/network-scripts/ cp ifcfg-eth0 ifcfg-br0vi ifcfg-eth0
DEVICE="eth0" BOOTPROTO=static NM_CONTROLLED="no" ONBOOT=yes TYPE="Ethernet" BRIDGE="br0" UUID="99dde4d3-94f1-4293-b8a8-b10255d5b8be" HWADDR=00:0C:29:47:41:8C IPADDR=192.168.233.130 PREFIX=24 GATEWAY=192.168.233.2 DNS1=192.168.233.2 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="Systemeth0"vi ifcfg-br0
DEVICE="br0" BOOTPROTO=static ONBOOT=yes TYPE="Bridge" HWADDR=00:0C:29:47:41:8C IPADDR=192.168.233.130 PREFIX=24 GATEWAY=192.168.233.2 DNS1=192.168.233.2service network restart
转载地址:http://hmdmx.baihongyu.com/