rod.dinis
rod.dinis

Reputation: 1483

VMWare Workstation VM not starting because of locked portion of file

I am receiving the message:

The process cannot access the file because another process has locked a portion of the file

Cannot open the disk 'C:\Users\t825665\VM's\VPC\Windows 10 x64.vmdk' or one of the snapshot disks it depends on.

Module 'Disk' power on failed.

Failed to start the virtual machine.

So the virtual machine is not starting anymore, how to fix that?

Upvotes: 29

Views: 60236

Answers (6)

Toni Pečečnik
Toni Pečečnik

Reputation: 11

For me, it helped, that I started the VM with admin privileges.

Upvotes: 1

Sam
Sam

Reputation: 261

Workstation shut down, delete any *.lck files and folders in the VM folder. Then reopen the Workstation, load the VM, and power on.

Upvotes: 1

user13543779
user13543779

Reputation: 111

removing folders with an extension of lck solved the issue for me

Upvotes: 11

Beto Green
Beto Green

Reputation: 21

I run the batch file below to delete all temporary files , locks, directories and memory files in the VMWare Working Directory (i.e. Settings/Options/Working Directory). It's got me out of many a jam. You will lose any unsaved work that was in VMWare suspended memory so backup before using if you're not sure. It will reboot the image as if it was shutdown.

--------------------------Clean.bat ----------------

@echo off

REM  - Delete all directories in Working Directory
set dr=%cd%
set ex=\*
set "dr=%dr%%ex%"
for /d %%a in ("%dr%") do rd "%%a" /q /s  

REM - Delete files in Working Directory
del *.log
del *.vmem
del *.vmss
del *.nvram
del *.vmx~
pause

Upvotes: 2

AliReza
AliReza

Reputation: 191

To solve this error, please go to virtual O's directory and delete every thing with an ".lck" extension.

Upvotes: 19

rod.dinis
rod.dinis

Reputation: 1483

I just found the solution for this issue. I created a backup and moved the 'lck' files from my VM's directory (*.lck), removing them from the VM's directory. Then just restarted the virtual machine.

Upvotes: 62

Related Questions