Question: how to unlock vmx.lck file?
Answer: Ensure the virtual machine is powered off. Connect to the ESXi/ESX host using Secure Shell (SSH). ...  Go to the virtual machine folder, run the command: ...  List all files including the hidden files, run the command: ...  Remove the lock file, run the command: ...  Power on the virtual machine.