admin 发表于 2021-11-1 11:33:09

error: the CPU is incompatible with host CPU: Host CPU does not provide required

error: Failed to start domain centos7.9
error: the CPU is incompatible with host CPU: Host CPU does not provide required features: fma, movbe, bmi1, avx2, bmi2, invpcid

处理过程:
(nova-libvirt)# virsh edit centos7.9
Domain centos7.9 XML configuration not changed.
(nova-libvirt)# virsh undefine centos7.9
Domain centos7.9 has been undefined
(nova-libvirt)# virsh list --all
Id    Name                           State
----------------------------------------------------
3   instance-00000059            running
(nova-libvirt)# ls
CentOS-7.9_x86_64.rawcentos7.9.xml

(nova-libvirt)# vi centos7.9.xml
删除cpu的地方
<cpu mode='custom' match='exact'>

<model fallback='allow'>Haswell-noTSX</model>


修改为如下配置:
    <cpu mode='host-model'>
    <model fallback='allow'/>

重新执行define命令:

admin 发表于 2021-11-1 11:39:12

(nova-libvirt)# virshlist --all
Id    Name                           State
----------------------------------------------------
3   instance-00000059            running
-   centos7.9                      shut off

(nova-libvirt)# virshstart centos7.9
Domain centos7.9 started


启动成功。
页: [1]
查看完整版本: error: the CPU is incompatible with host CPU: Host CPU does not provide required