5

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?

muru
  • 207,228
ASIL
  • 182

3 Answers3

9

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 http://releases.ubuntu.com/16.04.1/ubuntu-16.04.1-server-amd64.iso

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
AnotherKiwiGuy
  • 4,482
  • 1
  • 22
  • 39
1

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
Koti DC
  • 11
1

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
SuB
  • 4,419