Using a Proxy
You can specify a proxy for the OVF Tool.
The following examples show the use of the
--proxy
option:
> ovftool --proxy=proxy.example.com http://external-site.com/ovf/package.ovf > ovftool --proxy=http://proxy.example.com http://external-site.com/ovf/package.ovf
The OVF Tool allows proxies that require
authentication. Credentials are supplied in the proxy path as shown in the
following example:
> ovftool --proxy=user:pass@proxy.example.com
http://external-site.com/ovf/package.ovf
You can omit the username and password for a proxy
server that requires authentication. OVF Tool prompts for them. If you are
using vSphere or vCloud as the locator for a source or target, you have to add
the UseProxy option: --X:viUseProxy for vSphere or --X:vCloudUseProxy for
vCloud.
> ovftool --X:viUseProxy --proxy=proxy.example.com package.ovf vi://my.esx-machine.example.com/ > ovftool --X:vCloudUseProxy --proxy=proxy.example.com package.ovf "vcloud://USERNAME:PASSWORD@example.com:443/?org=myOrg&vapp=test&vdc=orgVdc&catalog=catalog"