可能原因一
默认的开源QEMU配置中,kvm配置项为auto,使用默认参数创建虚拟机时,可能并未开启KVM硬件加速。可参考解决方案处理。
可能原因二
与CPU型号有关,当前环境CPU不支持KVM硬件加速功能。
执行virt-host-validate命令查询当前环境CPU是否支持KVM硬件加速功能,若显示如下,表示当前环境不支持KVM硬件加速功能。请咨询相关CPU处理器技术支持人员或更换为支持KVM硬件加速功能的环境解决。
[root@localhost ~]# virsh list --all Id Name State ---------------------------- 1 centos running
virsh shutdown <domain>
[root@localhost vm]# virsh shutdown centos Domain centos is being shutdown
<domain type='kvm'> <name>xxx</name> <uuid>xxxxxx</uuid> <memory unit='KiB'>xxxx</memory> <currentMemory unit='KiB'>xxxx</currentMemory> <vcpu placement='static' cpuset=xxxxx</vcpu> ...... <cpu mode='host-passthrough' check='none'> <topology sockets='1' cores='20' threads='1'/> </cpu> ... ...