A quick one this: After recovering from a hung VMware Workstation host, I was booting up the virtual machines and on one of them, I saw the following error:
Failed to lock the file.
Cannot open the disk <disk name> or one of the snapshot disks it depends on.
Module DiskEarly power on failed.
Failed to start the virtual machine.
This was unusual as I knew the disk was indeed there and there weren’t any snapshots of the machine in question. So, I went to the folder for that virtual machine and saw these extra files that I wasn’t expecting:
These “lck” folders are created when locks are placed on vmdk and vmem files when the machine is in the running state. As the machine wasn’t running, these folders shouldn’t have been there. Also, the vmem file shouldn’t be there if the machine is off.
Resolution was simple: Just delete these file and folders. Once done, the machine powered on just fine.
Hope this helps!