How to Resize VirtualBox Hard Disk (vdi file) – VirtualBox resize hard disk error: VBOX_E_NOT_SUPPORTED
When trying to resize the size of my VDI to 80GB with this command:
I ran into this error:
After some research, I found that if you set your VDI properties as Fixed when initially setting up your VirtualBox image, it cannot be resized directly through VirtualBox. You can however resize this via the command prompt using VBManage command in the VirtualBox folder.
Step 1: Open up a Command Prompt window and navigate to the VirtualBox folder
Step 2: Since resize only supports dynamic VDI’s, we will need to verify that your vdi file format is Fixed default with the following command:
Step 3: Cloning your vdi file will automatically convert this to dynamic and you can do this with the following command:
Step 4: After conversion, you can re-run the first command to resize the vdi file.
Step 5: Finally, after this is completed, you will need to unmount the old VDI file and mount the cloned and resized VDI file to your VM:
– Right-click on the VM and click on Settings
– Click on the Storage tab
– Click on your vdi and then click on the Disk icon next to the dropdown in the Attributes section, click Choose File and choose your cloned VDI file.