diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 4292da74..d94fe5ab 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