Skip to content

Instantly share code, notes, and snippets.

@ettingshausen
Forked from Starefossen/gist:319f36ff30694a775806
Last active July 6, 2018 07:51
Show Gist options
  • Save ettingshausen/551e82913ba48c0b1b93805f742ef524 to your computer and use it in GitHub Desktop.
Save ettingshausen/551e82913ba48c0b1b93805f742ef524 to your computer and use it in GitHub Desktop.
Resize VirtualBox .vmdk disk
:: Clone the .vmdk image to a .vdi.
vboxmanage clonehd "virtualdisk.vmdk" "new-virtualdisk.vdi" --format vdi
:: Resize the new .vdi image (30720 == 30 GB).
vboxmanage modifyhd "new-virtualdisk.vdi" --resize 30720
:: Optional; switch back to a .vmdk.
VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment