When attempting to start up a virtual machine (VM), it fails to power on stating it is unable to access a file since it is locked. You will receive any of these errors:
Unable to access file /vmfs/volumes/########-########-####-#########/<file/disk name> since it is locked
Failed to power on VM.
Could not power on virtual machine: Lock was not free.
Failed to initialize swap file "/vmfs/volumes/########-########-####-#########/<file/disk name>".
File system specific implementation of OpenFile[file] failed
File system specific implementation of CreateFile[file] failed
VMware vSphere ESXi (All Versions)
Locked virtual disks can occur as a result of, but are not limited to, the following:
Consult KB article 316576 for troubleshooting locked virtual disks:
Consult KB article 314365 for troubleshooting VM file locks on ESXi hosts: