Compacting a virtual hard disk can reclaim unused space in the virtual disk. Modern disks and operating systems are much more efficient at managing disk space than in the recent past. Therefore, do not expect the compacting procedure to return large amounts of disk space to the host drive.

Prerequisites

  • Power off the virtual machine.
  • Verify that the virtual disk is not mapped or mounted. You cannot compact a virtual disk while it is mapped or mounted.
  • Verify that the disk space is not preallocated for the virtual hard disk. If the disk space was preallocated, you cannot compact the disk.
  • If the virtual hard disk is an independent disk, verify that it is in persistent mode.

Procedure

  1. Select the virtual machine and select VM > Settings.
  2. On the Hardware tab, select the virtual hard disk to compact.
  3. Select Utilities > Compact.
  4. Click OK after the disk compacting process is complete.