I'm trying to use the ovftool to import a OVA file into a ESXi server. However I get the following error
Error: OVF Package is not supported by target:
- Line 118: Unsupported element 'Property'
Completed with errors
The related lines in the OVF file are:
<ProductSection ovf:class="vami" ovf:instance="*******">
<Info>Information about the installed software</Info>
118--> <Property ovf:key="gateway" ovf:type="string" ovf:userConfigurable="true">
<Description>The default gateway address for this VM. Leave blank if DHCP is desired.</Description>
<Property ovf:key="DNS" ovf:type="string" ovf:userConfigurable="true">
Based on some initial investigation I have done I beleive this is because the ProductSection is defaulting to required="true" which forces ESXi to use these fields, however ESXi doesn't seem to support this and it errors out as shown above.
The OVA file was generated using ovftoolto export VM in a vcenter instance. This OVA file imports fine into vcenter, but not ESXi
Is there anyway to configure ovftoolwhen run against vcenter to generate required="false" in the ProductSection elements?
<ProductSection ovf:class="vami" ovf:instance="*******" ovf:required="false">
Or some otherway to get ovftoolto export a VM from vcenter as an OVA that will import into ESXi?
ovftool 2.1, ESXi 4.1, vCenter 4.1
Did you manage to get anywhere with this?
I am having the same issue.
I didn't find anyway to get the ovftool to export with required=false.
I ended up writing a script to fix the XML in the OVF after the export.