Steps to Increase .vdi VirtualBox Disk

Share this article :

Method 1

Shutdown the Virtual Machine before proceed to this activity.

Locate the VDI file which you wanted to increase. You can track the location by looking at the Storage > Information area (from the Virtual Machine > Settings).

VM Storage Location

Launch the Windows command prompt and navigate to the below directory (VirtualBox installation path),

cd C:\Program Files\Oracle\VirtualBox

In this example, the current VDI space is 25GB and we want to increase to 30GB – additional 5GB (The size will be in MB, 1024 x 30 = 30720). Execute the following command,

VBoxManage.exe modifyhd "C:\ITsiti\VM\Windows 7.vdi" --resize 30720

The output from the command,


You can now start up the Virtual Machine. Once connected, open the Disk Management (diskmgmt.msc). If you notice, the new space is still not added and you will see the additional 5GB (Unallocated). So, to merge the additional 5GB, right on C: drive and select Extend Volume.

Disk Management - Extend Volume

The Extend Volume Wizard will prompt out. Click Next.

Extend Volume Wizard - Welcome

Click Next.

Extend Volume Wizard - Select Disks

The disk increment is now complete.

Extend Volume Wizard - Complete

New disk added from My Computer.

Extend Volume Wizard - New Disk

For UNIX and Linux operating system, you can use GParted.

Method 2

This step is also applicable for Fixed storage type.

Clone the existing VDI disk with the below command,

 VBoxManage.exe clonehd "C:\VM\oldVM.vdi" "C:\VM\newVM.vdi"
Clone hard disk created in format 'VDI'. UUID: a2be8981-12bf-43ed-a71b-7d688

Next, resize the new VDI.

VBoxManage.exe modifyhd "C:\VM\newVM.vdi" --resize 32000

Open the VirtualBox Manager, highlight the Virtual Machine and go to Settings > Storage. Locate and choose the newly created VDI file. You can now start the virtual machine.

VirtualBox - Choose a Virtual HDD File

Related posts

Delete a VMware Workstation 7 Snapshot
VirtualBox Download, Installation & Virtual Machine Setup
VirtualBox: Your PC needs to restart. Error Code: 0x000000C4 (Windows 8)
VirtualBox: Failed to delete snapshot / Could not merger the medium
© 2018 ITsiti. All Rights Reserved
Powered by KEEM