Host: Windows 10 Pro (x64)
Guest: Windows Server 2016
Virtualbox: 5.1.14 r112924 (Qt5.6.2)
Basically, I had a 20GB dynamic .vhd file that was filling up rather quickly, so I wanted to increase the size to 30GB. However, I quickly ran into a problem where the modifymedium command would immediately generate an error and not complete. This persisted across normal and admin command prompts, and survived both a host restart and a repair reinstall of Virtualbox. Eventually, I did achieve the desired result with in the following sequence:
- Code: Select all Expand viewCollapse view
C:\Program Files\Oracle\VirtualBox>vboxmanage modifymedium C:\_dev\vm\Magus\Magus.vdi --resize 30720
VBoxManage.exe: error: Error: Attempt to resize the medium from 0.0 MB to 30720.0 MB. Use --resizebyte if this is intended!
C:\Program Files\Oracle\VirtualBox>vboxmanage modifymedium C:\_dev\vm\Magus\Magus.vdi --resizebyte 30720000000
Note: The second operation not exactly the 30 GB I had envisioned, but I was frustrated and just wanted to throw enough 0's after my original input to pass as a parameter. Thankfully, it was successful!
Anyway, I was thinking maybe the sanity check that got added to the --resize flag in the latest available version might be getting triggered incorrectly? Based on the current documentation, I'm not seeing what else might be going on with my input...