Skip to content

[BUG] The govc import.ova command is failing to upload the OVA file. #3679

@VinayVamsi143

Description

@VinayVamsi143

Describe the bug

The govc import.ova command is failing to upload the OVA file.

Manual Export vs govc Export:

When we manually upload a VM template to an OVA using govc export.ovf, the network configuration shows differences compared to a manual export.

Consider that i was using vCenter to export vm
Manual export values in network in .ovf as follows

The list of logical networks

The VLAN-2533 network

govc export values in network in .ovf file as follows

The list of logical networks

The dvportgroup-2325 network

due to this when i try uploading the ova file into the vCenter i was getting below error

ERROR
govc: Line 100: Invalid value 'dvportgroup-2325' for element 'Connection'.

Expected behavior
govc import should work as like how we do from GUI manually
Affected version
failed to upload a ova using govc import.ova

Screenshots/Debug Output
attached
Image

Additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions