MacLochlainns Weblog

Michael McLaughlin's Technical Blog

Site Admin

VMWare Locked Files

with 5 comments

Working on my stuff today, and the Belkin Flip DVI KVM Switch (product discontinued as of 2012) went nuts. First, I lost the keyboard, and then video. After a couple fruitless minutes, I did the unthinkable and opted for the 7 second to oblivion restart while two VMWare instances were up and running. By the way, I disconnected the Belkin Flip DVI KVM Switch because that was the last straw. For those looking at the product, I’d advise against it because infrequently the device transmits haze or golden flashing pixels. Also, this wasn’t the first time the keyboard disconnected itself without rhyme or reason.

All my VMs were locked when I rebooted. It didn’t matter whether they were running or not when I did the forced shutdown. This is not the image you want to see when you’re short on time against a fixed deadline.


The fix was simple. You go to the directory where each VM is located and find if you have locked files. You can run this command to find them:

$ ls *.lck

If they’re locked you’ll see something this:

Windows XP Professional 32-bit.vmdk.lck:
Windows XP Professional 32-bit.vmx.lck:

You need to delete all three files, I used this command:

$ rm -rf *.lck

When you restart VMWare Fusion, everything will be fine. Hope this helps a few folks.

Written by maclochlainn

July 25th, 2009 at 6:29 pm

Posted in Mac,VMWare

5 Responses to 'VMWare Locked Files'

Subscribe to comments with RSS or TrackBack to 'VMWare Locked Files'.

  1. It would be so much easier if my English was better.


    26 Jul 09 at 7:31 pm

  2. You saved my life! Thanks for this posting.


    17 Aug 09 at 10:51 am

  3. perfect solution.
    Don’t forget that the files are hidden in a package. So right click on the icon of your VM to see the files.

    Thanks again

    you are great

    18 Aug 09 at 6:55 am

  4. Thanks for this!

    I couldn’t figure out how to open the package contents in terminal but I managed to do it throgh Finder -> Show Package Contents and just moved the .lck files to the trash.


    22 Oct 09 at 10:57 am

  5. I’ve removed the link to the Belkin product because it’s been discontinued. Thanks to the person who reported the broken link.


    20 Sep 12 at 12:18 pm

Leave a Reply