Posts tagged virtualbox

VirtualBox: Compact the VDI hard disk file

4

This short post will show how it is possible to compress your Windows virtual Hard Disk size in order to gain some GBs. This recommendation is valid only if you had set dynamic expanding storage.

On your Windows ghost machine download SDelete from http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx and on the prompt command execute (C: is my drive letter)

sdelete -c C:

In this way you mark as free all clusters that are unused by Windows.

When finished, shut down your Virtual Box and from the shell execute the following command

VBoxManage modifyvdi /home/ivan/.VirtualBox/HardDisks/WinXP.vdi compact

That’s it, you have compressed your VDI hard disk file to the really needed dimension.

See you

Ivan

VirtualBox: Change hard disk size

2

Using VirtualBox you could face the problem of an hard disk too small. It’s not possible to change the size of the virtual hard disk (.vdi) directly so we have to find an other solution.

I solved this problem by creating a new virtual hard disk and clone the old hard disk in the new one.

What you need:

- Gparted iso image
- SuperGrubDisk iso image

(more…)

Go to Top