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 foldermake 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