In my case, I'm using a Windows 7 guest OS inside a Windows 7 host OS. I do the following:
- Shutdown the guest machine
- Start a command prompt and type the following:
- "c:\Program Files\Oracle\VirtualBox"\vboxmanage modifyhd Win7CppDev.vdi --resize 30720
- You should be able to confirm that the drive is larger in File > Media Manager.
- Boot the guest VM
- Start Computer Management > Storage > Disk Management
- Use "Extend Volume..." on C: partition to use the newly unallocated partition space.
- Restart guest OS for good measure, even though I don't think it is needed.
Congratulations, you now have more space.