Skip to content

Instantly share code, notes, and snippets.

@weaponsforge
Last active March 10, 2023 06:27
Show Gist options
  • Save weaponsforge/4529ff5db29a0c99d4aeaa0053b71642 to your computer and use it in GitHub Desktop.
Save weaponsforge/4529ff5db29a0c99d4aeaa0053b71642 to your computer and use it in GitHub Desktop.
Compact/compress the size of an Ubuntu VDI file on VirtualBox running in a Windows host
:: Compact/compress the size of an Ubuntu VDI file on VirtualBox (v7.0) running in a Windows host
:: The VDI file should should have previously run "compact.sh" in the VM before running this script
:: Add VBoxManage.exe to the PATH variable to make it globally available. Usually it's in
:: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
VBoxManage.exe modifymedium --compact c:\path\to\thedisk.vdi
@weaponsforge
Copy link
Author

compact.sh is available here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment