ESXi 6.7 and up: embedded busybox wget understands https (finally!)
Posted by jpluimers on 2021/07/16
At last, somewhere around ESXi 6.7, the built-in BusyBox tool wget started to support the https protocol.
Yay!
Which means that workarounds in these answers are not needed any more:
- [WayBack] VMware ESXi: help downloading large ISO – Server Fault
- [WayBack] vmware esx – cURL on ESXi 5.0? – Server Fault
- [WayBack] Downloading files with wget on ESXi · random writes
It was a big BusyBox version bump (from 1.22.x to 1.29.x) between ESXI 6.5 and 6.7, especially since 1.26.x versions (that introduced wget) have been available way before ESXi 6.5 came out: [WayBack] BusyBox.
From an ESXi 6.5U2 host
[root@ESXi-X10SRH-CF:/tmp] wget https://www.example.org wget: not an http or ftp url: https://www.example.org [root@ESXi-X10SRH-CF:/tmp] wget --help BusyBox v1.22.1 (2018-07-23 19:34:04 PDT) multi-call binary. Usage: wget [-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT] URL... Retrieve files via HTTP or FTP -s Spider mode - only check file existence -c Continue retrieval of aborted transfer -q Quiet -P DIR Save to DIR (default .) -O FILE Save to FILE ('-' for stdout) -U STR Use STR for User-Agent header -Y Use proxy ('on' or 'off') [root@ESXi-X10SRH-CF:/tmp] vmware -l VMware ESXi 6.5.0 Update 2
From an ESXi 6.7U2 host
[root@ESXi-X9SRI-3F:/tmp] wget https://www.example.org Connecting to www.example.org (93.184.216.34:443) index.html 100% |******************************************************************************************| 1270 0:00:00 ETA [root@ESXi-X9SRI-3F:/tmp] wget --help BusyBox v1.29.3 (2018-11-02 15:37:50 PDT) multi-call binary. Usage: wget [-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE] [--header 'header: value'] [-Y|--proxy on/off] [-P DIR] [-S|--server-response] [-U|--user-agent AGENT] URL... Retrieve files via HTTP or FTP --spider Only check URL existence: $? is 0 if exists -c Continue retrieval of aborted transfer -q Quiet -P DIR Save to DIR (default .) -S Show server response -O FILE Save to FILE ('-' for stdout) -U STR Use STR for User-Agent header -Y on/off Use proxy [root@ESXi-X9SRI-3F:/tmp] vmware -l VMware ESXi 6.7.0 Update 2
–jeroen






Leave a comment