I use VirtualBox because while I prefer Linux (partucularly Ubuntu Desktop), I have to use Windows to access most of my customers’ networks. Recently, I’ve started running out of space on the Windows XP images that I created four or five years ago when I was using VMWare Workstation. Since this is the second time I’m having to go through this process, I felt that it would be a good idea to document it for anyone else that has to deal with it.
This process is the same for both Windows and Linux hosts, so don’t worry about the BASH prompt.
It’s a two step process to convert from VMWare VMDK images to the VirtualBox VMI format. You first need to convert the VMDK image to RAW
The command “qemu-img” comes from the “qemu-utils” package in Ubuntu or Debian. If you need to install it, just type:
For windows users, you’ll download and install QEMU Manager.
Now that we have the raw image, we can convert it to VDI using VBoxManage:
Resizing a VDI image in VirtualBox is really easy.
There’s not any gotcha’s in this step, and it’ll only take a few seconds to complete
In the VirtualBox manager application, go to the Storage section and click on the current disk image. Click on the Remove Attachment icon (looks like a disc pack with a red line through it).
Next, click on the controller and click on the Add New Attachment icon (looks like a disc with a green plus [+] sign on it) and choose the new VDI image you just created.
The last step in the process is to resize the Windows partition from within Windows. There are a couple of different ways to do it, but by far the simplest is to use the Free (as in beer) EaseUS Partition Manager. To save you a lot of clicking, here’s the link to the CNET download site that it’ll eventually take you to.
When the application starts, click on Go to main screen
Click on the Partition you want to resize and then click on Resize/Move
Drag the little ball on the right side of the partition all the way to the end of the drive, then click on OK
I chose to shut down the VM when I was done, since it had to be restarted anyway for the changes to take effect.