Increase Virtual Disk size in Virtualbox
Description
This Guide is about how to increase the disk image size.
Pre-Configuratin-Steps
- Turn off your virtual machine
- Use a Converter to get the right disk size you want: (e.g 12 gigs = 12288 megabytes) http://www.convertunits.com/from/MB/to/GB
Configuration
- Switch to your OMV Command Line. The --resize option uses megabytes so you have to have your gigs converted (if you haven´t already) https://forums.virtualbox.org/viewtopic.php?f=35&t=50661
- For example of command I used to increase my virtual disk to 12 gigs. The command is:
- VBoxManage modifyhd /media/YOUR_UUID/virtualbox-machines/OMVKrazilec/OMVKrazilec.vdi --resize 12288
- (Please make sure you choose the right directory. So you have to use your UUID of your RAID / your HDDs, of course!)
- Then you need to boot the virtal machine using a gparted ISO. You need to look a the partition size the swap is in and write it down and other pertinent info on the partion for the swap and swap.
- Delete the swap and the swap partition.
- Extend the boot partition but leave enough space to recreate the swap partition and swap.
- Recreate the swap partition and swap.
- Done.
Note: There are videos on how to use gparted on YouTube. If you need further guidance on Gparted watch some of those.
Questions / Problems / Discussions
If you encounter any problems, please create a post and referr to this guide.