Knowledge Base
Authentication is disabled (development mode).

compact virtual had disk after zerofree

Edit

compact disk hard vbox virtual virtualbox zerofree

mkdir /z
mount -o ro /dev/sda1 /z
/z/usr/sbin/zerofree -v /dev/sda1

sudo mount -n -o remount,ro /
sudo zerofree -v /dev/sda1

VBoxManage modifyhd --compact path_to.vdi