Can't Import OVF - Error in File

Discussions related to using VirtualBox on Mac OS X hosts.
MartinVipond
Posts: 1
Joined: 17. Oct 2013, 21:40

Can't Import OVF - Error in File

Post 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}

-------------------------------------------------------
anagfar
Posts: 1
Joined: 29. Oct 2013, 13:10

Re: Can't Import OVF - Error in File

Post by anagfar »

Same happen to me, someone know how to fix it?. :-(

Thank you!
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Can't Import OVF - Error in File

Post by mpack »

Is the error message wrong? You can look at the ovf with any text editor if you want to verify it yourself.
Gerhard G.
Posts: 8
Joined: 6. Nov 2013, 16:59

Re: Can't Import OVF - Error in File

Post 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.
Akenine
Posts: 4
Joined: 7. Nov 2013, 10:48

Re: Can't Import OVF - Error in File

Post 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
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Can't Import OVF - Error in File

Post 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.
Akenine
Posts: 4
Joined: 7. Nov 2013, 10:48

Re: Can't Import OVF - Error in File

Post 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
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Can't Import OVF - Error in File

Post 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.
copeland3300
Posts: 1
Joined: 17. Nov 2013, 05:22

Re: Can't Import OVF - Error in File

Post 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.
Akenine
Posts: 4
Joined: 7. Nov 2013, 10:48

Re: Can't Import OVF - Error in File

Post 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.
GabrieleV
Posts: 1
Joined: 25. Nov 2013, 13:36

Re: Can't Import OVF - Error in File

Post 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.
Akenine
Posts: 4
Joined: 7. Nov 2013, 10:48

Re: Can't Import OVF - Error in File

Post 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!
tmadigage
Posts: 3
Joined: 26. Mar 2015, 11:20

Re: Can't Import OVF - Error in File

Post 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.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Can't Import OVF - Error in File

Post 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.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
tmadigage
Posts: 3
Joined: 26. Mar 2015, 11:20

Re: Can't Import OVF - Error in File

Post by tmadigage »

thank you for the response. i have attached a screenshot, will this help?
Attachments
screenshot
screenshot
VERR_ZIP_CORRUPTED.jpg (89.21 KiB) Viewed 67289 times
Locked