How to compact Virtualbox VDI disk file size.

VirtualBox Tutorials, Tweaks and hacks go here!
Post Reply
User avatar
nebadon
Site Admin
Posts: 107
Joined: Mon Feb 11, 2008 5:46 pm

Sat Oct 19, 2013 12:35 pm

in the Guest OS Run

Code: Select all

sudo dd if=/dev/zero of=/bigemptyfile bs=4096k
sudo rm -rf /bigemptyfile
now shut down the vm and run the following on the Host OS

Code: Select all

VBoxManage modifyhd thedisk.vdi --compact

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest