7.x
If vcenter and esxi hosts are not in the same network, sometimes NFC session can not be established which will cause the image upload to fail.
Workaround:
--property vmware_vcenter_upload=true must be set when uploading images. Similar to the default properties of photon-3.0.ova image.
The command must be: