VMware Cloud Community
wcwong
Contributor
Contributor

esxupdate and http_proxy

If the service console is behind a firewall and requires proxy access to get to the web server hosting the esx patches, you can set the environment variable http_proxy[/i] to point to the proxy. For example:

export http_proxy=http://proxy.example.com:3128/[/u]

It seems that both the urllib2 python library (called by esxupdate) and yum both honor this environment variable.

Sorry if this is obvious to everyone else. I spent some time to figure this out so I thought I'd share.

0 Kudos
2 Replies
Texiwill
Leadership
Leadership

Hello,

I always thought the variable was HTTP_PROXY in capital letters. Will the lowercase version actually work...

Best regards,

Edward Haletky

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
veemun
Contributor
Contributor

This post is really old but I'm running into an issue where I need esxupdate to go through a proxy to get to a web depot. I've set http_proxy and HTTP_Proxy in /root/.bashrc (because i'm running esxupdate as root) and /etc/profile and it doesn't appear as though esxupdate is using the proxy. I've seen elsewhere about /etc/vmware/hostd/proxy.xml but I don't think i want to change anything on the web server. Any input would be greatly appreciated. Also there are several issues with using update manager to patch esx so don't offer that as a solution. Really just need to get esxupdate to use a proxy. Thanks in advanced.

0 Kudos