2

I created several virtual machines using Oracle Virtual Box. The total hard drive spaces these machines took up was ~40GB. I have since deleted these virtual machines from Virtual Box and My Computer is saying I have 58GB free when I should have ~40GB more free after deleting the virtual machines.

Info:

  • I am on Windows 10.
  • I deleted the virtual machines by right clicking the VM then selecting remove. I have then gone to File->Virtual Media Manager and attempted to remove the .vdi files but they are not listed there (so I assume/d they had been deleted in the remove operation).
  • I have run the utility Folder Size (that lists all big folders and files on my HD). And I cannot see/find these .vdi or other files that maybe taking up the ~40GB.
  • I have emptied my recycling bin
  • I have looked in C:\Users\MYUSER\VirtualBox VMs and there are no VMs/folders in there so I assume Virtual Box has deleted them already

Any advice on how I can fix this?

I believe the cause is bloody Virtual Box not re/un partitioning the harddrive after deleting the VM.

sazr
  • 359

2 Answers2

0

I deleted the virtual machines by right clicking the VM then selecting remove. I have then gone to File->Virtual Media Manager and attempted to remove the .vdi files but they are not listed there (so I assume/d they had been deleted in the remove operation).

The files will only be deleted if you select "Delete all files"... If you select "Remove only" then the VM (and related media) will be unregistered from the VirtualBox system, and the files will remain in your filesystem.

vbox remove vm


I have run the utility Folder Size (that lists all big folders and files on my HD). And I cannot see/find these .vdi or other files that maybe taking up the ~40GB.

Some formats of virtual hard disks allow their content to be stored as multiple smaller files, so searching for a single "full size" file may not reveal what you're after.

*.vdi is the extension for one of the available virtual hard disk formats... others include *.vhd and *.vmdk.


I have looked in C:\Users\MYUSER\VirtualBox VMs and there are no VMs/folders in there so I assume Virtual Box has deleted them already

The files are stored in %UserProfile%\VirtualBox VMs by default... but they can be stored anywhere


I believe the cause is bloody Virtual Box not re/un partitioning the harddrive after deleting the VM.

VirtualBox doesn't partition anything - virtual hard disks are stored as files in your existing filesystem.

You can confirm this by running Disk Management (diskmgmt.msc)


If all of the above is understood and you're still looking for the "missing" space, then you might want to start looking for more generic "Windows free space mismatch" type information.

For example:

Utilities like WinDirStat can also be quite helpful for understanding where disk usage is:

windirstat

Attie
  • 20,734
0

I just deleted the files in the below path and entire held-up space is released.

Path - C:<user documents>\VirtualBox VMs\ folder.