KVM 虚拟化环境安装

修改内核模式为内核启动:
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-br0

vi 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.2

service network restart

上一篇:数据类型-数值和字符串 | 学习笔记


下一篇:windows下使用Hibernate连接Mycat例子