1.关闭防火墙、SELinux
[root@kvm-host ~]# systemctl stop firewalld [root@kvm-host ~]# systemctl disable firewalld [root@kvm-host ~]# sed -i s#SELINUX=enforcing#SELINUX=disabled#g /etc/selinux/config
2.查看主机是否支持虚拟化
[root@kvm-host ~]# grep -E "svm | vmx" /proc/cpuinfo
3.安装KVM管理工具、并设置开机启动
[root@kvm-host ~]# yum install qemu-kvm libvirt virt-install -y
[root@kvm-host ~]# systemctl enable libvirtd
[root@kvm-host ~]# systemctl start libvirtd