wget with https on ESXI 6.7 U3

  • Thread starter Thread starter panks21
  • Start date Start date
  • Replies Replies 16
  • Views Views 9,823
Messages
258
Location
Delhi
ISP
Airtel Static IP
ACT Broadband
Didnt find a place for ESXI, hence asking here . @Mods Please feel free to move it around

Sorry for the basic question.. I am noob in ESXI

I updated the ESXI to 6.7 U3 and tried to do wget on the host directly. For some reason it doesn't work even if the httpClient is set to true. How to get this working?
Code:
[root@localhost:/vmfs/volumes/613f8040-7d767b5c-98a1-90e2ba68ddb0/iso_images] esxcli network firewall ruleset list | grep -E '^Name|^---|http'
Name                    Enabled
----------------------  -------
httpClient                 true

[root@localhost:/vmfs/volumes/613f8040-7d767b5c-98a1-90e2ba68ddb0/iso_images] wget "https://releases.ubuntu.com/20.04.3/ubuntu-20.04.3-live-server-amd
64.iso"
Connecting to releases.ubuntu.com (91.189.91.124:443)
wget: error getting response: Invalid argument

[root@localhost:/vmfs/volumes/613f8040-7d767b5c-98a1-90e2ba68ddb0/iso_images] wget "https://cdimage.kali.org/kali-2021.2/kali-linux-2021.2-installer-n
etinst-amd64.iso"
Connecting to cdimage.kali.org (192.99.200.113:443)
wget: error getting response
 
I'm not recently familiar with esx but are you able to do basic operations like ping?

Ensure your esxi has a valid ip address and maybe you need to configure enable DHCP client first.

Reason I suggest this is because I see root@localhost instead of a hostname...
 
Yes I just searched Google and seems esxi 6.7 wget doesn't support ssl but esxi 7 has it...
 
I also thought that the https is not supported.. but the Answer in the URL below says he has it working in U2 on 6.7

 
Did you try downloading anything from http source? Also i can see the host name is resolved to an ip. So this is a wget issue.
Try using curl if you have it. In the above link they may have a particular patch installed to resolve the issue.
 
I am running update 3. That post is running update 2.
curl is not present on the host. The host has internet access. Please suggest some http source to test a download

Code:
[root@localhost:/vmfs/volumes/613f8040-7d767b5c-98a1-90e2ba68ddb0/iso_images] curl www.google.com
-sh: curl: not found

[root@localhost:/vmfs/volumes/613f8040-7d767b5c-98a1-90e2ba68ddb0/iso_images] ping www.hotstar.com
PING www.hotstar.com (23.52.42.152): 56 data bytes
64 bytes from 23.52.42.152: icmp_seq=0 ttl=49 time=10.646 ms
64 bytes from 23.52.42.152: icmp_seq=1 ttl=49 time=9.929 ms
64 bytes from 23.52.42.152: icmp_seq=2 ttl=49 time=11.030 ms

--- www.hotstar.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 9.929/10.535/11.030 ms

[root@localhost:/vmfs/volumes/613f8040-7d767b5c-98a1-90e2ba68ddb0/iso_images]
 
I'm not recently familiar with esx but are you able to do basic operations like ping?

Ensure your esxi has a valid ip address and maybe you need to configure enable DHCP client first.

Reason I suggest this is because I see root@localhost instead of a hostname...
the host has internet access. Please see above post.
@vishalrao
 
http download works..

Code:
[root@localhost:/vmfs/volumes/613f8040-7d767b5c-98a1-90e2ba68ddb0/iso_images] wget -O /dev/null http://speedtest.tele2.net/10GB.zip
Connecting to speedtest.tele2.net (90.130.70.73:80)
saving to '/dev/null'
null                   0% |                                                                                                      |  9.8M  2:01:37 ETA
[root@localhost:/vmfs/volumes/613f8040-7d767b5c-98a1-90e2ba68ddb0/iso_images]
 
Try wget options to use lower ssl versions? Like avoid tls etc...

Maybe server is negotiating higher ssl or tls version which esxi wget doesn't support
 
Back