Quicktip: OVA import fails with configured proxy

Share on:

If you have configured a proxy in the VAMI it might be that you run into issues when importing OVA/OVF files.

1/var/log/vmware/vpxd/vpxd.log
 12020-09-16T14:41:59.004+02:00 info vpxd[14866] [Originator@6876 sub=Default opID=2b691553-01] [VpxLRO] -- ERROR task-1978410 -- UPSA913s-x64-VM01-noV
 2APP -- ResourcePool.ImportVAppLRO: vim.fault.OvfImportFailed:
 3--> Result:
 4--> (vim.fault.OvfImportFailed) {
 5-->  faultCause = (vmodl.fault.SystemError) {
 6-->   faultCause = (vmodl.MethodFault) null,
 7-->   faultMessage = (vmodl.LocalizableMessage) [
 8-->     (vmodl.LocalizableMessage) {
 9-->      key = "com.vmware.ovfs.ovfs-main.ovfs.transfer_failed",
10-->      arg = (vmodl.KeyAnyValue) [
11-->        (vmodl.KeyAnyValue) {
12-->         key = "0",
13-->         value = "Invalid response code: 403, note that HTTP/s proxy is configured for the transfer"
14-->      message = "Transfer failed: Invalid response code: 403, note that HTTP/s proxy is configured for the transfer."
15-->   reason = ""
16-->   msg = "Transfer failed: Invalid response code: 403, note that HTTP/s proxy is configured for the transfer."
17-->  faultMessage = <unset>

Fix:

1vi /etc/sysconfig/proxy
1NO_PROXY="localhost, 127.0.0.1, .*.xmsoft.de, 192.168.0.0/24"

Restart the VCSA prior 7.0.1 in later versions you can restart the services:

1service-control --stop --all && service-control --start --all

Retry the import of OVA/OVF files.