VMware error: The specified virtual disk needs to be repaired
When using VMware, it accidentally got stuck due to insufficient memory. When you want to expand the memory, you find that the specified virtual disk needs to be repaired. Since the virtual disk is damaged, it is enough to repair it.
1. Open the command prompt, cd to VMware installation path
The default installation path for win10:
C:\Program Files (x86)\VMware\VMware Workstation
For example:
cd C:\Program Files (x86)\VMware\VMware Workstation
If you customize the installation path, you need to find it yourself.
2. Find the virtual disk path you need to repair
For example, my virtual disk path is:
D:\xuni\ubuntu-16.04\ubuntu 16.
ubuntu 16., this is the configuration file of your virtual machine
3. Execute the command to repair it
vmware-vdiskmanager -R "Virtual Disk Path"
For example, mine is:
vmware-vdiskmanager -R "D:\xuni\ubuntu-16.04\ubuntu 16."
There is another situation:
- The virtual machine is stuck and when it is turned on again, it prompts "The virtual machine seems to be in use."
- If the virtual machine is not in use, press the Get Ownership (T) button to obtain its ownership.
- Otherwise, press the Cancel © button to prevent damage.
In this case, it goes directly to the virtual disk, and there are files with four suffixes that are .lck, just delete them
Summarize
The above is personal experience. I hope you can give you a reference and I hope you can support me more.