VirtualBox Expand VMDK

less than 1 minute read

Description:

Not sure where or how I got a VMDK file as a VM, because I usually use VDI’s, but for some reason I had one. Follow this post to expand its disk by converting it to VDI and then expanding it.

Description:

  1. In Virtualbox, shutdown the VM and remove the disk from Virtual Media Manager and the VM.

  2. Create a batch file and place as many disk and stuff that you want to convert:

    1
    2
    3
    4
    
    echo "converting to vdi"
    VBoxManage clonehd --format VDI Z:\virtualbox\yourdisk.vmdk Z:\virtualbox\yourdisk.vdi
    echo "resizing vdi"
    VBoxManage modifyhd Z:\virtualbox\yourdisk.vdi --resize 120000
    
  3. In Virtualbox, re-attach the new disk. Not sure if this will screw with Windows Activation since I believe my example was a linux VM.

Comments