Can't Import OVF - Error in File

Discussions related to using VirtualBox on Mac OS X hosts.

Can't Import OVF - Error in File

Postby MartinVipond » 17. Oct 2013, 21:45

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}

-------------------------------------------------------
MartinVipond
 
Posts: 1
Joined: 17. Oct 2013, 21:40

Re: Can't Import OVF - Error in File

Postby anagfar » 29. Oct 2013, 13:11

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

Thank you!
anagfar
 
Posts: 1
Joined: 29. Oct 2013, 13:10

Re: Can't Import OVF - Error in File

Postby mpack » 29. Oct 2013, 14:13

Is the error message wrong? You can look at the ovf with any text editor if you want to verify it yourself.
mpack
Site Moderator
 
Posts: 17733
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Can't Import OVF - Error in File

Postby Gerhard G. » 6. Nov 2013, 17:08

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.
Gerhard G.
 
Posts: 3
Joined: 6. Nov 2013, 16:59

Re: Can't Import OVF - Error in File

Postby Akenine » 7. Nov 2013, 11:14

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

Re: Can't Import OVF - Error in File

Postby mpack » 7. Nov 2013, 12:23

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

Re: Can't Import OVF - Error in File

Postby Akenine » 11. Nov 2013, 12:32

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

Re: Can't Import OVF - Error in File

Postby mpack » 11. Nov 2013, 12:54

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

Re: Can't Import OVF - Error in File

Postby copeland3300 » 17. Nov 2013, 05:35

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

Re: Can't Import OVF - Error in File

Postby Akenine » 21. Nov 2013, 09:06

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

Re: Can't Import OVF - Error in File

Postby GabrieleV » 25. Nov 2013, 13:38

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

Re: Can't Import OVF - Error in File

Postby Akenine » 23. Jan 2014, 12:31

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

Re: Can't Import OVF - Error in File

Postby tmadigage » 26. Mar 2015, 11:24

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

Re: Can't Import OVF - Error in File

Postby loukingjr » 26. Mar 2015, 12:46

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.
loukingjr
Volunteer
 
Posts: 6417
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

Postby tmadigage » 26. Mar 2015, 13:33

thank you for the response. i have attached a screenshot, will this help?
Attachments
VERR_ZIP_CORRUPTED.jpg
screenshot
VERR_ZIP_CORRUPTED.jpg (89.21 KiB) Viewed 6699 times
tmadigage
 
Posts: 3
Joined: 26. Mar 2015, 11:20

Next

Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: No registered users and 20 guests