找回密码
 注册
查看: 1533|回复: 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.9
) F' P# ?+ O" X/ \error: the CPU is incompatible with host CPU: Host CPU does not provide required features: fma, movbe, bmi1, avx2, bmi2, invpcid/ `+ d1 U( W. ^/ d0 z  h

4 O$ j/ c# F, _6 P+ w4 D1 B6 U, A处理过程:( w& `% \0 r: K0 [8 E8 }
(nova-libvirt)[root@compute01 images]# virsh edit centos7.9
" |6 r4 a6 i1 h. I" LDomain centos7.9 XML configuration not changed.
3 T. E* c0 _7 o  \# F(nova-libvirt)[root@compute01 images]# virsh undefine centos7.9
! d/ I' c2 Q5 k+ K8 ~6 p5 m; HDomain centos7.9 has been undefined
' O# @' N0 r. E8 i9 D. M(nova-libvirt)[root@compute01 images]# virsh list --all3 w5 v/ B% p2 p  O1 E+ a  z
Id    Name                           State: \! Y1 t' K7 b6 V8 w
----------------------------------------------------
4 g; j  K& E6 K5 a( \ 3     instance-00000059              running+ D# ?$ {2 k2 c
(nova-libvirt)[root@compute01 images]# ls% Z9 x8 p6 a0 Q
CentOS-7.9_x86_64.raw  centos7.9.xml9 A  t/ l" _9 W5 D9 i
+ }" w- R* @$ ]% J* X2 c
(nova-libvirt)[root@compute01 images]# vi centos7.9.xml
4 W8 l- N; |0 V; ~9 e删除cpu的地方
/ i$ Q, w, b1 Q, c- R" V; O<cpu mode='custom' match='exact'>9 V8 f/ A' i3 G+ q) O& R" ?
4 r/ ~* h5 T1 ?: y
<model fallback='allow'>Haswell-noTSX</model>$ s+ i" x" L! U3 w4 c
: b1 P$ b0 E; l& M8 X. H3 B
9 m2 S  i+ K. K" t
修改为如下配置:
/ h- v# M" ?& D% L- z! X6 z    <cpu mode='host-model'>6 I0 m) ^: q- F) u7 j
    <model fallback='allow'/>& b4 X' O- |0 d0 \3 b
8 `0 n& N. T8 }6 p6 Q3 \' ^
重新执行define命令:: P2 m& ]9 p5 U: c& Q

% R  Q+ N' F# X7 @5 `. T% `

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-11-1 11:39:12 | 显示全部楼层
(nova-libvirt)[root@compute01 images]# virsh  list --all
! m; R& c- C: K# r% H Id    Name                           State
) k6 w6 v* d( s5 b) |----------------------------------------------------
7 E$ K* H9 _+ ]% o. D 3     instance-00000059              running. L8 K/ Z" r7 }& M
-     centos7.9                      shut off/ m' W  W$ [+ V( L  K. v4 I
- Y* G' P- v2 d! `0 i, g* v* j
(nova-libvirt)[root@compute01 images]# virsh  start centos7.96 a5 t& ^9 R$ G4 E3 B! h
Domain centos7.9 started7 k5 K& E: E  i+ s* G

0 o1 |7 w- M5 O- p4 t  p! d, ]1 h$ @  P
5 S  z" P9 Q8 K) r8 [2 h( |. e启动成功。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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