Investigating a locked VM using ESXI Shell.

When you try to power on a machine you will receive a message “Unable to access a file since it is locked” 

I found the best way to fix this is to migrate the VM to another host.

To investigate whether the VM  is locked you would need to open a shell session to the host that the VM is located on.

the following command shows the full directory path:

ls /vmfs/volumes/UUID/VMDIR/VMNAME.vmx

once you have the correct path use the following:

vmkfstools -D /vmfs/volumes/UUID/VMDIR/

Please see the following link for more details.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create a website or blog at

Up ↑

%d bloggers like this: