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.
- run defrag in the guest (Windows)
- nullify free space:With Linux guest run this:
|
|
sudo dd if=/dev/zero of=/bigemptyfile bs=4096k sudo rm -rf /bigemptyfile |
With Windows guest, download SysinternalsSuite and run this:
- shutdown the guest VM
- now run VBoxManage’s
compact command
|
|
VBoxManage.exe modifyhd thedisk.vdi --compact |