Gangmax Blog

自由之思想,独立之精神

Increase VirtualBox VDI Disk Image Size

| Comments

From here.

First, resize the VDI disk file.

1
2
3
4
5
6
7
8
# Using Linux as a Host:
VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB

# Using Mac as a Host:
/Applications/VirtualBox.app/Contents/MacOS/VBoxManage modifyhd YOUR_HARD_DISK.vdi –resize SIZE_IN_MB

# Using Windows as a Host:
C:\Program Files\Oracle\VirtualBox\VboxManage.exe modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB

Second, expend the partition of your VM with the increased disk space.

In Ubuntu, this can be done by “Disk Utility”. In Windows 7, this can be done by “Contol Panel -> Administrative Tools -> Computer Management -> Disk Management”.

If you can’t expend the partition where the OS is, please use GParted live CD to do so.

Comments