From time to time, I want to copy just the minimum files for a VMware virtual machine: the two .vmdk files and the .vmx file. After moving those files to a new location or deleting a snapshot file, attempting to boot the virtual machine returns the following error message:
Cannot open the disk ‘XXXXXX.vmdk’ or one of the snapshot disks it depends on.
Reason: The system cannot find the file specified.
I’ve found that following the steps below fixes the problem and allows me to boot the virtual machine as it existed at the time of creation. DO NOT USE these steps if you need to retain any changes to the machine:
Open the *.vmx file in a text editor and find the line that refers to the old snapshot file, which will look something like:
scsi0:0.fileName = “XXXXXX-000002.vmdk”
or
ide0:0.fileName = “XXXXXX-000002.vmdk”
Change the value to the filename of the ~1kb .vmdk file (which happens to be the same as the name of the VM). For example, if your virtual machine was named “Windows XP Professional”, the line would read:
scsi0:0.fileName = “Windows XP Professional.vmdk”
Power on the VM. It should boot normally, but because the snapshot file is missing, the machine will boot to an earlier state.
WinMount provides an easiest way to mount VMDK as a virtual disk. You can read or write to the vmdk file without loading the virtual system.
Here shows you how to do: http://www.winmount.com/mount_vmdk.html
Thanks so much for posting this! You saved me a ton of time!
If this happens as the result of a crash, rather than intentionally as a “boot-clean” restart, and you’re trying to recover, then a less-destructive thing to try first would be to delete any .LCK folders within the main VM folder. If this works, you should get your system back in an up-to-date state.
Thank Ken, by just deleteing the LCk file one error is been resolved, but I have another error also the error is
” at lest one service or driver failes during start up”
I was checking your solution but everything was fine in my file. I ended up doing the same as KenPem. I have deleted the .lck files and it did the trick.
Hello I am trying to recover from a crash of a Vmware 2.0 vmdk file… I’ve tried removing the lck files/folders but this didn’t work it. When the crash happened it recoved itself but reverted back to a snap shot taken 3 months ago… I need to get the files from the last thee months… I restored a backup of this VMDK taken just prior to the crash, but it won’t start in VMware – each time it errors and the Virtual Host service needs to be restarted. Attempting WinMount but it says… Winmount can not mount this file… Is it because it’s version 2.0? How can I reach in this 55GB file to recover some important work done this past month?
My host application crashed bringing down the guest VM machine. When i try to restart the VM machine it gave the ff. msg:
“Cannot open the disk. ‘D:ProgramsVirtual Machine*”
Reason: Failed to lock the file.
SOLUTION:
Delete any .LCK folders within the main VM folder. If this works, you should get your system back in an up-to-date state. Just like the above thread suggested. This works fine for me…Hope this helps anyone out there
Delete .LCK folders works for me, Thanks a lot
Delete .LCK folders works for me, Thanks a lot Dude
thanks for the trick ……
Yes, this worked for me. Thanks a lot.
Valeu, ok.
thanx a lot………………
I wanted to thank you for this tip. You saved me hours of time. I know that this was posted years ago, but it still works today. Many thanks Oliver!
Delete .LCK folders works for me, Thanks a lot KenPem
where is this directory on Linux? “D:ProgramsVirtual Machine*”
.lck folder trick did not work for me. after relaunching the application, the .lck folder reappear again
The instructions on from the OP is not clear.
I found all the files, what to do with them?
is it to change scsi0:0.fileName = “Windows XP Professional.vmdk” to scsi0:0.fileName = “~1kb.vmdk”
or what exactly.
Hi, I have 2 virtual machine on vmware 1.0.3 doing cluster in a box setup. for that i have created two scsi hdd’s on the first vm server from settings (one for cluster&one for quarom)the problem is that when i start first server its ok its starts with added scsi hdd’s, but when i start second server i get message {cannot open the disk”E:virtual ServersSANStorage1.vmdk” or one of the snapshot disks it depends on Reason:Failed to lock the file}. my virtual machines are in E:virtual servers folder and storage goes to folder E:virtual serversSAN folder. is there any problem in the settings?.please help. also if i go settings on the virtual server i get (
memory 384mb/hard disk scsi 0:0/hard disk scsi 1:0/hard disk scsi 2:0/cd rom ide 1:0/floppy/ethernet brigded/ethnernet host only/processors 1.
is it possible to have scsi shared hdd facility on vmware 1.0.3?..your valuable response will be highly appreciated.
Big thanks to KemPem, deleting .LCK folders worked for me aswell.
I had the same problem, but I noticed that my harddisk had no space available, I did a cleaning and VMW is working again.
Thank you for the info it work like a charm!!! I spent hours following different methods from other threads and those didn’t work!
Thanks again!!
Thanks to KemPem! After deleting .LCK folders my virtual machine started without any problems.
Deleting .lck folders worked for me too. Thanks dude
Many thanks Oliver!
Many thanks, deleting the .lck worked, now I should just do a back up just to be safe.
use a more recent version of it. 7 or higher
Thanks Alot…you are saved my life…:D
when i power on my machine it will show this error please help me out ..
Unable to open file “C:DownloadsMac OS X Lion 10.7.4 VMware ImageMac OS X Lion 10.7.4 VMware ImageMac OS X LionMac OS X Lion.vmdk”: One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot.
KenPem @ I deleted .SLA files
I working now, thanks alot
Nice, It worked for me, thanks a tons
hi,thanks for your post.before I start doing your work,I tried what KenPem said and it worked
thanks a lot