Changes

Jump to: navigation, search

VirtualBox Extending Disk Size

437 bytes added, 08:28, 30 September 2014
m
no edit summary
to extend the standard NELK DVDK disk size from 16 GB to 20 GB. Please note that this works only with ''dynamic size'' disk image, and not with ''fixed size'' disk images (please refer to [[Convert from VMDK to VDI disk format]]). 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, [http://gparted.sourceforge.net/download.php Gparted]) and launch the partition tool and modify the partition structure.
 
== Convert from VMDK to VDI disk format ==
 
If the vmdk image file is already connected to a Virtual Machine, you should shutdown the VM and remove the vmdk file from the VM, since the conversion can't be done if the disk is attached. From the command line, use the VBoxManage as in the example below:
 
<pre>
$ VBoxManage clonehd --format VDI mydisk.vmdk mydisk.vdi
</pre>
 
Don't forget to re-attach the freshly created disk to the VM.

Navigation menu