• Register
0 votes

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 5 3
6,930 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~

9 7 4
38,600 points

Related questions

0 votes
1 answer 100 views
Problem : I have some of the code and when I try to executes it, it throws the below IOException, saying that “The process cannot access the file 'filename' because it is being used by another process” What is the meaning of this exception , and how can I completely fix the exception?
asked Jan 3, 2020 alecxe 7.5k points
0 votes
1 answer 93 views
Problem : I am facing error on below step objUDMCountryStandards.Country = txtMySearchCountry.Text.Trim() != string.Empty ? txtMySearchCountry.Text : null; in the get grid data throws error as below : “The calling thread cannot access this object because a different thread owns it.” Is there anything wrong with my code?
asked Jan 7, 2020 alecxe 7.5k points
1 vote
1 answer 34 views
Problem : In the following step objUDMCountryStandards.Country = txtSearchCountry.Text.Trim() != string.Empty ? txtSearchCountry.Text : null; in get grid data throws the exception as below : The calling thread cannot access this object because a different thread owns it. What is wrong in my code?
asked Dec 28, 2019 alecxe 7.5k points
0 votes
1 answer 113 views
Problem : I am facing following c# socket issue the i/o operation has been aborted because of either a thread exit or an application request
asked Nov 16, 2019 peterlaw 6.9k points
0 votes
1 answer 76 views
Problem: I am naïve to C# programming. I am trying to use the auto-implemented properties. I think the best ever way to fix below error is to declare my own backing variable? Please find below my C# code: public Point Origin { get; set; } ... unchanged. To resolve this error, store the result of the expression in an intermediate value, or use a reference type for the intermediate expression.
asked Jul 23, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 34 views
Problem: Data modeling may be the most important part of the systems development process because:?
asked Jul 22, 2020 kTyson 10.9k points
0 votes
1 answer 111 views
Problem : I have recently installed a website on my local machine using IIS 7 successfully. But when I tried to deploy it on the live server, I got a following error: "The page cannot be displayed because an internal server error has occurred" Nothing else. Using a same IIS 7 on live and also set to have the Detailed errors in Error Pages module, but still getting a same. What can be the reason?
asked Jan 28, 2020 jwilliam 3.9k points
0 votes
1 answer 346 views
Problem : I want to remote debug my windows 7 64bit machine, which runs the remote debugging tools. I am compiling the code in my local computer and then I copy it to my remote machine and run it with a remote debugger. It used to work until few days back also I don't recall ... 0 skipped ========== May be the change is the main reason and a "BeginBuild has not yet been called" is just a symptom?
asked Jan 25, 2020 jwilliam 3.9k points
0 votes
1 answer 14 views
Is there any way to check if the file is in use??
asked Sep 8, 2020 Oscar909 460 points