增加 VirtualBox 虚拟机硬盘尺寸

以将 Debian9 增加到20G(20 x 1024M)为例:

C:\Program Files\Oracle\VirtualBox>vboxmanage list hdds

UUID: 335772b1-7bba-46e6-a41f-85ae801b8133
Parent UUID: base
State: created
Type: normal (base)
Location: D:\vm\Debian9\Debian9.vdi
Storage format: VDI
Capacity: 8192 MBytes
Encryption: disabled

VBoxManage modifyhd 335772b1-7bba-46e6-a41f-85ae801b8133 –resize 20480
0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%