找回密码
 注册
查看: 1531|回复: 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$ H8 K, k/ f) g: Y$ q! v
error: the CPU is incompatible with host CPU: Host CPU does not provide required features: fma, movbe, bmi1, avx2, bmi2, invpcid5 V, r- z9 d; \1 y& j5 ?8 q/ k

3 @" z# p- s7 L4 Y9 w处理过程:$ o7 ]- g& |2 R% q) ]/ B( l
(nova-libvirt)[root@compute01 images]# virsh edit centos7.9- k7 a# n' b0 H* E' V' u- T3 s  x
Domain centos7.9 XML configuration not changed.
& j% ]+ T# B& Z(nova-libvirt)[root@compute01 images]# virsh undefine centos7.9) \  x7 k6 \( M8 E" x; x, s
Domain centos7.9 has been undefined, k3 R+ I5 A# ~# ~, a. r) C# W
(nova-libvirt)[root@compute01 images]# virsh list --all2 B. h: H/ X5 Q1 s
Id    Name                           State( [5 N! m& P  w8 i. u6 \# F
----------------------------------------------------) `9 c* x% N. z$ i% u- y
3     instance-00000059              running
; F1 E( w% u0 q/ i5 e8 O8 k(nova-libvirt)[root@compute01 images]# ls% D% L, q4 f" \- m' i; d
CentOS-7.9_x86_64.raw  centos7.9.xml
; v3 ^! `8 e+ H8 H6 G' B. a! D  Z( U/ M
(nova-libvirt)[root@compute01 images]# vi centos7.9.xml 1 n" }) t  p% L& r- {, D' V) }
删除cpu的地方3 T; Z$ l% F$ j! u# W
<cpu mode='custom' match='exact'>
- G; x; N. j; M! G  A  q
' w3 ~: G" ~7 Z <model fallback='allow'>Haswell-noTSX</model>
2 o& ?4 G' s/ x! R, M
# n# W0 l" |- V+ `
% s. D1 l8 h: t+ g/ U# ]5 w6 _修改为如下配置:
( J5 X- w' W+ i: B# `" t    <cpu mode='host-model'>* b; U& s7 s* Z  l
    <model fallback='allow'/>
6 z$ O) P6 x2 }; m. H/ K! {1 f) M  L$ {9 s: ~
重新执行define命令:: O/ C8 w' z# i, F

3 b: w% R, t9 E, H( K* Q; P

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-11-1 11:39:12 | 显示全部楼层
(nova-libvirt)[root@compute01 images]# virsh  list --all! _/ |7 s1 w6 Q8 V
Id    Name                           State
; ?( U& T$ l. J6 s) V7 ?6 r----------------------------------------------------& P, o7 |* s' s$ W  V1 f% l
3     instance-00000059              running6 q5 W9 D6 `3 p+ ?
-     centos7.9                      shut off
7 W! N$ `0 w; `2 W+ ~9 {+ S8 r: @) o$ w9 `
(nova-libvirt)[root@compute01 images]# virsh  start centos7.9
8 f/ @/ j) w6 x& Q8 i$ IDomain centos7.9 started% |4 k+ s5 n- a) E  P5 g7 f. n
: {; u7 g! i$ y( H4 u/ U
  v! t* e. P0 B, m# R9 T0 V
启动成功。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:39 , Processed in 0.017193 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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