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 <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 设置中找到

VDI 安装路径
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.
    image

  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). ↩︎


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM