Skip to content

Instantly share code, notes, and snippets.

@tjoskar
Last active August 29, 2015 14:00
Show Gist options
  • Save tjoskar/11364461 to your computer and use it in GitHub Desktop.
Save tjoskar/11364461 to your computer and use it in GitHub Desktop.
Increase VirtualBox HDD Size

Create a new disk

  1. Turn off your guest OS
  2. Launch VirtualBox. Click on "Settings" for the virtual machine you want to change.
  3. Click on "Storage" on the left side.
  4. Click the icon that looks like a spindle of discs with a green plus sign next to "SATA Controller" (or whatever you use). "Add Hard Disk"
  5. Click the "Create New Disk" button
  6. Select "VDI (VirtualBox Disk Image" and click "Next"
  7. Click "Dynamically Allocated" and then click "Next"
  8. Select size and click "Create"
  9. Select the original virtual hard drive, and click "Remove Attachment"
  10. If you use IDE: Click the new virtual hard drive and select "IDE Primary Master"
  11. Click "OK"
  12. Run (this will take some time):
$ VBoxManage clonehd "full path to old virtual hard drive" "full path to new virtual hard drive" --existing

Boot your guest machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment