Created
March 29, 2021 10:23
-
-
Save messaoudi-mounir/a607d8d3818b833b4e05cfc92c9cc944 to your computer and use it in GitHub Desktop.
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
# Clone the .vmdk image to a .vdi. | |
vboxmanage clonehd "virtualdisk.vmdk" "new-virtualdisk.vdi" --format vdi | |
# Resize the new .vdi image (30720 == 30 GB). | |
vboxmanage modifyhd "new-virtualdisk.vdi" --resize 30720 | |
# Optional; switch back to a .vmdk. | |
VBoxManage clonehd "new-virtualdisk.vdi" "resized-virtualdisk.vmdk" --format vmdk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment