shrinking HD using vboxmanage modifyhd sometimes does not work
Posted: 28. Feb 2017, 11:33
Hi, My Linux Host is Ubuntu. I increase my dynamic virtual box hard disk from 500,000 M to 500,200 M by implementing the command below:
the above command works fine. But, when I tried to shrink the hard disk back to 500,000 M, it shows the error message as below:
The command for above I have executed is .
I repeated the above command again and it works! When I wanted to further shrinked it, it shows the same error message again. I wonder what had actually happened that sometimes it works but sometimes does not work. The showhdinfo information after the only one time successful shrinking is as below:
UUID: 01f5b20e-ae04-4c84-b898-24d31472cdc4
Parent UUID: base
State: created
Type: normal (base)
Location: /home/louis[path][input].vdi
Storage format: VDI
Format variant: dynamic default
Capacity: 500000 MBytes
Size on disk: 122632 MBytes
Please see attachment for the screenshot.
Thank you.
Code: Select all
vboxmanage modifyhd [input].vdi --resize 500200Code: Select all
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
Code: Select all
vboxmanage modifyhd [input].vdi --resize 500000 --compact --type=normalI repeated the above command again and it works! When I wanted to further shrinked it, it shows the same error message again. I wonder what had actually happened that sometimes it works but sometimes does not work. The showhdinfo information after the only one time successful shrinking is as below:
UUID: 01f5b20e-ae04-4c84-b898-24d31472cdc4
Parent UUID: base
State: created
Type: normal (base)
Location: /home/louis[path][input].vdi
Storage format: VDI
Format variant: dynamic default
Capacity: 500000 MBytes
Size on disk: 122632 MBytes
Please see attachment for the screenshot.
Thank you.