"Failed to lock the file: Cannot open the disk '/vmfs/volumes/<vm file path>.vmdk' or one of the snapshot disks it depends on".VMware vSphere 7.x
VMware vSphere 8.x
Since the disks used with the VMs are shared disks, the sharing and disk mode configuration has to be set to 'Multi-Writer' and 'Independent-Persistent'.
If the configuration has been set to 'unspecified' or 'no sharing' the VM will not be able to lock the vmdk and hence unable to power on.
Correct the VM configuration for the hard disk by changing the sharing to 'multi-writer' and the disk mode to 'Independent-Persistent'.
Post update, the VM will power on normally.