参考
1.查看cpu是否支持虚拟化技术
2.内核rhel6以上
3.清理之前安装的虚拟化环境
yum remove `rpm -qa |egrep 'qemu|kvm|virt'`
rm -rf /var/lib/libvirt /etc/libvirt/
4.安装
centos6 :
yum groupinstall "Virtualization" "Virtualization Client" "Virtualization Platform" "Virtualization Tools" -y
centos7 :
yum -y install qemu-kvm qemu-kvm-tools qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-utils libguestfs-tools
#yum install *qemu* *virt* *kvm* -y
5、启动服务
centos6:
# /etc/init.d/libvirtd start
centos7:
# systemctl start libvirtd
通过cockpit安装也可以安装虚拟机
yum install cockpitsy
stemctl start cockpit