Page 1 of 2

Can't Import OVF - Error in File

Posted: 17. Oct 2013, 21:45
by MartinVipond
Seems like this file may need to be configured. But I'm not sure. Can anyone verify what this error is telling me?

-------------------------------------------------------
Failed to import appliance /Users/admin/Downloads/K2000_REMOTE_3.5.75627/K2000_REMOTE_3.5.75627.ovf.

Error reading"/Users/admin/Downloads/K2000_REMOTE_3.5.75627/K2000_REMOTE_3.5.75627.ovf": element "Section" has no "type" attribute, line 18.

Result Code: VBOX_E_FILE_ERROR (0x80BB0004)
Component: Appliance
Interface: IAppliance {3059cf9e-25c7-4f0b-9fa5-3c42e441670b}

-------------------------------------------------------

Re: Can't Import OVF - Error in File

Posted: 29. Oct 2013, 13:11
by anagfar
Same happen to me, someone know how to fix it?. :-(

Thank you!

Re: Can't Import OVF - Error in File

Posted: 29. Oct 2013, 14:13
by mpack
Is the error message wrong? You can look at the ovf with any text editor if you want to verify it yourself.

Re: Can't Import OVF - Error in File

Posted: 6. Nov 2013, 17:08
by Gerhard G.
Having received the same error message when attempting to import an OVA file created by VMWare Workstation 7.1, I noticed the "Section" elements in the contained OVF file have "xsi:type" attributes.

Re: Can't Import OVF - Error in File

Posted: 7. Nov 2013, 11:14
by Akenine
Same Problem here. I'm trying to import the icinga OVA image (available on their sourceforge page, I used virtualbox-icinga-1.8.1-0.3-demo-centos6.ova)
It's in OVA Version 0.9

Error Message:
Failed to import appliance C:\...\virtualbox-icinga-1.8.1-0.3-demo-centos6.ova.

Error reading "C:\...\virtualbox-icinga-1.8.1-0.3-demo-centos6.ova": element "Section" has no "type" attribute, line 18.

Result Code: VBOX_E_FILE_ERROR (0x80BB0004)
Component: Appliance
Interface: IAppliance {3059cf9e-25c7-4f0b-9fa5-3c42e441670b}
If I open the file with an editor, the <Section> does have a type attribute:

Code: Select all

...
    <Section xsi:type="ovf:ProductSection_Type">
      <Info>Meta-information about the installed software</Info>
      <Product>Icinga Monitoring Server</Product>
      <Vendor>David Gerbec</Vendor>
      <Version>1.8.1-0.3</Version>
      <ProductUrl>...</ProductUrl>
      <VendorUrl>...</VendorUrl>
    </Section>
....
(had to obfusicate urls because of forum restrictions)

I tried deleting the section, but the every subsequent section produces the same error.

VirtualBox 4.3.2

Re: Can't Import OVF - Error in File

Posted: 7. Nov 2013, 12:23
by mpack
No, it has an "xsi:type" attribute. If the name is different then it (ahem) isn't the same. You need to go back to the originator and ask what this OVF is for, since it clearly isn't designed for greatest portability to other VM platforms.

You can however raise this as a BugTracker ticket, which might encourage the devs to investigate this OVF/XML variant. It would still be helpful to know where it came from.

In the meantime I guess you could try deleting the "xsi:" bit, or even the entire element since it seems to contain only metadata.

Re: Can't Import OVF - Error in File

Posted: 11. Nov 2013, 12:32
by Akenine
shouldn't it be an xsi:type attribute? otherwise the xml isn't valid...

see the specs: http://www.vmware.com/pdf/ovf_whitepape ... cation.pdf

EDIT:
created ticket
https://www.virtualbox.org/ticket/12345

Re: Can't Import OVF - Error in File

Posted: 11. Nov 2013, 12:54
by mpack
Hmm. Yes, it looks like you may be right. We'll see what the devs say, since it's hard to see why xml parsing would have changed.

Re: Can't Import OVF - Error in File

Posted: 17. Nov 2013, 05:35
by copeland3300
The issue from what I could tell is incomptible XML tags in the ovf file.

I created a Windows XP OVA on 4.2.xx, and I'm having issues importing it in 4.3.xx

I got the error and changed some lines. Make sure your closing tags are correct.

<Section xsi:type="ovf:OperatingSystemSection_Type" ovf:id="67">
to
<OperatingSystemSection ovf:id="67">

(find the corresponding </Section> tag and change it to </OperatingSystemSection>

and

<Section xsi:type="ovf:VirtualHardwareSection_Type">
to
<VirtualHardwareSection>

(find the corresponding </Section> tag and change it to </VirtualHardwareSection>

This seemed to fix it.

Re: Can't Import OVF - Error in File

Posted: 21. Nov 2013, 09:06
by Akenine
These tags would be valid for OVF 0.9, see the link to the specs in my previous post.

But thanks for the workaround, I will try if it helps for my image.

Re: Can't Import OVF - Error in File

Posted: 25. Nov 2013, 13:38
by GabrieleV
As in ticket #12345, the problem is in the XML parser: if you try to export any virtual machine in OVF format 0.9, I can't import it back.

Re: Can't Import OVF - Error in File

Posted: 23. Jan 2014, 12:31
by Akenine
FYI

Update from Ticket:
Changed 39 hours ago by frank

Finally found and fixed the problem. The fix will be part of the next maintenance release. Thanks for the report!

Re: Can't Import OVF - Error in File

Posted: 26. Mar 2015, 11:24
by tmadigage
Hi, I still get the error with both OVF and OVA.
I am ruunig Mac and vbox v 4.3.26. I have went back a couple of vbox version with no luck.
Kindly help.

Re: Can't Import OVF - Error in File

Posted: 26. Mar 2015, 12:46
by loukingjr
tmadigage wrote:Hi, I still get the error with both OVF and OVA.
I am ruunig Mac and vbox v 4.3.26. I have went back a couple of vbox version with no luck.
Kindly help.
I have imported multiple Windows trial .ovas from Modern.IE and yesterday an Oracle .ova without issues. I just exported one of my guests as an .ova then re-imported it without problems.

OSX and VB 4.3.26

"still get the error" isn't very descriptive btw.

Re: Can't Import OVF - Error in File

Posted: 26. Mar 2015, 13:33
by tmadigage
thank you for the response. i have attached a screenshot, will this help?