时间:2021-07-01 10:21:17 帮助过:5人阅读
VirtualBox是一款虚拟机,在Linux系统使用过程中会遇到VirtualBox虚拟机磁盘空间不够用的问题,遇到这种问题该如何解决呢?下面小编就教大家Linux如何更改VirtualBox虚拟机的磁盘容量。
1.启动CMD命令行,进入VirtualBox的安装目录。如
cd E:\Program Files\Oracle\VirtualBox
2.查看需要修改的虚拟硬盘:
E:\Program Files\Oracle\VirtualBox》VBoxManage.exe list hdds
UUID: e8e2c341-b3b1-49db-ad2d-ab4e6b08bc5a
Parent UUID: base
State: locked write
Type: normal (base)
Location: F:\VM\CentOS-64.vdi
Storage format: VDI
Capacity: 8000 MBytes
UUID: 707d45b6-380d-4e51-96bd-8c9508bfd313
Parent UUID: base
State: created
Type: normal (base)
Location: F:\VM\CentOS-64-ext.vdi
Storage format: VDI
Capacity: 21273 MBytes
UUID: aca81637-fbc0-4826-be66-847ecc96d83b
Parent UUID: base
State: created
Type: normal (base)
Location: C:\Users\Edward.Wu\VirtualBox VMs\WinXP\WinXP.vdi
Storage format: VDI
Capacity: 10240 MBytes
----
我们看到共有三个虚拟磁盘,我们要修改图中第一个,它的空间大小为8G,UUID:e8e2c341-b3b1-49db-ad2d-ab4e6b08bc5a
2. 调整磁盘空间为15G:
E:\Program Files\Oracle\VirtualBox》VBoxManage.exe modifyhd e8e2c341-b3b1-49db-ad2d-ab4e6b08bc5a --resize 150000%.。.10%.。.20%.。.30%.。.40%.。.50%.。.60%.。.70%.。.80%.。.90%.。.100%