PVE 虚拟机无法关机 TASK ERROR: can’t lock file ‘xxx.conf’ – got timeout

PVE 虚拟机点击“关机”按钮,控制台依旧运行,无法关机。同时“任务”栏有错误提示:TASK ERROR: can’t lock file ‘xxx.conf’ – got timeout 错我如下图:

PVE 虚拟机无法关机 TASK ERROR: can't lock file 'xxx.conf' - got timeout

解决方法:

1、使用 shell 命令来解决,可以使用 PVE 自身的 shell 功能,或者使用工具远程 SSH 到 PVE 服务器。

cd /var/lock/qemu-server #进入到 PVE 虚拟机配置文件目录;
qm unlock 102 #执行解锁命令,解锁102虚拟机;

然后尝试在前端 PVE Web 界面关机。

2、简单粗暴的解决方式,

rm -f /var/lock/qemu-server/lock-102.conf #删除102虚拟机的配置文件;
qm stop 102 #停止102虚拟机;
PVE 虚拟机无法关机 TASK ERROR: can't lock file 'xxx.conf' - got timeout
PVE 虚拟机无法关机 TASK ERROR: can't lock file 'xxx.conf' - got timeout
(0)
上一篇 2025年6月2日 10:54
下一篇 2025年11月25日 16:06

相关推荐

扫码领红包