Since there is not really a reason why hibernated VMs shouldn't be able to be removed, we can safely ignore the 'suspended' lock in destroy_vm.
Signed-off-by: Stefan Hanreich <s.hanre...@proxmox.com> --- PVE/QemuServer.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 39fc6b0..5dae168 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2341,7 +2341,9 @@ sub destroy_vm { my $conf = PVE::QemuConfig->load_config($vmid); - PVE::QemuConfig->check_lock($conf) if !$skiplock; + if (!$skiplock && !PVE::QemuConfig->has_lock($conf, 'suspended')) { + PVE::QemuConfig->check_lock($conf); + } if ($conf->{template}) { # check if any base image is still used by a linked clone -- 2.30.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel