Resizing vmdk harddisks for VirtualBox
VirtualBox is a free tool, which allows you to run virtual machines on a host computer. Using VirtualBox you can install Linux, Windows and other operating systems to play and experiment with.
Start the process by closing virtualbox (I usually also dettach the virtual harddisk due to be resized). Go on to a shell and find the directory where the virual machines are located.
If your initial harddisk was cloened from another virtualbox, you may get an error like this: