Tuesday, February 13, 2018

Resize VMDK

How to resize vmdk / VDI ?

vboxmanage modifyhd Windows7.vmdk --resize 30720
gives the error
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!


As u know, resizing of vmdk is tough then VDI, 


So its simple to

  • Change the disk format VMDK to VDI first, 
  • Resizi it, and 
  • Change the format VDI to VMDK again
Now use these commands:-
VBoxManage clonehd "source.vmdk" "cloned.vdi" --format vdi
VBoxManage modifyhd "cloned.vdi" --resize 31720
VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk
The above will resize the hard disk up to 30GB (30 * 1024MB). 


0 comments: