[PATCH qemu-server 2/3] qm: unlock: log that operation happened to syslog

Fiona Ebner
2026-04-27T11:23:40Z

It can be helpful to see when a VM was manually unlocked to analyze
certain issues when looking at the syslog.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
src/PVE/CLI/qm.pm | 2 ++
1 file changed, 2 insertions(+)

diff --git a/src/PVE/CLI/qm.pm b/src/PVE/CLI/qm.pm
index bfa0d1d5..e64449d7 100755
--- a/src/PVE/CLI/qm.pm
+++ b/src/PVE/CLI/qm.pm
@@ -401,6 +401,8 @@ __PACKAGE__->register_method({
},
);

+ syslog('info', "executed 'qm unlock $vmid'");
+
return;
},
});
--
2.47.3