I recently came across an issue with creating subscribed VMware Content Libraries, and deploying templates from a Content Library.
An error similar to the one below, would be received when attempting to deploy a VM template or OVF from a Content Library, or an error related to connection issues when setting up a subscribed Content Library.
Failed to deploy OVF Package. ThrowablePrxy.cause A general system error occurred: Transfer failed.
After some investigation, I came to see that vCenter was attempting to communicate with linked vCenter’s and hosts via the web proxy that was configured in the VAMI, when attempting to deploy an OVF from a Content Library or when trying to synchronise a library.
As I didn’t want this traffic going via the proxy as it is internal traffic, a support ticket was logged. It was advised to add proxy exceptions, or bypasses, to the proxy file located here on a vCenter Server Appliance:
As this information isn’t something I managed to find documented publicly and support couldn’t provide me with anything as they were using internal documentation to assist, I thought I would write a quick post on it to help anyone facing the same issue!
Note: Always test in a non production environment and contact official support channels!
To begin reviewing and editing this file, you will need to SSH to the VCSA using the below command using your SSH tooling of choice.
Using the following cat command you can then view the file:
Here is what the default file looks like with the HTTP and HTTPS options set:
# Enable a generation of the proxy settings to the profile. # This setting allows to turn the proxy on and off while # preserving the particular proxy setup. # PROXY_ENABLED="no" # Some programs (e.g. wget) support proxies, if set in # the environment. # Example: HTTP_PROXY="http://proxy.provider.de:3128/" HTTP_PROXY="proxy.smt-lab.local" # Example: HTTPS_PROXY="https://proxy.provider.de:3128/" HTTPS_PROXY="proxy.smt-lab.local" # Example: FTP_PROXY="http://proxy.provider.de:3128/" FTP_PROXY="" # Example: GOPHER_PROXY="http://proxy.provider.de:3128/" GOPHER_PROXY="" # Example: SOCKS_PROXY="socks://proxy.example.com:8080" SOCKS_PROXY="" # Example: SOCKS5_SERVER="office-proxy.example.com:8881" SOCKS5_SERVER="" # Example: NO_PROXY="www.me.de, do.main, localhost" NO_PROXY="localhost, 127.0.0.1"
Take note of the section at the bottom, “NO_PROXY”. This is where we need to add the fqdn’s of any hosts and VCSA’s you wish to deploy to, or subscribe with. If however you don’t want to maintain this for each and every host, you can add a wild card:
Note the ‘.’ at the beginning!
For instance, in my lab I would add the following entry to the NO_PROXY list:
To edit this we can use the VI editor (More info on using VI here.):
Edit the file to include the FQDN’s or a wildcard, based on your requirements.
# Example: NO_PROXY="www.me.de, do.main, localhost" NO_PROXY="localhost, 127.0.0.1, .*.smt-lab.local"
I found a short period of time is needed for this to take effect. Or you can reboot the VCSA to speed things along.
Following this, you will then be able to deploy or subscribe without issue!
Hope this has been useful and thanks for reading!