(OK) virtualbox — VBoxManage internalcommands — with UUID already exists
VirtualBox导入vdi文件时出现错误:
Cannot register the hard disk '/run/media/root/158a840e-63fa-4544-b0b8-dc0d40c79241/virtualbox-os/android-x86-6.0-rc1-1.vdi' {dbfc8e7b-4969-4836-86d9-418e60328b83} because a hard disk '/run/media/root/158a840e-63fa-4544-b0b8-dc0d40c79241/virtualbox-os/android-x86-6.0-rc1-2.vdi' with UUID {dbfc8e7b-4969-4836-86d9-418e60328b83} already exists.
返回 代码: |
NS_ERROR_INVALID_ARG (0x80070057) |
组件: |
VirtualBoxWrap |
界面: |
IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945} |
被召者 RC: |
VBOX_E_OBJECT_NOT_FOUND (0x80BB0001) |
解决办法:
[root@localhost virtualbox-os]# VBoxManage internalcommands sethduuid android-x86-6.0-rc1-1.vdi
UUID changed to: 865924c0-53b5-4aac-83b3-2402b33acdeb
[root@localhost virtualbox-os]# VBoxManage internalcommands dumphdinfo android-x86-6.0-rc1-1.vdi
--- Dumping VD Disk, Images=1
Dumping VD image "android-x86-6.0-rc1-1.vdi" (Backend=VDI)
Dumping VDI image "android-x86-6.0-rc1-1.vdi" mode=r/o uOpenFlags=9 File=0x00000001aadde0
Header: Version=00010001 Type=2 Flags=0 Size=5368709120
Header: cbBlock=1048576 cbBlockExtra=0 cBlocks=5120 cBlocksAllocated=5120
Header: offBlocks=1048576 offData=2097152
Header: Geometry: C/H/S=652/255/63 cbSector=512
Header: uuidCreation={865924c0-53b5-4aac-83b3-2402b33acdeb}
Header: uuidModification={aabd8849-dd74-4b16-aad3-3a446f64ffa4}
Header: uuidParent={00000000-0000-0000-0000-000000000000}
Header: uuidParentModification={00000000-0000-0000-0000-000000000000}
Image: fFlags=00010000 offStartBlocks=1048576 offStartData=2097152
Image: uBlockMask=000FFFFF cbTotalBlockData=1048576 uShiftOffset2Index=20 offStartBlockData=0
[root@localhost virtualbox-os]#