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