Home Articles Increasing VDI file size on VirtualBox – part 1: using HDClone
Document Actions

Increasing VDI file size on VirtualBox – part 1: using HDClone

This little tutorial explains how to increase size of existing .vdi virtual hard drive file once the guest OS is already installed on it. I’ve taken a KISS approach describing each end every single step.

It doesn’t matter what is your operating system and what guest OS is running on VirtualBox. In my case I was running Windows XP on my computer and VB was running Ubuntu Linux as guest OS. I’ve been using HDClone 3.9 free edition and Oracle (formerly Sun) Virtual Box 3.2.6.

1. Download HDClone universal package that contains ISO bootable image.

2. Create new bigger .vdi hard drive image. Follow the standard VirtualBox procedure. I've used Fixed-size Storage not default Dynamically Expanding Storage.

3. Set new disk image as Primary Slave in VirtualBox's Storage section. New image as Primary Slave

4. Mount ISO with HDClone bootable disk inside virtual CD-ROM. Mounted HDClone

5. Change boot order inside System section to begin with CD-ROM before any hard drive. New VirtualBox boot order

6. Start Virtualbox.

7. Follow HDClone steps. Note: if you want to use mouse you need to select Machine -> Disable Mouse Integration or press Right Ctrl + I. Otherwise use Tab to navigate between controls, arrows to change options, and space to press the buttons.

7.1. Use default drive to drive copy mode. HDClone virtual disk cloning step 1

7.2. Select smaller drive as a source. HDClone virtual disk cloning step 2

7.3.. Select new large drive as target. HDClone virtual disk cloning step 3

7.4. No options need to be changed, but if you know what to do feel free to tinker with them. HDClone virtual disk cloning step 4

7.5. Choose Automatic adjustment of partition and press Apply. HDClone virtual disk cloning step 5

7.6. Confirm selections by pressing Start Copying . HDClone virtual disk cloning step 6

7.7. Make yourself a tea and watch the progress bar. HDClone virtual disk cloning step 7

7.8. After cloning finishes select option to adjust target automatically. HDClone virtual disk cloning step 8

7.9. You’re done. HDClone virtual disk cloning step 9

8. Shut down virtual machine.

9. Unmount HDClone from CD-ROM. Unmount HDClone from VirtualBox

10. Set new hard drive image as Primary Master. The old one can be removed. Start virtual machine. New hard drive set as Primary Master

I’ve started virtual machine and to my surprise disk still showed the same amount of empty space. I started Disk Utility and it showed that disk size changed but my partition was still 7.5GB and there is 18GB of unused space.

What happened then? Stay tuned for the second part of the article.

Sponsor

Advertisements

Tags