VirtualBox 虚拟硬盘不能扩大(出错:VBOX_E_NOT_SUPPORTED)的解决办法
$ vboxmanage modifyhd "/home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB.vdi" --resize 120000
0%...VBOX_E_NOT_SUPPORTED
VBoxManage: error: Failed to resize medium
VBoxManage: error: Resizing to new size 125829120000 is not yet supported for medium '/home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB.vdi'
VBoxManage: error: Details: code VBOX_E_NOT_SUPPORTED (0x80bb0009), component MediumWrap, interface IMedium
VBoxManage: error: Context: "RTEXITCODE handleModifyMedium(HandlerArg*)" at line 941 of file VBoxManageDisk.cpp
[wenxue@dad5600 ~]$ cd /home/wenxue/VirtualBox\ VMs/WIN7X64VB/
[wenxue@dad5600 WIN7X64VB]$ vboxmanage modifyhd "/home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB.vdi" --resize 120000
0%...VBOX_E_NOT_SUPPORTED
VBoxManage: error: Failed to resize medium
VBoxManage: error: Resizing to new size 125829120000 is not yet supported for medium '/home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB.vdi'
VBoxManage: error: Details: code VBOX_E_NOT_SUPPORTED (0x80bb0009), component MediumWrap, interface IMedium
VBoxManage: error: Context: "RTEXITCODE handleModifyMedium(HandlerArg*)" at line 941 of file VBoxManageDisk.cpp
[wenxue@dad5600 WIN7X64VB]$ vboxmanage showhdinfo "/home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB.vdi"
UUID: e4a3****-5***-46**-bd**-20****d1
Parent UUID: base
State: created
Type: normal (base)
Location: /home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB.vdi
Storage format: VDIFormat variant: fixed default
Capacity: 61440 MBytes
Size on disk: 61442 MBytes
Encryption: disabled
Property: AllocationBlockSize=1048576
In use by VMs: WIN7X64VB (UUID: 4e4a3****-5***-46**-bd**-20****d14)
[wenxue@dad5600 WIN7X64VB]$ VBoxManage clonehd "/home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB.vdi" "/home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB_120.vdi"
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone medium created in format 'VDI'. UUID: 96fe4a3****-5***-46**-bd**-20****d16f0
[wenxue@dad5600 WIN7X64VB]$ vboxmanage showhdinfo "/home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB_120.vdi"
UUID: 96fe4a3****-5***-46**-bd**-20****d16f0
Parent UUID: base
State: created
Type: normal (base)
Location: /home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB_120.vdi
Storage format: VDI
Format variant: dynamic default
Capacity: 61440 MBytes
Size on disk: 53144 MBytes
Encryption: disabled
Property: AllocationBlockSize=1048576
[wenxue@dad5600 WIN7X64VB]$
[wenxue@dad5600 WIN7X64VB]$ vboxmanage modifyhd "/home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB_120.vdi" --resize 120000
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
[wenxue@dad5600 WIN7X64VB]$ vboxmanage showhdinfo "/home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB_120.vdi"
UUID: 96fe4a3****-5***-46**-bd**-20****d16f0
Parent UUID: base
State: created
Type: normal (base)
Location: /home/wenxue/VirtualBox VMs/WIN7X64VB/WIN7X64VB_120.vdi
Storage format: VDI
Format variant: dynamic default
Capacity: 120000 MBytes
Size on disk: 53144 MBytes
Encryption: disabled
Property: AllocationBlockSize=1048576
[wenxue@dad5600 WIN7X64VB]$
克隆之后, 固定大小的虚拟硬盘就被克隆成了“动态”大小的虚拟硬盘。也因此可以扩大了。
接着, 用 GUI 切换一下虚拟硬盘影像就好了。
进入 WINDOWS 之后, 可能会被提示要重启。
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://sg.hqyman.cn/post/9109.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~