Guide | How To How to Clean Up a Virtual Hard Disk on Windows Hosts

The associated guide may contain user-generated or external content.

Adhit Prakosho

Level 19
Thread author
Verified
Top Poster
Well-known
Sep 14, 2014
929
When you delete files from your virtual machine, the disk space occupied by those files is not immediately returned to your host system. If a virtual disk has such empty space, you can use the Clean up disks command to return that space to the hard drive on a Microsoft Windows host.

On my PC (Just run a VM and update AV in VM (not even delete any file)) :
1_online.png

2_online.png


The Clean up disks command is similar to the Compact command in the Workstation virtual machine settings and the shrink command provided by VMware Tools. The Clean up disks command has these advantages:
  1. You can use the Clean up disks command with virtual machines that have snapshots or are linked clones or parents of a linked clone.
  2. The Clean up disks command reclaims more disk space than the Compact command.
    The Clean up disks command reclaims disk space from the current state of the virtual machine, from any powered-off snapshots, and from any powered-on snapshots where the guest operating system is Windows XP or later and you have installed a version of VMware Tools that is compatible with Workstation 8 or later.
  3. Unlike the Defragment command and the shrink command provided by VMware Tools, the Clean up disks command does not require any extra disk space on the host. The Clean up disks command operates directly on the virtual disk (.vmdk) files.
Note: This command is not available for shared or remote virtual machines.

Prerequisites:
  1. Verify that you are using a Windows host and that the guest operating system uses NTFS. (NTFS is standard in Windows XP or later operating systems.) This feature works on all NTFS hard disks but reclaims more disk space if the operating system is Windows XP or later.
  2. Shut down or power off the virtual machine. You cannot use this command while the virtual machine is powered on or suspended.
Procedure:
  1. Select the virtual machine in the library.
  2. From the menu bar, select VM > Manage > Clean Up Disks.
    Workstation calculates how much space can be reclaimed, and either the Clean Up Now button becomes available or a message appears, explaining why the command is unavailable.
  3. Click Clean Up Now to start the process.
    A dialog box reports the progress of the clean-up process.

Source





 
  • Like
Reactions: jerzy601 and amz

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top