找回密码
 注册
查看: 1534|回复: 1

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-11-1 11:33:09 | 显示全部楼层 |阅读模式
error: Failed to start domain centos7.90 ]6 u# C, `. |$ Q5 Q0 N( a
error: the CPU is incompatible with host CPU: Host CPU does not provide required features: fma, movbe, bmi1, avx2, bmi2, invpcid# C9 q; J; n4 N$ g, p9 A. Y( E8 |% y6 H

/ `+ I' W$ M/ y  ]8 H& I处理过程:7 _! E0 `* F6 o* }
(nova-libvirt)[root@compute01 images]# virsh edit centos7.9
. e* S" ?3 A6 S8 a2 S5 T) qDomain centos7.9 XML configuration not changed.
6 u3 S# J3 A6 |" B, n; Y( [: {(nova-libvirt)[root@compute01 images]# virsh undefine centos7.9( P: A6 x( D& c6 ]8 u
Domain centos7.9 has been undefined
' U3 N5 K1 C8 ?0 [1 Y+ U" s(nova-libvirt)[root@compute01 images]# virsh list --all
( X, }/ m* d( t# h: y7 K Id    Name                           State
# r* ]1 Q4 U$ M$ ^! |# N/ ]1 k" k----------------------------------------------------0 Q( D9 z6 p( |7 o8 L/ }5 s/ Y
3     instance-00000059              running% v7 J, }; u( k$ ]' \* H
(nova-libvirt)[root@compute01 images]# ls
; H; S* V2 l* E7 \( d! ~CentOS-7.9_x86_64.raw  centos7.9.xml7 m" ?- a6 ^, E, o7 X  \  P1 {
7 K0 e6 v0 q- a
(nova-libvirt)[root@compute01 images]# vi centos7.9.xml ) r, ^$ W2 w6 ~8 O
删除cpu的地方9 i  c! M4 @$ \2 c) a1 ~3 n& O
<cpu mode='custom' match='exact'>" ?  L8 o% O" [' `

# T2 s) f1 c3 W4 F, ? <model fallback='allow'>Haswell-noTSX</model>
3 i9 i2 X- n9 A, k
1 Y- N6 f) l3 K( W' B3 X
3 X  c: l3 `2 }. P8 `修改为如下配置:3 K' R1 S1 b5 j* L; R# r0 X( c
    <cpu mode='host-model'>' S$ |0 k* |2 G% k9 f! ^- A
    <model fallback='allow'/>
6 p6 u' S" n- V, p- c9 y6 z+ @& _5 ]3 Q: l6 Y# ^' u: p$ C1 n
重新执行define命令:7 u0 E% z) _( E0 E8 P

8 |. e$ z4 U7 b

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-11-1 11:39:12 | 显示全部楼层
(nova-libvirt)[root@compute01 images]# virsh  list --all1 h( T4 [2 z' @- X7 E
Id    Name                           State
' I+ R$ l7 C) r7 n8 x----------------------------------------------------
7 V2 r8 ?* l9 _( v% h- A1 x( N 3     instance-00000059              running5 L8 C' o0 i: O8 F4 R. A; m
-     centos7.9                      shut off6 a9 U8 i. D! ]9 Z. p, R# ]

8 _4 y6 n" Y& q) d# @1 O  y3 G(nova-libvirt)[root@compute01 images]# virsh  start centos7.9
2 G& X  f$ B4 [% p3 u. u$ I/ S' jDomain centos7.9 started
5 X. K# E( U6 l, t4 S' {6 K
8 I  ?# O( N5 ]4 g" j  q  i1 k: @) l; y8 j( o) ]6 j. ?8 M$ \
启动成功。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 02:47 , Processed in 0.019948 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表