Last active
March 10, 2023 06:27
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
compact.sh is available here.