M BUZZ CRAZE NEWS
// general

How to download files from URL to VMware ESXi using SSH Shell of it?

By Daniel Rodriguez

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?

11

3 Answers

To enable SSH access in the direct console

  1. At the direct console of the ESXi host, press F2 and provide credentials when prompted

  2. Scroll to Troubleshooting Options and press Enter

  3. 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.

  4. Press Esc until you return to the main direct console screen.

After this you can use wget read man wget:

  • Connect to your ESXi via SSH
  • Change to the folder where you want to download the ISO
  • Run wget

This will download the ISO directly.

Setting up an ISO store on your ESXi server:

  • Go to configuration > storage
  • Right-click on a datastore and select Browse
  • Created an ISO folder
  • Use SSH to mv the downloaded ISO to the new folder
12

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 

Issue following command to install this tool if it isn't installed:

sudo apt-get install aria2
5

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy