Skip to main content

Posts

Showing posts from June, 2014

Increasing Virtualbox disk size (Increasing VHD size without cloning)

Lets just face it, I like VirtualBox. I have used it in numerous occasions, back from the days when it was offered by Innotek, to Sun and now Oracle. Yeah it always was a less powerful than Vmware in some areas, but when i don't need them this was as good (or maybe sometimes better) than Vmware for my basic sandboxing needs! But sometimes I find myself in a problem which the GUI isn't always helpful for me. One of them is when in an active Virtual Machine I run out of diskspace. There are a number of ways to increase harddisk size without destroying your data, but most of them involve cloning or copying your data to a new vdi. Though they are also relatively painless I found a much more easier solution. Or rather a one liner The following command will operate on the VirtualBox virtual disk located at “C:\Users\rk\VirtualBox VMs\Windows 7\Windows 7.vdi”. It will resize the virtual disk to 21920 MB (20 GB). VBoxManage modifyhd “C:\Users\rk\VirtualBox VMs\Windows 7\Wi