1、请选择系统centos7.
2、安装KVM,
yum -y install qemu-kvm libvirt virt-install bridge-utils bind-utils virt-manager wget net-tools virt-viewer genisoimage epel-release
开机启动libvirtd
systemctl start libvirtd
systemctl enable libvirtd
3、组网禁防火墙:
# 网卡配置,新建ifcfg-bro,然后修改相关配置如下:
[root@kvm-centos7 ~]# cd /etc/sysconfig/network-scripts/
[root@kvm-centos7 network-scripts]# cat ifcfg-br0
DEVICE=”br0″
ONBOOT=”yes”
TYPE=”Bridge”
BOOTPROTO=static
IPADDR=192.168.1.110 # 自定义
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DEFROUTE=yes
# ifcfg-bond0配置文件修改
[root@kvm-centos7 network-scripts]# cat ifcfg-bond0
DEVICE=bond0
TYPE=Ethernet
NAME=bond0
BONDING_MASTER=yes
BOOTPROTO=none
BRIDGE=br0
ONBOOT=yes
BONDING_OPTS=”mode=5 miimon=100″
重启网络:
systemctl restart network
4、重点来了,安装kimchi。
项目地址:https://github.com/kimchi-project/kimchi
cd /tmp
wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/kimchi-2.5.0-0.el7.centos.noarch.rpm
wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/wok-2.5.0-0.el7.centos.noarch.rpm
yum -y install kimchi-2.5.0-0.el7.centos.noarch.rpm wok-2.5.0-0.el7.centos.noarch.rpm
然后重启reboot
打开ip:8001
先创建模板,再创建虚拟机。VNC安装。
最后上图:
來源:cnly1987