Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ddpruitt/d9f4ce67c2e550847980d65aed466da9 to your computer and use it in GitHub Desktop.
Save ddpruitt/d9f4ce67c2e550847980d65aed466da9 to your computer and use it in GitHub Desktop.
Resize VirtualBox .vmdk disk
# http://www.midwesternmac.com/blogs/jeff-geerling/resizing-virtualbox-disk-image
# 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