VirtualBox

Compact a disk image

  1. overwrite empty blocks on the disk with zeroes. See below for applications.
  2. run the VBoxManage tool like this: 1)
    VBoxManage modifyhd <NameOfVDIorVMHD> compact

Applications for overwriting empty blocks

Eraser (Windows)

[ Homepage ] Install as normal. Then go to EditPreferencesErasing… and select the second Tab Unused disk space. Create a new method with one pass and a pattern of only zeroes. Now go to the “On Demand”-Tasks and create a new one with your local harddisks as target. Run it to perform erasing.

SDelete (Windows, SysInternals)

[ Homepage ] Download and unpack. Run it like:

sdelete -c C:\

dd (Linux)

Use something like:

dd if=/dev/zero of=/junk
sync
rm /junk

This will create a large file with only zeroes and fill up the empty space on your hd.

zerofree (Linux)

[ Homepage ] Install the zerofree package. Run it as the man page says.

:!: Seems like zerofree only supports unmounted filesystems. For this to work you should boot into a recovery Linux inside your VM to clean the disk image.

sfill (Linux)

Install the secure-delete package. Run something like:

sfill -z -l -l /

Transparency-Bug in VBox 3.0

If you just installed VirtualBox 3.0 and noticed that you only see parts of Windows' titlebars and the icons but no text or backgrounds, try the following:

Run VirtualBox like this: Found here

env XLIB_SKIP_ARGB_VISUALS=1 VirtualBox

1) Older versions of VirtualBox used modifyvdi as first parameter. Also this feature is disabled in VBox 2.1.
 
know-how/software/virtualbox.txt · Last modified: 2009-07-17 23:14.13 by mbirth
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki Contents powered by Club-Mate Contents powered by BassDrive.com Labelled with ICRA