My Oracle Support Banner

OLVM: End of .ovf File in OVA is Truncated When Exporting VM to OVA (Doc ID 2960363.1)

Last updated on AUGUST 28, 2023

Applies to:

Linux OS - Version Oracle Linux 8.6 with Unbreakable Enterprise Kernel [5.4.17] and later
Information in this document applies to any platform.
Linux x86-64

Symptoms

When trying exporting a VM to OVA, the end of the .ovf file in the .ova file is truncated like:

$ sed -e 's/</\n</g' ucr/vm.ovf_169365503/this/ovf | tail ; echo ""
<Alias>ua-0d6e8a67-8124-4110-8782-53ba34a04bd1
</Alias>
<SpecParams>
<model>virtio
</model>
</SpecParams>
</Item>
</VirtualHardwareSection>
</VirtualSystem>
</o     <--------- This should be </ovf:Envelope>

When importing the OVA to OLVM, engine shows an error and error log in /var/log/ovirt-engine/engine.log as following:

<DATE> ERROR [org.ovirt.engine.core.utils.ovf.OvfManager] (default task-33) [<UUID>] Error parsing OVF due to Error loading ovf, message The element type "ovf:Envelope" must be terminated by the matching end-tag "</ovf:Envelope>".

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.