thuang2
Contributor
Contributor

Unable to access file [datastore name]<vm name>/<vm name>.vmdk since it is locked

When trying to power on a VM, got an error dialog box:

Unable to access file [datastore name]<vm name>/<vm name>.vmdk since it is locked

...

Reason: Failed to lock the file.
Cannot open the disk '/vmfs/volumes/dbd34a1d-25d4afff/sles11-64/sles11-64.vmdk' or one of the snapshot disks it depends on.

0 Kudos
3 Replies
thuang2
Contributor
Contributor

Anyone has any idea what causes the issue? Thanks.

0 Kudos
opbz
Hot Shot
Hot Shot

hi... vm or its disks are still on somewhat open state (ie potentially hung)

try the following.

from service console or management console

vm-support -x (should give you a list of running VMs.. see if you find the one you want to power on and take note of its id number

vm-support -X id

this will promtp you for basic stuff one thing it mentions though is do you want to send a kill signal to the vm... ensure you select yes.

procedure takes about 10 or so minutes and then when finished you should be able to power on vm.

0 Kudos
MauroBonder
Leadership
Leadership

this will help http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=10051

*Please, don't forget the awarding points for "helpful" and/or "correct" answers. *Por favor, não esqueça de atribuir os pontos se a resposta foi útil ou resolveu o problema.* Thank you/Obrigado
0 Kudos