Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Repairing a sparse virtual disk in Fusion (1023888)
Symptoms
- The virtual machine fails to start after a forced Mac shutdown
- The virtual machine does not boot up after a crash
- When starting the virtual machine, you see the error:
Operation on file failed. If the file resides on a remote file system, please make sure your network connection and the server where this disk resides are functioning properly. - When starting the virtual machine, you see the error:
Cannot open the disk '<path to virtual machine>/<virtual disk.vmdk>' or one of the snapshot disks it depends on. Reason: The specified virtual disk needs repair. - When trying to mount the virtual disk with VMDKMounter, you see the error:
There is a problem trying to mount the virtual disk. - When trying to repair the virtual disk using vmware-vdiskmanager, you see the error:
The virtual disk is corrupted but the repair process has failed. - When starting the virtual machine, you see the error:
"Unable to delete snapshot" virtual disk needs repair
Purpose
Note: Not all corrupted virtual disks can be repaired. Power outages, force-quitting Fusion, and powering off the Mac (rather than shutting it down) might cause unrepairable damage to a virtual machine. Bad sectors on a physical hard disk or a failing hard drive can also cause damage to a virtual machine by corrupting the virtual disk.
Resolution
To repair a virtual disk:
Note: If you are using Fusion 3.1.0, you must obtain the correct version of the utility before proceeding with the repair. For more information, see Repairing a virtual disk in Fusion 3.1 and Workstation 7.1 (1023856).
- Ensure that your virtual machine is shut down and not suspended. If your virtual machine is suspended, see Fixing an unexpected signal 10 error in Fusion (1018757).
- Open Finder, navigate to
/Applications/Utilities, and open Terminal.
- Copy and paste this line into the Terminal window:
- If you are using Fusion 4.x or above:
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -R
- If you are using Fusion 3 or below:
sudo /Library/Application\ Support/VMware\ Fusion/vmware-vdiskmanager -R
- If you are using Fusion 4.x or above:
- In a new Finder window, locate your virtual machine bundle. For more information, see Locating the virtual machine bundle in VMware Fusion (1007599).
- Right-click the virtual machine bundle and select Show Package Contents.
- Locate the
.vmdkfile that was in the error message and drag it into the Terminal window. This copies the file location into the command that has already been started. The command in Terminal looks similar to this:
- If you are using Fusion 4.x or above:
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -R /Users/yourusername/Documents/Virtual\ Machines.localized/Windows\ XP.vmwarevm/Windows\ XP.vmdk
- If you are using Fusion 3 or below:
sudo /Library/Application\ Support/VMware\ Fusion/vmware-vdiskmanager -R /Users/yourusername/Documents/Virtual\ Machines.localized/Windows\ XP.vmwarevm/Windows\ XP.vmdk
- If you are using Fusion 4.x or above:
- Enter the administrator password when prompted, then press Enter.
Note: For security reasons, the typed password is not displayed. You do not need to enter your password again, for the next five minutes.
- Wait for the repair to complete. A message appears indicating whether the virtual disk repair is successful. After the command has run, you see one of these messages:
- No issues: No errors were found on the virtual disk,<location of disk>
- Issue repaired: The virtual disk, <path to disk>, was corrupted and has been successfully repaired.
- Can't repair: The virtual disk, <path to disk>, is corrupted but the repair process has failed.
- Can't repair: No result is displayed as the disk file damage is such as it has caused vdiskmanager to crash.
Note: If you have any snapshots, you must repeat Steps 6 and7 for each main disk (the base disk and the main snapshot disks). For more information, see Contents of the virtual machine bundle in Fusion (1021016).
- To exit from Terminal, go to Terminal > Quit Terminal.
If the repair is successful, open Fusion and start the virtual machine. If the repair fails, you need to restore from a backup of your virtual machine or create a new virtual machine. The steps to create a new virtual machine can be found in our video walk-through VMware Fusion 3 Install Microsoft Windows on Your Mac.
Tags
See Also
- Locating the virtual machine bundle in VMware Fusion
- Fixing an unexpected signal 10 error in Fusion
- Contents of the virtual machine bundle in Fusion
- Making a Fusion virtual disk pre-allocated or sparse
- Repairing a virtual disk in Fusion 3.1 and Workstation 7.1
Update History
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

