Created
November 8, 2013 09:54
-
-
Save hanbzu/7368800 to your computer and use it in GitHub Desktop.
VirtualBox: Adding more disk space to a VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a short walk through adding more disk space | |
| # in a VirtualBox machine. There's good detailed information here: | |
| # http://trivialproof.blogspot.com.es/2011/01/resizing-virtualbox-virtual-hard-disk.html | |
| # Change to where your VirtualBox VMs are. For a Linux distribution it could be: | |
| cd ~/VirtualBox\ VMs/ | |
| # Find the name of the virtual machine you want to resize | |
| cd YOUR_VIRTUAL_MACHINE | |
| # Resize the VDI file. For example --resize 46080 would allocate 45 Gb of space | |
| VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB | |
| # We're not done yet: You have to expand the partition in the larger virtual disk | |
| # To do so, book with a GParted LIVE ISO: Settings → Storage and load your ISO | |
| # Boot up so the VM will boot with CD/DVD (In our case the GParted ISO). | |
| # In GParted you'll have to make your partition bigger to use all the | |
| # empty space that is now available. Then shut down GParted iso, remove | |
| # the iso from 'Storage' and boot your VM normally with the new disk space |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment