Today I had solved a very common problem and I want to share with folks: “How to EASILY expand the HD size from my Win7 in a VirtualBox”.
IMPORTANT 1: Close the running VM!!
IMPORTANT 2: Backup the HD imagem before starting:
tar -cvzf <bkp_name>.tar.gz <hd_name>.vdi
Resizing the HD in 4 steps:
1) In the linux terminal run:
VBoxManage modifyhd <hd_name>.vdi --resize <size_in_MB>
2) Start the windows and go: Control Panel -> Administrative Tools -> Computer Management -> Disk Management. With the right button over the Disk 0 image, click to “Convert to Dynamic Disk” (IMPORTANT: See Note).
3) Reboot the windows
4) Once again go to: Control Panel -> Administrative Tools -> Computer Management -> Disk Management. Right click over the C: partition, click on “Extand volume…” and do the windows process (OK, OK, OK…)
If you convert the HD to the same size or a smaller size it probabily will crash your HD, so you must resize the HD to one at least 5 or 10 Gb bigger.
Thanks to my friend Marcelo Gomes, who gave me the tips: Marcelo’s Blog (Blog in portugueses).