|
|
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
|
|