How to increase disk size in VirtualBox

If you need to increase disk size of a virtual machine setup in VirtualBox, you can use VBoxManage command line tool to do this.

VBoxManage modifyhd HardDisk.vdi --resize 51200

Command above would resize the disk to 50GB – resize parameter is in megabytes.

After resizing, you’ll need to boot into the host OS and either resize the primary partition or create a new partition in order to be able to use newly added disk space.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s