How to Unlock a Virtual Machine in Proxmox
Method 1: Using qm command
-
Log in to Proxmox host using SSH.
-
Identify the VM ID of the VM that needs to be unlocked. You can list all VMs by running
qm list. -
Unlock the VM by executing the following command:
qm unlock {VM-ID} -
Verify that the VM is unlocked by running the command
qm list.
Method 2: Using Web Interface
-
Log in to the Proxmox web interface.
-
Navigate to the page for the VM that needs to be unlocked.
-
Click on the "Unlock" button.
-
Verify that the VM is unlocked by navigating to the same page. The "Unlock" button should be replaced by "Lock" button.
Method 3: Manually deleting the lock
-
Log in to Proxmox host using SSH.
-
Identify the VM ID of the VM that needs to be unlocked.
-
Navigate to the directory
/var/lock/qemu-server/. -
Delete the lock file corresponding to the VM ID. The file will have the same name as the VM ID.
-
Verify that the VM is unlocked by running the command
qm list.