Direct Download of ISO to ESXi Hosts

  • First, SSH into your ESXi host.
  • Then, navigate to the datastore you want to place the .iso file. So cd /vmfs/volumes/<your datastore name or ID>/
  • Optionally, create a folder to store the .iso in.
  • Once you are in the location you want to place the .iso, run esxcli network firewall ruleset set -e true -r httpClient. This allows the ESXi firewall to allow the traffic through.
  • Then get your .iso file by using wget. In my case I was getting an Oracle Linux .iso so the command was wget --no-check-certificate https://yum.oracle.com/ISOS/OracleLinux/OL9/u1/x86_64/OracleLinux-R9-U1-x86_64-dvd.iso. Note the --no-check-certificate flag, which is needed else the command will be unsuccessful.
  • Once your iso is downloaded, make sure to re-enable the firewall: esxcli network firewall ruleset set -e false -r httpClient.