My Internet is slow relatively, so I need to download Ubuntu Server (ISO file) to my directory of VMware ESXi directly via ssh shell.
How can I do it?
My Internet is slow relatively, so I need to download Ubuntu Server (ISO file) to my directory of VMware ESXi directly via ssh shell.
How can I do it?
To enable SSH access in the direct console
At the direct console of the ESXi host, press F2 and provide credentials when prompted
Scroll to Troubleshooting Options and press Enter
Choose Enable SSH and press Enter once. On the left, Enable SSH changes to Disable SSH. On the right, SSH is Disabled changes to SSH is Enabled.
Press Esc until you return to the main direct console screen.
After this you can use wget read man wget:
wget http://releases.ubuntu.com/16.04.1/ubuntu-16.04.1-server-amd64.isoThis will download the ISO directly.
Setting up an ISO store on your ESXi server:
mv the downloaded ISO to the new folderUsage: wget [-csq] [-O FILE] [-Y on/off] [-P DIR] [-U AGENT] URL...
Retrieve files via HTTP or FTP `
– ASIL Nov 27 '16 at 20:20--continue doesn't exist on the VMware wget. Just download it with plain wget. Note that you are going to have a problem if the internet dies off, and the ability of us to provide insight to VMware's builtins on ESXi command shells is going to be limited.
– Thomas Ward
Nov 27 '16 at 21:04
--continue flag, you could download a statically linked binary of GNU wget (with the currently available BusyBox wget) and use that.
– David Foerster
Nov 27 '16 at 21:12
wget on ESXi doesn't support ssl... you cant wget from https, only http or ftp
– Bryksin
May 28 '18 at 09:53
make sure you check the firewall too if you run in to any issues running wget prior. example:
esxcli network firewall set --enabled false
run wget again..
esxcli network firewall set --enabled true
Use aria2c to increase download speed by using multiple connections to get a file. Use -x to set maximum connection count for every download. Following command download Ubuntu ISO from its official website using 5 paralel connections:
aria2c -x5 http://releases.ubuntu.com/16.04.1/ubuntu-16.04.1-server-amd64.iso
Issue following command to install this tool if it isn't installed:
sudo apt-get install aria2