﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
16402,Exported appliances with more than 10 disks fail to import,isharacomix,,"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>
}}}
",defect,closed,other,VirtualBox 5.1.14,fixed,,,other,other
