类别:虚拟机 / 日期:2019-12-27 / 浏览:802 / 评论:0
假设虚拟机名字为”Oracle Linux 7.3”
1、停止虚拟机
2、扩大到50G
---------------------
C:\Users\<user>\VirtualBox VMs\Oracle Linux 7.3 ART>"C:\Program Files\Oracle\VirtualBox\VBoxManage" modifymedium "Oracle Linux 7.3.vdi" --resize 51200
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
----------------------
注意: --resize后面的单位是M, (windows Command可以使用set/a 50*1024计算)
3(可选)、查看硬盘空间:
---------------------------------------
C:\Users\<user>\VirtualBox VshMs\Oracle Linux 7.3>"C:\Program Files\Oracle\VirtualBox\VBoxManage" showhdinfo "Oracle Linux 7.3.vdi"
UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Parent UUID: base
State: locked write
Type: normal (base)
Location: C:\Users\<user>\VirtualBox VMs\Oracle Linux 7.3\Oracle Linux 7.3.vdi
Storage format: VDI
Format variant: dynamic default
Capacity: 51200 MBytes
Size on disk: 29812 MBytes
Encryption: disabled
In use by VMs: Oracle Linux 7.3(UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
------------------------------------------
或者这里也可以查看(是另一台虚拟机,增加到了60G)