VmWare Failed to lock the file

I am using OpenNebula 5.2
I have attach one xx GB disk image to one vCenter VM its attach as secondary VMDK disk as expected, but when i power OFF the vm and Power it ON vm is not power it ON back, in backed vCenter console again try to attach same disk and failed to Power ON .

I have no snapshot for VM.

vCenter Error :- An error was received from the ESX host while powering on VM xxx.
Failed to start the virtual machine.
Module DiskEarly power on failed.
Cannot open the disk ‘/vmfs/volumes/58c/xxx.vmdk’ or one of the snapshot disks it depends on.
Failed to lock the file

Please look attach screenshot .

Hi Ranveer,
could you paste the output of the following commands?:

  • oneimage show IMAGE_ID -x, where IMAGE_ID is the identifier of the persistent image that you’re having problems with.
  • onedatastore show DATASTORE_ID -x, where DATASTORE_ID is the identifier of the datastore where the previous image is stored.
  • onevm show VMID -x, where VMID is the id of the VM that you’re managing with OpenNebula.

Also are you’re running 5.2.0 or 5.2.1 version?

Cheers!

Sanal, has confirmed me that this a duplicate of this post so visit that post for more information.

Thank you Very Much for your support,.

Thank you for your feedback!

For those who are getting VMWare lock file issues on Windows platform, I have managed to solve the issue with this VMWare lock file Windows post