Virtualbox 虚拟机扩容,解决 Low disk space on “Filesystem root”问题


问题描述

创建虚拟机时,选择的硬盘空间小,随着使用内存空间占用变得变少,进入虚拟机,会提醒“Low disk space on “Filesystem root””

解决方法[1]

  1. Open cmd as administrator.
  2. Go to the folder where the VirtualBox is installed so you can use the VBoxManage program.
  3. From there, run the following command:
VBoxManage modifyhd  --resize 
e.g.: VBoxManage modifyhd C:\V-MACHINES\SERVER2008\WIN-2008.VDI --resize 26000

可以在 Virtual box 设置中找到

VDI 安装路径
  1. You will see a message from 0 to 100% and done.

  2. 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.

  3. If necessary restart the VM.


  1. https://superuser.com/questions/172651/increasing-disk-space-on-virtualbox#:~:text=This worked perfectly (from Windows 7 and using VirtualBox 4.x). ??