Skip to content

Instantly share code, notes, and snippets.

Avatar

Sina Momken sinamomken

View GitHub Profile
@sinamomken
sinamomken / vdi-file-compacting.md
Created Jul 21, 2018 — forked from kuznero/vdi-file-compacting.md
How to compact VirtualBox's VDI file size?
View vdi-file-compacting.md

Source: StackOverflow

1. Run defrag in the guest (Windows only)

2. Nullify free space:

With a Linux Guest run this:

sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k
sudo rm -rf /bigemptyfile
You can’t perform that action at this time.