Error 1: Failed to lock the file
This issue occurs if another process/host has already opened the virtual machine's NVRAM file that your process/host
is attempting to open.
To resolve this issue, ensure that the file is available for use by the host/process. For more information, see
Investigating virtual machine file locks in ESX/ESXi (10051).
Error 2: Could not find the file
This issue occurs if the NVRAM file mentioned in the virtual machines configuration file(*.vmx) is not available anymore.
To work around this issue:
- Edit the virtual machine's configuration file. For more information see, Tips for editing a .vmx file (1714).
- Remove this line referring to NVRAM file:
nvram = "file_name"
sample line from vmx. : nvram = "vm.nvram" - Power on the virtual machine.
Note: This article is updated regularly with other reasons that may cause this issue. Check this article for updates. If you see a different reason for the failure, open a support request with VMware Support. For more information, see Filing a Support Request in Customer Connect (2006985).
Workaround:
Rather then rebooting the Source Host; we can edit the vmx file of the locked VM & remove the entry: nvram = "file_name"