Opened 8 years ago
Closed 8 years ago
#16402 closed defect (fixed)
Exported appliances with more than 10 disks fail to import
Reported by: | isharacomix | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 5.1.14 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description
I generate an appliance with 12 VMs and export it as an OVA package. Whenever I attempt to import the OVA, I get an error. However, if I extract the OVA and then attempt to import the OVF that was inside, it succeeds.
The error I get when importing the OVA with 12 VMs is:
Progress state: NS_ERROR_FAILURE VBoxManage: error: Appliance import failed VBoxManage: error: <vbox:Machine> element in OVF contains a medium attachment for the disk image c3bc5986-6257-4534-85f4-caa6190e67d4 but the OVF describes no such image VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ApplianceWrap, interface IAppliance VBoxManage: error: Context: "RTEXITCODE handleImportAppliance(HandlerArg *)" at line 886 of file VBoxManageAppliance.cpp
I think it might have something to do with sorting the files by alphanumeric value. If I add a leading zero to all of the vdisk files with a single digit, replace the filenames appropriate section in the OVF file, and then re-package the OVA, it works.
<References> <File ovf:href="Appliance-disk01.vmdk" ovf:id="file1"/> <File ovf:href="Appliance-disk10.vmdk" ovf:id="file2"/> <File ovf:href="Appliance-disk11.vmdk" ovf:id="file3"/> <File ovf:href="Appliance-disk12.vmdk" ovf:id="file4"/> <File ovf:href="Appliance-disk02.vmdk" ovf:id="file5"/> <File ovf:href="Appliance-disk03.vmdk" ovf:id="file6"/> <File ovf:href="Appliance-disk04.vmdk" ovf:id="file7"/> <File ovf:href="Appliance-disk05.vmdk" ovf:id="file8"/> <File ovf:href="Appliance-disk06.vmdk" ovf:id="file9"/> <File ovf:href="Appliance-disk07.vmdk" ovf:id="file10"/> <File ovf:href="Appliance-disk08.vmdk" ovf:id="file11"/> <File ovf:href="Appliance-disk09.vmdk" ovf:id="file12"/> </References>
Attachments (1)
Change History (6)
follow-up: 2 comment:1 by , 8 years ago
comment:2 by , 8 years ago
Replying to socratis:
Just to be clear: are you sure that you didn't want to say "12 VMDKs" instead of "12 VMs"?
Ah yes, that would be more accurate. Twelve VMs, each with one VMDK.
by , 8 years ago
Attachment: | Appliance.ovf added |
---|
follow-up: 4 comment:3 by , 8 years ago
hello, would you run "tar -tvf" for your repacked OVA package and upload output here? The uploaded Appliance.ovf is from the repacked OVA, isn't it?
comment:4 by , 8 years ago
Replying to VVP:
hello, would you run "tar -tvf" for your repacked OVA package and upload output here? The uploaded Appliance.ovf is from the repacked OVA, isn't it?
Correct. The OVF I uploaded is after my modification. Below find the tar -tvf output of both the old and the new OVAs.
~/Documents/vboxtesting$ tar -tvf old.ova -rw------- 0 someone someone 201032 Jan 18 17:53 Appliance.ovf -rw------- 0 someone someone 500916224 Jan 18 17:53 Appliance-disk1.vmdk -rw------- 0 someone someone 545779712 Jan 18 17:54 Appliance-disk10.vmdk -rw------- 0 someone someone 546102784 Jan 18 17:55 Appliance-disk11.vmdk -rw------- 0 someone someone 953539584 Jan 18 17:56 Appliance-disk12.vmdk -rw------- 0 someone someone 520024576 Jan 18 17:57 Appliance-disk2.vmdk -rw------- 0 someone someone 519927808 Jan 18 17:58 Appliance-disk3.vmdk -rw------- 0 someone someone 489126912 Jan 18 17:58 Appliance-disk4.vmdk -rw------- 0 someone someone 545768448 Jan 18 17:59 Appliance-disk5.vmdk -rw------- 0 someone someone 545740800 Jan 18 18:00 Appliance-disk6.vmdk -rw------- 0 someone someone 545541632 Jan 18 18:00 Appliance-disk7.vmdk -rw------- 0 someone someone 545580032 Jan 18 18:01 Appliance-disk8.vmdk -rw------- 0 someone someone 545779200 Jan 18 18:02 Appliance-disk9.vmdk ~/Documents/vboxtesting$ tar -tvf new.ova -rw------- 0 bwpeddyc staff 201041 Jan 18 18:43 Appliance.ovf -rw------- 0 bwpeddyc staff 500916224 Jan 18 17:53 Appliance-disk01.vmdk -rw------- 0 bwpeddyc staff 520024576 Jan 18 17:57 Appliance-disk02.vmdk -rw------- 0 bwpeddyc staff 519927808 Jan 18 17:58 Appliance-disk03.vmdk -rw------- 0 bwpeddyc staff 489126912 Jan 18 17:58 Appliance-disk04.vmdk -rw------- 0 bwpeddyc staff 545768448 Jan 18 17:59 Appliance-disk05.vmdk -rw------- 0 bwpeddyc staff 545740800 Jan 18 18:00 Appliance-disk06.vmdk -rw------- 0 bwpeddyc staff 545541632 Jan 18 18:00 Appliance-disk07.vmdk -rw------- 0 bwpeddyc staff 545580032 Jan 18 18:01 Appliance-disk08.vmdk -rw------- 0 bwpeddyc staff 545779200 Jan 18 18:02 Appliance-disk09.vmdk -rw------- 0 bwpeddyc staff 545779712 Jan 18 17:54 Appliance-disk10.vmdk -rw------- 0 bwpeddyc staff 546102784 Jan 18 17:55 Appliance-disk11.vmdk -rw------- 0 bwpeddyc staff 953539584 Jan 18 17:56 Appliance-disk12.vmdk
Just to be clear: are you sure that you didn't want to say "12 VMDKs" instead of "12 VMs"?