找回密码
 注册
查看: 2600|回复: 0

error: Failed to resume domain instance-00000222

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-5-29 18:26:39 | 显示全部楼层 |阅读模式
error: Failed to resume domain instance-00000222- Z! d* e$ X, n; X- D
error: internal error: unable to execute QEMU command 'cont': Resetting the Virtual Machine is required
+ y3 ]$ g/ i! W' _
: U9 O. J$ T% W检查实例类型是否正常:+ O) U- i! Y+ G5 j  }. l

* i. ]# M- ]2 A' d$ d6 Y$ M4 e
: L& _, O" u8 l4 `, g# O% l- z检查是否开启vt技术:
& p5 G9 B7 y% S, _5 K2 h2 c[root@localhost ~]# grep -E '(svm|vmx)' /proc/cpuinfo或者:[root@localhost ~]# cat /proc/cpuinfo找到flags部分,如果其中输出有SVM或VMX,表明CPU支持虚拟化技术:
+ w+ L2 @" y, `  D6 u4 t5 y$ V9 Y# K, _. L6 s; j' ?
==》 svm - Secure virtual machine, AMD的虚拟化技术AMD-V==》 4 [0 i. p; d6 X- g8 R+ J  {. t
- s" w- w; G- W2 [9 L
vmx - Intel的虚拟化技术Intel-VTkvm虚拟化的嵌套:
8 k) F1 f8 J; j0 k9 S  \/ l! T7 _4 v' H( O% z$ F
root@localhost:~# modinfo kvm_intel | grep nested( m0 U1 i' ~. {# @( p
; i) P+ H' `. P% _; t
parm: nested:bool
/ X* Q5 j7 N4 l& J0 u: R$ ?6 ]* f/ v. o$ K
root@localhost:~# cat /sys/module/kvm_intel/parameters/nested
% g+ Z- h+ s, [' l( S, Y6 O0 ?4 O$ q5 M' K8 V- v
Y. J8 U& f' |2 q) Z3 x9 ]
/ t- _7 Z: W; d0 n( a8 e
如果上面的显示结果不是 Y 的话需要开启 nested:$ r; M. `4 ^# @; H+ P) @
' _+ H$ b3 G! J6 M
root@localhost:~# modprobe -r kvm-intel8 a# z- q' w5 X6 A2 u! W
9 d# P  l: f, k% a7 W
root@localhost:~# modprobe kvm-intel nested=1
& |' R, s* Y1 |$ n; t
* k; m4 g7 t3 R0 B. broot@localhost:~# cat /sys/module/kvm_intel/parameters/nested7 h( ]: D: r# U/ w* J1 s
9 J) `; h" K9 f6 |0 j  \. N
Y
: ^2 Z/ M5 O2 y: x  V+ V/ U+ S8 r" ?% X( z

* x$ b( D3 M3 U
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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