openstack创建云主机日志报错qemu-kvm: CPU feature spec-ctrl not found

创建云主机失败

查看nova-compute日志

ERROR nova.compute.manager [instance:
7eeaa03e-ecc8-4938-b0d3-90314139a118] libvirtError: internal error:
process exited while connecting to monitor:
2020-10-06T11:47:57.831856Z qemu-kvm: CPU feature spec-ctrl not
found

该日志传达了几点信息:

  1. Libvirt的获取宿主机的CPU指令集列表中包含该特性
  2. qemu-kvm不支持CPU特性spec-ctrl

解决方法:

修改usr/share/libvirt/cpu_map.xml文件(先备份
将下面spec-ctrl的特性删除

edx=‘0x04000000’/ >

重启libvirtd
systemctl restart libvirtd
重启openstack
systemctl restart openstack-nova-compute

重新创建主机,出现报错

ERROR nova.compute.manager [instance:
7eeaa03e-ecc8-4938-b0d3-90314139a118] libvirtError: internal error:
process exited while connecting to monitor:
2020-10-06T11:47:57.831856Z qemu-kvm: CPU feature stibp not
found

现在是stibp没有找到了,照样进入usr/share/libvirt/cpu_map.xml文件删除关于stibp的配置

重启创建虚拟机后又提示

ERROR nova.compute.manager [instance:
7eeaa03e-ecc8-4938-b0d3-90314139a118] libvirtError: internal error:
process exited while connecting to monitor:
2020-10-06T11:47:57.831856Z qemu-kvm: CPU feature ssbd not
found

继续进入usr/share/libvirt/cpu_map.xml文件删除关于ssbd的配置
重启
这次创建云主机,成功!

你可能感兴趣的:(openstack,openstack)