Pages

Monday, July 28, 2014

Expanding VMDK disk under VirtualBox

Was trying to resize a VMDK disk and found out that the VBoxManage does not support VMDK as of yet (or my version of VirtualBox didn’t support it)

Important thing to take note when trying to resize !

  1. Resizing does not work if the guest has snapshots (prior to version 4.3.*)
  2. It will NOT work on Fixed drives
  3. VDI disk ONLY

*** after resize you NEED TO expand the partition using tools such as GParted !

image

Solution

  1. Shutdown the virtual machine
  2. Remove the virtual disk
  3. vboxmanage clonehd original.vmdk clone.vdi --format vdi
  4. vboxmanage modifyhd clone.vdi --resize 40960
  5. vboxmanage clonehd clone.vdi newdisk.vmdk --format vmdk

Finally download GParted Live CD and boot it up. Resize the partition and format it.

Done.

No comments:

Post a Comment