问题描述
创建虚拟机时,选择的硬盘空间小,随着使用内存空间占用变得变少,进入虚拟机,会提醒“Low disk space on “Filesystem root””
解决方法[1]
- Open cmd as administrator.
- Go to the folder where the VirtualBox is installed so you can use the VBoxManage program.
- From there, run the following command:
VBoxManage modifyhd <file path and name> --resize <size in MB>
e.g.: VBoxManage modifyhd C:\V-MACHINES\SERVER2008\WIN-2008.VDI --resize 26000
<file path and name>
可以在 Virtual box 设置中找到

-
You will see a message from 0 to 100% and done.
-
Start your machine and go to "Computer" (or "My Computer", if applicable), right click and select "Manage", go to "Storage" → "Disk Management", right click on the disk you want to expand, click on "Extend Volume" and resize the disk as you wish.
-
If necessary restart the VM.