- 首先要配置好yum源,检查当前CPU是否支持KVM虚拟化。
Red Hat或者CentOS[root@localhost Desktop]# cat /proc/cpuinfo | egrep ‘(vmx|svm)’
#如果输出结果中包含vmx,则表示采用Intel虚拟化技术;如果包含svm,则表示采用AMD虚拟化技术;如果没有任何输出,表示当前的CPU不支持KVM虚拟化技术。还可以用grep -E ‘svm|vmx’ /proc/cpuinfo和egrep --color -i “svm|vmx” /proc/cpuinfo来检查。
Ubuntu系统中查看
apt-get install cpu-checker
kvm-ok
以下结果说明支持VT
INFO: /dev/kvm exists
KVM acceleration can be used
以下结果说明不支持VT
INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used
2. 安装虚拟化软件包
[root@localhost Desktop]# yum install -y qemu-kvm qemu-img
#Ubuntu用apt-get install -y virt-manager来安装