Open vMarkus opened 3 years ago
Meanwhile customerconnect.vmware.com
ip changed to 104.125.72.51
- but the result is the same, not working over proxy.
Wondering if anybody figured out how to get vmw-cli to work over proxy
You can use https://www.npmjs.com/package/global-agent
like That
export GLOBAL_AGENT_HTTP_PROXY=http://myproxy:8080
node -r 'global-agent/bootstrap' /root/node_modules/vmw-cli/lib/vmw.cli.js ls
I am trying to get vmw-cli working over proxy server
what I did:
apt
andcurl
, verify working setupset npm proxy via
.npmrc
file for default user and root and logging out and back in againinstall vmw-cli via npm as described (
npm install vmw-cli --global
)vmw-cli ls
fails, no local dns resolution (should be performed over proxy?):working curl over proxy
Squid working with proxy and no local dns resolution on air-gapped Ubuntu VM
Squid
access.log
does not show any activity, when I run vmw-cli, so the proxy configuration somehow is not picked up,This time with /etc/hosts setting for customerconnect.vmware.com to point to ip address to rule out dns resolution issue
Not sure if this is a vmw-cli issue or more a nodejs/npm issue? Any pointers welcome to get this working for air-gapped deployments.