VirtualBox CentOS virtual machine system hard disk storage space expansion

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
Here Insert Picture Description
2, is set to be expanded to the size of the storage control, set /a 1024*30I have here a 30G
Here Insert Picture Description
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.
Here Insert Picture Description
4, found that Capacity has 12288M -> 30720M
Here Insert Picture Description
(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"

Published 131 original articles · won praise 81 · views 60000 +

Guess you like

Origin blog.csdn.net/weixin_43469047/article/details/104287278