oVirt OVA Export -> oVirt OVA Import failure

I carried out the following procedure: 1. Exported a VM as an OVA to a 4.3 environment host. 2. SCP'd the file to a host on a 4.5.0.3 environment. 3. Selected Import VM - Virtual Appliance (OVA) - selected the Host and path - clicked Load but no VMs are listed. This process previously worked in 4.4 Is this a known bug? Cannot upgrade to 4.5.1 until our internal mirrors have been updated. Regards Simon...

I’ve upgraded to 4.5.1 and I still don’t see the VM after clicking ‘Load’. Any ideas from anyone please. Kind Regards Simon…

The error I'm seeing on the engine when loading VMs is: Error parsing OVF due to Error loading ovf, message Content is not allowed in prolog. Following a Google search for this error I cam up with: https://bugzilla.redhat.com/show_bug.cgi?id=1684140 The Additional info section is what I am seeing as well: Additional info: The immediate difference I saw in the OVA logs is that the XML is now starting with a quote: '<?xml version="1.0" encoding="UTF-8"? .......</ovf:Envelope>' while before(working) was without it: <?xml version="1.0" encoding="UTF-8"? .......</ovf:Envelope> Is this the cause and if so is there a quick fix? Kind Regards Simon...

On Fri, Jul 01, 2022 at 09:17:56AM -0000, simon@justconnect.ie wrote:
The error I'm seeing on the engine when loading VMs is: Error parsing OVF due to Error loading ovf, message Content is not allowed in prolog.
Following a Google search for this error I cam up with:
https://bugzilla.redhat.com/show_bug.cgi?id=1684140
The Additional info section is what I am seeing as well:
Additional info: The immediate difference I saw in the OVA logs is that the XML is now starting with a quote: '<?xml version="1.0" encoding="UTF-8"? .......</ovf:Envelope>' while before(working) was without it: <?xml version="1.0" encoding="UTF-8"? .......</ovf:Envelope>
Is this the cause and if so is there a quick fix?
Yes, this is the same issue. You will have to un-pack the OVA (it is a tar archive) on the host. Open OVF file in editor and remove quotes from the start and end of the XML. You don't have to re-pack the OVA, in the import dialog you can point oVirt to the directory with extracted files. Hope this helps, Tomas
Kind Regards
Simon... _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/IRU5ANAKWNOHS2...
-- Tomáš Golembiovský <tgolembi@redhat.com>

Thanks for the info Tomas - here's what I have done: 1. Unpack .ova file. 2. Remove the single quote from the beginning and end of the XML in the .ovf file. 3. Attempts to import the VM started but failed soon after. Reviewing the logs I could see references to '.ova', which as I was using the unpacked files wasn't present - so I tested the following: 1. Unpack .ova file. 2. Remove the single quote from the beginning and end of the XML in the .ovf file. 3. Repackaged the .ova 4. Imported the VM successfully. Will the single quote issue be resolved in a new release or should I accept this workaround for the foreseeable future? Kind Regards Simon...

On Fri, Jul 01, 2022 at 04:17:00PM -0000, simon@justconnect.ie wrote:
Will the single quote issue be resolved in a new release or should I accept this workaround for the foreseeable future?
Depends on what you mean. The problem with superfluous quote was fixed in oVirt 4.3 so if you still have the environment (and you're not importing some archived OVAs) you just have to update your environment and export agian the OVA. If you are asking whether oVirt will be able to import the broken OVA so that you don't have to fix them manually then I am affraid not. This is not planned. Tomas -- Tomáš Golembiovský <tgolembi@redhat.com>

Hi, @Arik Hadas I beleive this may be in your area of expertise. Regards SImon...

@Arik Hadas - please ignore this as I sent it at the same time as Tomas replied. Regards Simon...
participants (2)
-
simon@justconnect.ie
-
Tomáš Golembiovský