Can't Import OVF - Error in File
-
- Posts: 1
- Joined: 17. Oct 2013, 21:40
Can't Import OVF - Error in File
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}
-------------------------------------------------------
-------------------------------------------------------
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
Same happen to me, someone know how to fix it?.
Thank you!
Thank you!
-
- Site Moderator
- Posts: 39134
- 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
Is the error message wrong? You can look at the ovf with any text editor if you want to verify it yourself.
-
- Posts: 8
- Joined: 6. Nov 2013, 16:59
Re: Can't Import OVF - Error in File
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
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:
(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
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>
....
I tried deleting the section, but the every subsequent section produces the same error.
VirtualBox 4.3.2
-
- Site Moderator
- Posts: 39134
- 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
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.
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
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
see the specs: http://www.vmware.com/pdf/ovf_whitepape ... cation.pdf
EDIT:
created ticket
https://www.virtualbox.org/ticket/12345
-
- Site Moderator
- Posts: 39134
- 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
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.
-
- Posts: 1
- Joined: 17. Nov 2013, 05:22
Re: Can't Import OVF - Error in File
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.
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
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.
But thanks for the workaround, I will try if it helps for my image.
Re: Can't Import OVF - Error in File
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
FYI
Update from Ticket:
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
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 am ruunig Mac and vbox v 4.3.26. I have went back a couple of vbox version with no luck.
Kindly help.
-
- 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
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.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.
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.
There are three groups of people. Those that can count and those that can't.
Re: Can't Import OVF - Error in File
thank you for the response. i have attached a screenshot, will this help?
- Attachments
-
- screenshot
- VERR_ZIP_CORRUPTED.jpg (89.21 KiB) Viewed 67410 times