VirtualBox Extending Disk Size

From DAVE Developer's Wiki
Revision as of 15:56, 4 June 2012 by SampleUser (talk | contribs) (Created page with "{{InfoBoxTop}} {{Applies_To_DVDK}} {{InfoBoxBottom}} == Resize a VirtualBox HD partition == The '''virtual''' disk drive included in the DVDK has a default size that should ...")

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Info Box
VirtualMachine.png Applies to DVDK

Resize a VirtualBox HD partition[edit | edit source]

The virtual disk drive included in the DVDK has a default size that should fit well for typical development tasks. Anyway, in some particular situations, you could run out of free space on the virtual machine. If you have enough free space on your physical hard drive, you can extend the virtual drive size by using the following commands:

VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB

For example, you can run

VBoxManage modifyhd NELK.vdi --resize 20000

to extend the standard NELK DVDK disk size from 16 GB to 20 GB. Please note that this command doesn't automatically extend the partition size. In order to do that, you need to modify the disk partition table. But since the virtual disk contains the root partition, you can't edit the partition table, because you can do such an operation only on a un-mounted device. So you need to start the virtual machine with a Live Linux distribution (for example, Gparted) and launch the partition tool and modify the partition structure.