The Temple of Fu

code, systems and games

Archive for March 2011

VMWare Server – Failed to lock the file

leave a comment »

Almost every time when the power goes out at my house I receive the following error when starting up an image that was already running when the lights went out.
‘Cannot open the disk ‘/path/to/machine.vmdk’ or one of the snapshot disks it depends on.
Reason: Failed to lock the file.’

This is due to a lock being held on the memory files within the directory listed in the error message.

#cd /path/tovm
#ls *lck
#rm -Rf *lck

Be careful with the rm -Rf command above please 😉 hope this helps someone sometime.

Written by lordfu

March 23, 2011 at 10:09 pm

Posted in Linux, Other, RedHats, Slackware