Stay Connected
Failed to lock the file! VMWare virtual disk (vmdk)
I copied one of my Windows XP virtual machine running on a VMWare Server 1.02 host locally to my workstation. After the files were copied I opened the vmx file with VMWare Workstation 6 and received the error below after trying to start the virtual machine. I made one snapshot on the VMWare Server host.
Cannot open the disk ‘C:\VM-machines\Windows XP-001\Windows XP Professional-000001.vmdk’ or one of the snapshot disks it depends on. Reason: Failed to lock the file.

Locate the virtual machine in Windows Explorer and delete any .lck folders
Start the virtual machine. If this fails try to Map the virtual hard disk to Z:\

I than disconnect the virtual hard disk and retried. The virtual machine boot without any problem; my snapshot was valid.
| Print article | This entry was posted by Ivan Versluis on March 12, 2008 at 5:20 pm, and is filed under VMWare. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |


about 7 months ago
thanks….it worked
about 6 months ago
Thank u so much it worked !!!!
about 6 months ago
thanks
about 6 months ago
I am not a vmware techie and know enough to be dangerous…have the lock file situation and understand the fix but do no know how to get to the folders\files on the vm to delete them. Any help greatly appreciated.
about 5 months ago
Thanks, saved my bacon. Otherwise I would have to rebuild the vm’s.
about 5 months ago
Thanks…!! it works..but I could not understand why it was happened ?
about 5 months ago
thanks a lot you saved my filelife
about 5 months ago
Thanks a lot pal! That worked brilliant
about 4 months ago
Funcionó! Gracias!
It worked! Thanks!
about 4 months ago
Excellent!!!! …. Thanks a lot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
about 3 months ago
Thanks
I thought I lost all of my TV shows. You’re a life saver.
about 3 months ago
thanks for your help my server is working now.
about 3 months ago
if it doesn’t work rename the disk
about 3 months ago
okay it’s work. with only remove .lck folder. thanks brother
about 3 months ago
Thank u so much it worked !!!!
about 2 months ago
Thank a ton It worked.
about 2 months ago
Thanks, that saved my ass
thank you very much! Brilliant!
about 2 months ago
Thanks from Russia
about 2 months ago
Thank you very much. I have just deleted the .lck folders and I could power on my Virtual Machine. Do you know why this situation could happened?
about 2 months ago
Thank you very well written guide solved the problem in seconds (my computer had crashed whilst the VM was running).
about 1 month ago
Saved my day! Thanks
about 1 month ago
YEAH!!! Work fine!!! Thanks
about 1 month ago
I have deleted the .lck folder and now it still would not work it shows another error (Cannot open the disk ‘..-..’) Reason: The specified virtual disk needs repair. and when i restore those folders back it shows me the first error message ( Failed to lock the file.)
and it doesn’t let me to change the drive Letter i believe due to the error
about 1 month ago
thanks
about 1 week ago
it worked. thanks.