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