Skip to content

Instantly share code, notes, and snippets.

@lee-pai-long
Last active January 20, 2016 18:00
Show Gist options
  • Save lee-pai-long/96e56c1da9e531d2c22d to your computer and use it in GitHub Desktop.
Save lee-pai-long/96e56c1da9e531d2c22d to your computer and use it in GitHub Desktop.

[VIRTUALBOX] Resize vmdk

$ vboxmanage clonehd </path/to/disk.vmdk> <path/to/clone.vdi> --format vdi && \
> vboxmanage modifyhd /path/to/clone.vdi --resize XXXXXX && \
> vboxmanage clonehd /path/to/clone.vdi /path/to/disk.vmdk --format vmdk
  • XXXXX is the desired size in MB
  • Be sure to replace / by \ in paths on Windows

Make sure the disk is attached to the box and boot it, then extend the partition :

  • In linux use parted or Gparted
  • In Windows use Disk Management under My Computer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment