How to expand VirtualBox's Virtual Hard Disk
Last month, I was trying to expand my Ubuntu 12.04 Guest OS's virtual hard disk size from 8 GB to 30 GB. After some time I realized that the process is not so straight forward. Finally I relied on two blog posts to finish my task. As mentioned in the first article, it's important to understand the prerequisites. Prerequisites: Make sure you have the VBoxManage command-line tool installed on your host system. Download the ISO for a GParted Live CD or else a Linux Live CD using a Linux distribution that includes the GParted partition editor utility. IMPORTANT: If the virtual disk you want to resize is attached to a virtual machine with snapshots, you will need to delete these snapshots so that all disk state information is merged into the base virtual disk VDI file. I was using VirtualBox 4.3.4. And, I partitioned the virtual hard disk by using GParted. Somehow, Linux Live CD didn't work for me. A...