Zero out free disk space on the guest:

sudo dd if=/dev/zero of=/temp.zeros bs=4096k
sudo rm -f /temp.zeros

Compact the disk image on the host:

vboxmanage modifymedium /path/to/image.vdi --compact