If it’s a variable-size virtual disk, the file increases size as the disk becomes full, but the file doesn’t automatically shrink when the disk is emptied.
- zero free space on virtual disk
- on win guest:
- defragment disk: defrag c: /u /v
- sdelete -z c: # sysinternals
- on linux guest:
- dd if=/dev/zero of=/var/tmp/anyname bs=1G
- rm /var/tmp/anyname
- on win guest:
- turn off guest
- compact vdi file
- VBoxManage modifymedium <DISK-UUID> –compact