I'd like to download a large OS install ISO directly to my datastore. I used to be able to SSH to the ESXi terminal and use wget
to download large files directly to the datastore, but it seems that wget
can't handle https
links anymore (wget: not an http or ftp url
).
I'm wondering how others handle this. I know I can download the file to my laptop and use the datastore browser to upload it, but that's a two-step process (not to mention horribly inefficient when I'm offsite and accessing ESX through a VPN).
Thanks in advance for any suggestions!
Hopefully, you have a running guest system on the existing VMware setup... That's one quick option. If linux, you can wget/curl. If Windows, just download as normal.
I typically download .ISO files to the vCenter server and upload to the datastore from there. That's easy since my vCenter is usually a Windows server, so any complex download authentication methods are easy to deal with.
wget
does exist in ESXi, so maybe the best option is to get the .ISO file you need to a location that does not require an https download; http or normal ftp.Also see: cURL on ESXi 5.0?
Just SSH-proxy the file download operation through another system with an SSL-enabled wget. Note that the default ESXi firewall policy blocks outgoing SSH, so it needs to be allowed first. From the ESXi shell :
Around ESXi 6.7, the embedded busybox wget finally started to support https.
So finally, you can do https downloads in ESXi.
Yay!
This is from ESXi 6.7 Update 2.
Whereas 6.5U2 still did not support it (I think ESXi 6.7 also did not, but I do not have a box to this this on any more):
You don't mention the laptop OS. Assuming it is Windows, you can use WinSCP.
Log into your ESXi host, drill into your datastore, and do a filecopy using a Commander style, or optionally a Windows Explorer style interface.
If you are looking for a command line option, you can use Putty Secure Copy client.
I use both - gui for one off file copies, and command line to copy files to several ssh hosts.
Assuming you are using 6.7U2 or higher as mentioned by Jerone, ensure that your firewall allows outgoing connections (it's disabled by default) and use the --no-check-certificate option to wget.
Should do the trick nicely.
Wget from busybox on ESX doesn't support https URLs.
So, either try http or use above workarounds.