Bobcares

Unlock locked VM proxmox

by | Jun 18, 2023

Let us learn how to Unlock locked VM proxmox with the support of our Proxmox support services at Bobcares.

Error: VM is locked Unlock it

Unlock locked VM proxmox

The “VM is locked” issue is the most typical reason for wanting to kill a VM lock. This error has several versions, including:

  • Error: VM is locked (backup)
  • Error: VM is locked (snapshot)
  • Error: VM is locked (clone)

The above list shows the same errors. With a suffix indicating the job that causes the lock, whether a backup, snapshot, or clone.

This can help us decide whether or not to unlock the door.

For example, if the backup operation is still continuing, we should probably not clear the lock and just let the backup process finish.

can’t lock file ‘/var/lock/qemu-server/lock-VMID.conf’ – got timeout

Another typical problem that occurs when we attempt to shut down/stop a virtual machine or when qm unlock fails (see below).

Unlock locked VM proxmox

There are two methods for removing a lock from a Proxmox VM: 1) use the qm unlock command, or 2) manually delete the lock.

  1. qm unlock:

    When it comes to unlocking a Proxmox VM, qm unlock should be the first option.

    To begin, locate the VM ID (the number adjacent to the VM in the Proxmox GUI). If we are not using the WebGUI, we may get a list of the VM IDs by typing:

    cat /etc/pve/.vmlist

    Unlock the VM/remove the lock using:

    qm unlock

    This may not always be the case, and the command may fail with:

    trying to acquire lock...
    can't lock file '/var/lock/qemu-server/lock-.conf' - got timeout

    In this case we have to manaually delete the the lock.

  2. Manually Deleting the Lock:

    We may resolve the error message “can’t lock file ‘/var/lock/qemu-server/lock-VMID.conf’ – got timeout” by manually removing the lock at that place.

    To put it simply, we may execute the following command:

    rm /var/lock/qemu-server/lock-VMID.conf

This is the last resort to unlock the locked VM Proxmox.

[Need assistance with similar queries? We are here to help]

Conclusion

To sum up we have now seen how to Unlock locked VM proxmox with the support of our tech support team.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.