$ VBoxManage modifyhd <absolute path to file> --resize <size in MB>
output
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%