关机情况下执行下面的命令,就能完成空间扩展
vboxmanage modifymedium centos7_2/centos7_2.vdi --resize 20480
root@habby:/var/virtualbox/centos7_2# vboxmanage modifymedium centos7_2/centos7_2.vdi --resize 20480
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%