找回密码
 注册
查看: 1532|回复: 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% D- l2 ^! c/ G3 Y; a) G5 I
error: the CPU is incompatible with host CPU: Host CPU does not provide required features: fma, movbe, bmi1, avx2, bmi2, invpcid
, @: c; l- {( }2 U  k5 f3 F# v6 \+ W- f8 G* g  _
处理过程:
* v( Q% Z, V8 b) n4 {(nova-libvirt)[root@compute01 images]# virsh edit centos7.95 _) l9 m7 j; h. i1 d2 V
Domain centos7.9 XML configuration not changed.* _( e9 Q# j" G. e" s, X& x# m
(nova-libvirt)[root@compute01 images]# virsh undefine centos7.9
0 J9 |- e$ Q( t% z$ t- b9 v6 oDomain centos7.9 has been undefined
) B7 @, d" k* y( E3 B! G9 B(nova-libvirt)[root@compute01 images]# virsh list --all
: z$ Z" O$ r* z, r& N5 S3 ^* ^& u Id    Name                           State0 R6 `* }& U' C- l6 E+ _0 {
----------------------------------------------------- G& F( s" Z) U+ w, s; {: s
3     instance-00000059              running8 ]  W7 _, E( y. k( e- R
(nova-libvirt)[root@compute01 images]# ls
5 R* ]2 Y% _3 |/ c$ G. KCentOS-7.9_x86_64.raw  centos7.9.xml
! p; c( ~/ Q' ]9 }/ @8 G* H7 c2 G# {' _( L. t6 J3 g" M
(nova-libvirt)[root@compute01 images]# vi centos7.9.xml 4 D8 P; s5 ^% ^* K) `: l
删除cpu的地方
0 |8 P0 J3 S6 ^- n: }2 U. M<cpu mode='custom' match='exact'>0 j6 z7 _6 h7 Q$ C/ _* q

& w7 W$ \& K3 m. g& L <model fallback='allow'>Haswell-noTSX</model>  ]* d% j( C) |: ~: B* _9 T& s" t0 a

, G8 W# L' b6 l. B! F' R6 }3 K9 S+ _7 s/ f
修改为如下配置:+ e. U. f) K$ f6 |% R# t
    <cpu mode='host-model'>
# R9 q# P$ w6 }    <model fallback='allow'/>
/ a: v5 v$ t$ t
1 Y( l: q3 X1 |重新执行define命令:
/ Y0 x5 a4 ~+ n7 m! x. |" J  X# O$ U( V8 y' G, H0 f

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-11-1 11:39:12 | 显示全部楼层
(nova-libvirt)[root@compute01 images]# virsh  list --all! R' ~: c4 c: k* X5 j! q
Id    Name                           State6 n* C6 m: S( f3 r/ M: b0 J
----------------------------------------------------
8 T7 ]4 L( _+ W 3     instance-00000059              running
7 t: r* Q# m7 s4 c  Z -     centos7.9                      shut off/ F, E# E+ [; d0 S* ~8 B4 ~

$ W: o6 R, S& w3 n(nova-libvirt)[root@compute01 images]# virsh  start centos7.9% c9 B  u- n. ~* a6 y; g3 A% x: C
Domain centos7.9 started
2 m2 i; }2 {1 \' \. v& e
" ~; Q/ d& h5 U" d
& T5 X8 i, w7 l5 ?启动成功。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:42 , Processed in 0.016983 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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