• Register
0 votes
342 views

Problem :

I have received the following error 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.

I guess my virtual machine is not starting anymore. Any clue how to fix that?

6.9k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had faced the same error in the recent past. I did lot of research and found below solution.

I just ran the batch file whose code is given below it delete all temporary files , locks, directories and also memory files in the VMWare Working Directory (e.g.. Settings/Options/Working Directory). It helped me to get out of many Jams.

Please Note: You will lose your any unsaved work that was in VMWare suspended memory so please take the backup before using following batch file  if you are not sure. It will reboot the image as if it was just 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

38.6k points

Related questions

0 votes
1 answer 114 views
114 views
Problem: 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?
asked Apr 24 sumaiya simi 43.9k points
0 votes
1 answer 8 views
8 views
Problem: What specifically is the difficulty here?: Another process has locked a portion of the file .
asked May 25 Diederich Raf 120k points
0 votes
1 answer 20 views
20 views
Problem: “Cannot find a valid peer process to connect to” VMware Workstation 10.0.1 while booting a VM. Any suggestions? What should I do? I need those virtual machines to run.
asked Mar 15 ummesalma 29.1k points
0 votes
1 answer 29 views
29 views
Problem: Where should I look for help with this issue : Copy vmware virtual machine to another computer?
asked May 25 Florina Gulnar 106k points
0 votes
1 answer 5 views
5 views
Problem: Please,I want an answer : Vmware workstation cannot connect to the virtual machine
asked Jun 24 Sawyer Parviz 168k points
0 votes
1 answer 5 views
5 views
Problem: Can’t notice any problem, help : Cannot change network to bridged there are no un-bridged
asked Jun 24 Sawyer Parviz 168k points
0 votes
1 answer 12 views
12 views
Problem: Is there any way around this : Cannot change network to bridged there are no un-bridged host network adapters?
asked Jun 14 Mezbah 130k points
0 votes
1 answer 33 views
33 views
Problem: yumrepo error: all mirror urls are not using ftp, http[s] or file.
asked Feb 21 charles mathews 5.5k points
0 votes
1 answer 3 views
3 views
Problem: What does this mean, and what can I do about it?
asked Jun 25 Isac Christiaan 103k points
0 votes
1 answer 16 views
16 views
Problem : How do I solve it: The process cannot access the file because it is being used by another?
asked Jun 17 Siam55 110k points