Skip to content

Instantly share code, notes, and snippets.

@anselmobattisti
Last active September 24, 2020 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anselmobattisti/5c65cc61c51beb43eb98ffef0b833d83 to your computer and use it in GitHub Desktop.
Save anselmobattisti/5c65cc61c51beb43eb98ffef0b833d83 to your computer and use it in GitHub Desktop.
# Verify if the VDI can be resized using the command.
VBoxManage showhdinfo Ubuntu 19.04.vdi
# The result will be
UUID: 5a382024-85c8-4828-ac12-9a4f260ed8be
Parent UUID: base
State: created
Type: normal (base)
Location: Ubuntu 19.04.vdi
Storage format: VDI
Format variant: fixed default
Capacity: 30720 MBytes
Size on disk: 30722 MBytes
Encryption: disabled
Property: AllocationBlockSize=1048576
Note that the format variant is fixed, so you CAN'T RESIZE.
The only way i found to resize the disk was clonning the VDI file
VBoxManage clonehd Ubuntu 19.04.vdi Ubuntu 19.04_new.vdi
Resize the clone that by default will be "resizeable"
VBoxManage modifyhd Ubuntu 19.04_new.vdi --resize 50000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment