Größe von VDI-Files optimieren

Ein kleiner Tipp für VirtualBox Disk Image Files und wie man sie so klein bekommt das man sie vernünftig sichern kann ohne Datenmüll zu sammeln:

Gefunden auf http://superuser.com/questions/529149/how-to-compact-virtualboxs-vdi-file-size, zur Sicherheit nochmal hier her kopiert.

  1. run defrag in the guest (Windows)
  2. nullify free space:With Linux guest run this:

    With Windows guest, download SysinternalsSuite and run this:
  3. shutdown the guest VM
  4. now run VBoxManage’s compact command