
"Unable to access file since it is locked" Shutdown guest OS and power off VM (it's not always possible to do this but I could here)īut this did not clear the locked file error as shown below:.Initially I tried the following which can sometimes clear this: VM -> Snapshot -> Consolidate fails with locked file error.The disk consolidation needed warning was shown afterwards.

A single snapshot had been deleted on a VM.It has been a good 6 months or more since I've last seen this issue, but today I found a VM with this issue in another customers environment. However the consolidate operation may fail again, if the issue which caused the snapshot deletion operation to fail disk consolidation previously has not been cleared.

You can initiate a consolidation of the VMDKs manually by right clicking on the VM and selecting Snapshot -> Consolidate. This can occur when a snapshot has been deleted and removed from snapshot manager, but the consolidation of the VMDKs on disk have failed.

"Virtual machine disks consolidation is needed" Disk Consolidation Needed - Unable to access file since it is lockedĪfter deleting snapshots on a VM either by deleting an individual snapshot or selecting "Delete All" snapshots, you may see the following warning for the VM, stating that disk consolidation is needed.
