先执行 VirtualBox list hdds 查看当前 VirtualBox 管理的虚拟磁盘. 获取磁盘的 uuid. 结果如下
- D:Program FilesOracleVirtualBox>VBoxManage.exe list hdds
- UUID: 3a28f0c2-c71a-4aeb-a1c4-30cb3294bb81
- Parent UUID: base
- Format: VDI
- Location: E:ubuntuubuntu.vdi
- State: locked write
- Type: normal
- Usage: Ubuntu 11.04 (UUID: a924a43f-7501-4c96-8be4-3a70fba0ade8)
然后执行命令 D:Program FilesOracleVirtualBox>VBoxManage.exe modifyhd 3a28f0c2-c71a-4aeb-a1
c4-30cb3294bb81 --resize 15360