Quick Tips: Updating ESXi Host (Online Method)
Hello and welcome to Quick Tips.
This quick tip is designed to walk a novice, step by step, through the process of updating an ESXi host. If you’re not a novice, this will be a refresher.
Mostly, I wanted to write it down somewhere so I wouldn’t forget in my old age.
Sorry folks, no pictures on this one. Maybe I’ll add some later.
Note: This will update ESXi 6.5 to 6.5 Update 1 with the latest patch as of March 2018.
Step 1 – Enable SSH on the ESXi host
- Log into the host via the HTML5 web client ui.
- Click on Host.
- Click on “Manage” tab.
- Click on “Services” sub-tab.
- Locate “TSM-SSH” and select it.
- Click on “Actions“, then “Start“.
Step 2 – Place the host into maintenance mode
- Log into the host via the HTML5 web client.
- Shut down all VMs.
- Right click on Host and choose “Enter maintenance mode“.
Step 3 – Enable Host-Local Swap for a Standalone Host
- Log into the host via the web client HTML5 web client ui.
- Click on Host.
- Click Manage.
- Click on the “System” tab.
- Click on “Swap“.
- Ensure “Datastore” is set with a value.
- If no value, click “Edit settings” and select a local datastore from the list and click “SAVE“.
Step 4 – Using PuTTY to SSH into ESXi Host
- Open PuTTY and setup connection for IP address of ESXi host.
- Choose “SSH” as the option.
- Accept the certificate if prompted.
- Use root account username/password to login.
Step 5 – Validate Current Build Version
- Run the following command:
esxcli system version get
- Write down the “Build:” line.
Step 6 – Open ESXi Host Firewall
- Run the following command:
esxcli network firewall ruleset set -e true -r httpClient
Step 7 – Run the ESXi 6.5 Update 1 update on the ESXi host
- Run the following command:
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.5.0-20180304001-standard
Step 8 – Update Installing…
- The host will now update. This will take many minutes (depending on Internet speeds) and there is no progress indicator.
- When completed, you should see “The update completed successfully, but the system needs to be rebooted” message, with a listing of the VIBs that were installed.
- Reboot the host from the command line by typing “reboot” and press enter.
POST Tasks after Host has Rebooted
Step 1 – Validate Current Build Version
- SSH into the host and run the following command:
esxcli system version get
-
Compare the old Build to the new Build. It should be newer. (e.g. Build: Releasebuild-7967591)
Step 2 – Re-enable firewall rule for httpClient
- SSH into the host and run the following command:
esxcli network firewall ruleset set -e false -r httpClient
- Exit out of SSH by typing the command “exit” and press enter.
Step 3 – Disable SSH on the ESXi host
- Log into the host via the HTML5 web client ui.
- Click on Host.
- Click on “Manage” tab.
- Click on “Services” sub-tab.
- Locate “TSM-SSH” and select it.
- Click on “Actions“, then “Stop“.
Step 4 – Remove the host from maintenance mode and start VMs
- Log into the host via the HTML5 web client.
- Right click on Host and choose “Exit maintenance mode“.
- Start up all VMs.