Caution: This article assumes familiarity with how snapshots work. For more information on snapshots, see Understanding snapshots and AutoProtect in VMware Fusion (1014509).
The most likely reason for running out of disk space (if you have not recently saved any large files to your computer) is that one or more snapshots have grown too large. If this occurs, you have three options:
- Make more space.
- Automatically consolidate snapshots
- Manually consolidate your snapshots
Option 1: Make more space
This option may be the easiest, and it does not involve any changes to your virtual machine. If you are running out of disk space, you can:
- Delete data to free up disk space.
- Use an external hard drive (for example, a USB or Firewire drive) to store extra data and/or your virtual machine.
Fusion can regain the space currently taken by your snapshots and bring your virtual machine back to the size you originally allocated, but it needs the extra space to do so to ensure that no data is lost.
Option 2: Automatically consolidate snapshots
If you cannot see any or all of your snapshots in the Snapshot Manager, allow Fusion to consolidate your snapshots. This succeeds if you have sufficient disk space. Otherwise, you see an error.
To have Fusion consolidate your snapshots:
- Take a snapshot.
Note: This is faster and uses less space, if you do it while the virtual machine is not running.
- Delete the snapshot.
This consolidates all of your snapshots into your main disk. If you do not have enough disk space to do this, use option 3.
Option 3: Manually consolidate snapshots
If you cannot see any or all of your snapshots in the Snapshot Manager, and you do not have sufficient disk space for Fusion to consolidate them, you must consolidate your snapshots manually.
To manually consolidate snapshots:
- Check the size of the virtual machine.
- Determine which snapshot Fusion is currently using.
- Consolidate all snapshots.
- Point the virtual machine to the new file.
- Run a final check.
Checking the virtual machine size
Fusion requires approximately the same amount of free space as the size of the virtual machine bundle to regain the disk space.
To check the size of the virtual machine bundle:
- Find your virtual machine bundle. For more information, see Locating the virtual machine bundle in VMware Fusion (1007599).
- Right-click the virtual machine bundle and choose Get Info. The file size appears in the top-right corner.
If you cannot free up sufficient space on your Mac, move your virtual machine bundle to the external drive now. After moving your virtual machine, you need to re-open it in Fusion to use it in the new location.
Determining the current virtual disk
You have to determine which snapshot Fusion is currently using.
To determine the snapshot that Fusion is using:
- Open Fusion.
- Go to Virtual Machine > Settings....
- Click Hard Disks.
- Make a note of the .vmdk file listed in the Filename: field.
If the file name is too long to fit in the field, check the virtual machine settings file ( .vmx) for this information instead.
To check the .vmx file:
- Open your .vmx file. For more information, see Editing the .vmx file for your VMware Fusion virtual machine (1014782).
- Find the line that is similar to:
scsi0:0.fileName = "Virtual machine name.vmdk"
or
ide0:0.fileName= "Virtual machine name.vmdk"
The file name in quotation marks is the snapshot currently used by Fusion.
Consolidating all snapshots
To consolidate data from the snapshot(s) and from the main virtual disk, use the command-line utility vmware-vdiskmanager to create a new virtual disk.
To create a new virtual disk:
- Open Terminal (found in /Applications/Utilities).
- Copy and paste this text into Terminal:
- In Fusion 4.x and later:
cd /Applications/VMware\ Fusion.app/Contents/Library
- In Fusion 3.x and earlier:
cd /Library/Application\ Support/VMware\ Fusion
- Press Return.
- Copy and paste this text into Terminal:
./vmware-vdiskmanager -r
- From your virtual machine bundle, drag the current virtual disk file (the file name determined above) into the Terminal window. This copies the location of the file into Terminal.
- Copy and paste this text into Terminal:
-t 1
- Press the spacebar.
- Enter a new (temporary) location for the virtual disk, followed by a forward slash ( /), and enter a new file name (for example, NewDisk.vmdk).
Note: The name must end with .vmdk . Any spaces in the file name must be preceded by backslashes ( \).
Example: If you copy and paste this into Terminal, it creates a disk called NewDisk on your desktop:
~/Desktop/NewDisk.vmdk
Note: If you do not have enough space on your desktop to create the new virtual disk, you can create it on the external drive. Drag a folder from the external drive into Terminal to generate the correct path. The path and file name are similar to this:
/Volumes/My\ USB\ Drive/Virtual\ Machine/NewDisk.vmdk
- The command in the Terminal windows is now similar to this:
./vmware-vdiskmanager -r /Users/yourname/Documents/Virtual\ Machines.localized/Windows\ XP\ Professional.vmwarevm/Windows\ XP\ Professional.vmdk -t 1 ~/Desktop/NewDisk.vmdk
or
./vmware-vdiskmanager -r /Users/yourname/Documents/Virtual\ Machines.localized/Windows\ XP\ Professional.vmwarevm/Windows\ XP\ Professional.vmdk -t 1 /Volumes/My\ USB\ Drive/Virtual\ Machine/NewDisk.vmdk
- Press Return.
A message that says Converting... followed by a percentage appears. The length of the process varies depending on the size of the virtual machine.
Pointing the virtual machine to the new file
After the snapshots have been consolidated, you need to use the new virtual disk. The easiest way to do this is to make a new virtual machine that uses the new virtual disk you have just created (which has all of the information from your old virtual disk and all of the snapshots).
To make a new virtual machine that uses the new virtual disk, refer to Creating a virtual machine from an existing virtual disk in VMware Fusion (1023555)
Running a final check
After powering on the new virtual machine, compare it with the old virtual machine and ensure that nothing is missing. If you see any files or folders missing, you may have neglected to re-enable Shared Folders or Mirrored Folders. For more information, see Sharing a folder from your Mac to a virtual machine (1004055) and Setting up mirrored folders for your Mac and virtual machine (1014127). Alternatively, you may not have selected the correct snapshot (the current virtual disk) when consolidating. Confirm the above steps.
When you are satisfied with the new virtual machine, delete the old virtual machine. For details, see Deleting a virtual machine in Fusion (1003420).