Resizing VirtualBox VM on Linux Host
I'm needing more space for my Windows 7 virtual machine that is being hosted on my LinuxMint 17 laptop. Yup, the Window$ patches have piled up and are using a huge amount of space in my 50Gb VM. Micro$oft recommends that you don't remove these files. They hang around forever.
I've got my VM set up with a VMDK file. Resizing the VM ends up with an error message of 0%... Progress state: VBOX_E_NOT_SUPPORTED VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
Here's the steps it took to get it working. The trick is to get the VMDK converted over to a VDI and then join that to the VM.
- Open a terminal and change to your VirtualBox Virtual Machine directory.
- Change your VM by issuing this command:
vboxmanage clonehd "{YourVMMachine}.vmdk" --format VDI "{YourVMMachine}.vdi" - Resize your VM by issuing this command:
vboxmanage modifyhd --resize {NewSizeInMb such as 81920} "{YourVMMachine}.vdi"
In this example, I'm resizing this to 80Gb of space by entering "81920". - Start up the Oracle VM VirtualBox Manager
- Click on your VM, and then click on the "Storage" section.
- Click on the "Controller" section, and then click on the icon next to the "Hard Disk:" port. Select the "Choose a virtual hard disk file..." and choose your new VDI file.
- Choose the "OK" button to apply your changes.
I hope this helps you make the most of your VirtualBox VMs.