- Shutdown the virtual machine where you want to resize the virtual disk
- Open Oracle VM VirtualBox Manager
- Highlight the virtual machine where you want to resize the virtual disk
- Click the Settings ribbon bar button
- In the virtual machine settings window, click Storage at the left bar menu
- In the Storage Tree section, highlight the virtual disk that you want to resize
- In the Information section, right-click the file path after Location:
- Click Copy
- Open the Command Prompt (Windows)/Terminal (Linux)
- Type the following commandvboxmanage modifyhd {location-path} --resize {size}
{size} is the new virtual disk size in megabytes (for example: 1 Gb = 1024 Mb)
Example:
I want to resize my virtual disk to 100 Gb:
vboxmanage modifyhd "H:\VMs\Guest#1.vdi" --resize 102400