我使用此命令创建了ova文件
> vboxmanage export asr_3.7.0 --output
> /home/asr/workspace/asr/virtualbox/asr-sandbox-3.7.0.ova --vsys 0
> --product 'My Sandbox' --version 3.7.0 --description 'asr Sandbox for Release 3.7.0'
在此之前我执行vmdk到vdi转换以进行磁盘压缩。
现在当我导入这个ova文件时,它显示它有2个相同大小的硬盘映像,如步骤17和18所示。
vboxmanage import asr-sandbox-3.7.0.ova
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /home/ankit/asr-sandbox-3.7.0.ova...
OK.
Disks: vmdisk2 68719476736 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized asr-sandbox-3.7.0-disk1.vmdk -1 -1 vmdisk3 68719476736 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized asr-sandbox-3.7.0-disk2.vmdk -1 -1
Virtual system 0:
0: Suggested OS type: "Ubuntu_64"
(change with "--vsys 0 --ostype <type>"; use "list ostypes" to list all possible values)
1: Suggested VM name "dtbox_3.7.0"
(change with "--vsys 0 --vmname <name>")
2: Product (ignored): asr Sandbox
3: Vendor (ignored): asr
4: Version (ignored): 3.7.0
7: Description "asr Sandbox for RTS Release 3.7.0"
(change with "--vsys 0 --description <desc>")
8: Number of CPUs: 1
(change with "--vsys 0 --cpus <n>")
9: Guest memory: 4096 MB
(change with "--vsys 0 --memory <MB>")
10: Sound card (appliance expects "", can change on import)
(disable with "--vsys 0 --unit 10 --ignore")
11: USB controller
(disable with "--vsys 0 --unit 11 --ignore")
12: Network adapter: orig NAT, config 3, extra slot=0;type=NAT
13: CD-ROM
(disable with "--vsys 0 --unit 13 --ignore")
14: IDE controller, type PIIX4
(disable with "--vsys 0 --unit 14 --ignore")
15: IDE controller, type PIIX4
(disable with "--vsys 0 --unit 15 --ignore")
16: SATA controller, type AHCI
(disable with "--vsys 0 --unit 16 --ignore")
17: Hard disk image: source image=asr-sandbox-3.7.0-disk1.vmdk, target path=/home/asr/VirtualBox VMs/asr_3.7.0/asr-sandbox-3.7.0-disk1.vmdk, controller=16;channel=1
(change target path with "--vsys 0 --unit 17 --disk path";
disable with "--vsys 0 --unit 17 --ignore")
18: Hard disk image: source image=asr-sandbox-3.7.0-disk2.vmdk, target path=/home/asr/VirtualBox VMs/asr_3.7.0/asr-sandbox-3.7.0-disk2.vmdk, controller=16;channel=0
(change target path with "--vsys 0 --unit 18 --disk path";
disable with "--vsys 0 --unit 18 --ignore")
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully imported the appliance.
我不确定为什么我会看到2个磁盘。
原谅我傻傻的错误,我是新手。
答案 0 :(得分:0)
实际上,当我创建VM时,它已经附加了vmdk磁盘。 后来我从vmdk创建了vdi磁盘,然后将它附加到我的虚拟机。 我没有从我的VM中分离出vmdk,这就是我在我的VM上有两个相同磁盘的原因。