CentOS7安装KMV

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

  CentOS7安装KMV

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

 

上一篇:libvirt报错总结


下一篇:pgrep,pidof工具的使用