pyvmomi-community-samples icon indicating copy to clipboard operation
pyvmomi-community-samples copied to clipboard

deploy_ovf.py / Invalid value 'XX' for element 'Connection'.",

Open nesies opened this issue 5 years ago • 1 comments

I export an OVA from VSphere Web Client tar xf file.ova ./deploy_ovf.py -s XX -u XX --datacenter_name XX--datastore_name XX --cluster_name XX -v *.vmdk -f *.ovf Warnings during processing: (vmodl.MethodFault) [ (vim.fault.OvfElementInvalidValue) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], msg = "Line 109: Invalid value 'PORTGROUP' for element 'Connection'.", faultCause = , faultMessage = (vmodl.LocalizableMessage) [], lineNumber = 109, name = 'Connection', value = 'PORTGROUP' } ]

The bloc in the OVF looks like:

      <Item>
        <rasd:AddressOnParent>7</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
        <rasd:Connection>PORTGROUP</rasd:Connection>
        <rasd:Description>E1000 ethernet adapter on "PORTGROUP"</rasd:Description>
        <rasd:ElementName>Network adapter 1</rasd:ElementName>
        <rasd:InstanceID>10</rasd:InstanceID>
        <rasd:ResourceSubType>E1000</rasd:ResourceSubType>
        <rasd:ResourceType>10</rasd:ResourceType>
        <vmw:Config ovf:required="false" vmw:key="slotInfo.pciSlotNumber" vmw:value="32" />
        <vmw:Config ovf:required="false" vmw:key="wakeOnLanEnabled" vmw:value="true" />
      </Item>

nesies avatar Apr 19 '19 13:04 nesies