A, cmd under
Remember to turn off all virtual machines that are running, close virtualbox
1, and then go to the VirtualBox installation directory, open cmd, input
VBoxmanage showhdinfo "G:\15_Spark\Virtualbox镜像\CentOS1.vdi"
Remember to change your CentOS vdi file path.
It is observed that the current Capacity is 12288M, as 12G
2, is set to be expanded to the size of the storage control, set /a 1024*30
I have here a 30G
3, enter
VBoxManage modifymedium --resize 30720 "G:\15_Spark\Virtualbox镜像\CentOS1.vdi"
if there is no problem as follows, if a problem occurs, you may forget to turn off the virtual machine.
4, found that Capacity has 12288M -> 30720M
(and then you can see the following reference Bowen, knocking down all the way to the OK ! Be careful not to knock the wrong ) .
"[Solutions] virtual box Centos 7 root directory of the disk space is insufficient."
psftp transfer files, refer to "Linux virtual machine file transfer artifact psftp Usage"