[SOLVED] PVE 7. unclocking VM's still tricky

diversity

Active Member
Feb 19, 2020
245
15
38
54
Code:
root@pverdrmain:/etc/pve# qm unlock 105
trying to acquire lock...
can't lock file '/var/lock/qemu-server/lock-105.conf' - got timeout
root@pverdrmain:/etc/pve#

tried to shut down a VM but it got stuck. So I wanted to 'stop' it but it got a can't get lock error.

I tried searching and found the above command. Did not seem to help.

Any chance that the proxmox code will get more power over locked VM's?
 
A VM stuck in a "locked" mode means something is fundamentally gone wrong. No, this will always stay as an advanced "yes I know what I'm doing" feature.

In your case, the unlock command saw that some other task was still accessing the config file. Stop any other tasks on this VMID (like, a restore or the "stop" task) by double-clicking them in the task list at the bottom of the GUI and clicking "Stop". Then the command you posted should work in removing the lock.

Keep in mind that your VM is now in an undefined state, with no guarantees - it's up to you to ensure it is actually safe to 'unlock' that VM.
 
  • Like
Reactions: diversity

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!