Verifying sufficient disk space for a VMware Fusion virtual machine
search cancel

Verifying sufficient disk space for a VMware Fusion virtual machine

book

Article ID: 303389

calendar_today

Updated On:

Products

VMware Desktop Hypervisor

Issue/Introduction

Symptoms:
  • A VMware Fusion virtual machine does not power on
  • Taking a snapshot fails
  • Suspending the virtual machine fails
  • You see errors similar to these:
     
    • Error taking snapshot: Failed to suspend the virtual machine.
    • There is not enough disk space to save the virtual machine's state.
    • Could not open paging file for <X> MB. No space left on device.
    • Could not power on virtual machine; No space left on device.
    • Not enough physical memory is available to power on this virtual machine with its configured settings.
    • The file system upon which <virtual machine path and name> resides is critically low on free space. Allowing this virtual machine to continue may cause it to fail unexpectedly.


Environment

VMware Fusion 2.x
VMware Fusion Pro 11.x
VMware Fusion 10.x
VMware Fusion 3.x
VMware Fusion 1.x
VMware Fusion 7.x
VMware Fusion 5.x
VMware Fusion 6.x
VMware Fusion 4.x
VMware Fusion 11.x
VMware Fusion Pro 8.x
VMware Fusion Pro 10.x
VMware Fusion 8.x

Resolution

These issues may occur due to a lack of free disk space on your Mac.
 
A Fusion virtual machine needs disk space on the Mac for both the virtual machine's memory (assigned RAM) and for the virtual machine disk files (assigned virtual disk size).
 
To ensure that your Mac has enough disk space for your virtual machine:
  1. Determine available disk space.
  2. Determine the amount of virtual memory assigned to the virtual machine.
  3. Calculate the difference between the allocated size of virtual disks and the current size of the main virtual disk. This difference is the amount of disk space the virtual machine can grow to fill, not counting any later snapshots.

    Note: If you chose to pre-allocate your virtual disk, this step is unnecessary.
     
  4. Confirm that the free space is sufficient.

    Note: This step basically confirms that the free space (Step 1) is greater than the sum of the assigned virtual memory (Step 2) and the amount of disk space the virtual machine can grow to fill (Step 3).

Determining available disk space

Note: The free disk space must be on the same disk as the virtual machine or its .vmx file. For more information, see Locating the virtual machine bundle in VMware Fusion (1007599)
 
To determine the current free disk space, see Investigating disk space in Mac OS X (1021932)
 
For example purposes, let's say you have 5 GB of available space.

Determining the amount of virtual memory assigned to the virtual machine

To determine the amount of virtual memory assigned to the virtual machine:

  1. Open Fusion.
  2. Select the virtual machine.
  3. Go to Virtual Machine > Settings....
  4. Click Processors & RAM. The assigned virtual memory (RAM) size is displayed in MB.
For example purposes, assume you have 1GB of RAM assigned to your virtual machine.

Calculating the difference between the allocated size of the virtual disks and the current size of the main virtual disk

If you did not pre-allocate your disks, the virtual machine starts with small virtual disks. The virtual disks can grow in size until they equal the allocated size. To calculate the difference between the allocated size of the virtual disks and the current size of the main virtual disk, take the allocated size of the virtual disk and subtract the current size of the virtual disks.

Note: To determine which files are the main virtual disk files, see Contents of the virtual machine bundle in Fusion (1021016)
 
  1. To determine the allocated size of the virtual disk:
    1. Open Fusion.
    2. Select your virtual machine.
    3. Go to Virtual Machine > Settings....
    4. Click Hard Disks. The allocated disk size is displayed in GB.

      For example purposes, let's say you have allocated 40 GB to your virtual machine's disk.
       
  2. To determine the current size of the virtual disks:
    1. Open the virtual machine bundle and locate the main virtual disk ( .vmdk) file(s) of the virtual machine. For more information, see Locating the virtual machine bundle in VMware Fusion (1007599)
    2. Ctrl-click each .vmdk file and select Get Info. The size of the virtual disk is displayed in the top-right corner of the Get Info window.
    3. If you have multiple .vmdk files, add the size of each together to find the total size.

      For example purposes, let's say you have 20 virtual disk files, ranging in size from 684 KB to 2.1 GB, and the total size is 30 GB.

Confirming that the free space is sufficient

The difference between the size of the virtual disk allocated to the virtual machine and the current size of the virtual disks, plus the amount of assigned virtual memory, must be less than the currently available free disk space. Otherwise, Fusion does not let the virtual machine start because the virtual machine might grow to be larger than the physical disk.
 
If you have 5 GB of free space, your virtual machine will not start unless it requires less than 5 GB more space
 
Using the examples from this article, if you have a virtual machine with 1 GB of assigned RAM, an allocated size of 40 GB, and non-pre-allocated disks totaling 30 GB, then your virtual machine needs 11 GB more space: 1 GB for the assigned RAM and 10 GB for the difference between the allocated size and the current size of the virtual disks (40 GB - 30 GB = 10 GB).


Additional Information

If you do not have sufficient free space because of snapshots, see Consolidating snapshots in VMware Fusion (1020000)
Locating the virtual machine bundle in VMware Fusion
Consolidating snapshots in VMware Fusion
Contents of the virtual machine bundle in Fusion
Investigating disk space in Mac OS X
VMware Fusion 仮想マシンに対して十分なディスク領域があることを確認する
验证 VMware Fusion 虚拟机的磁盘空间是否充足