• Home
  • Virtualization
    • Citrix
    • VMware
  • Coding
    • Apache
    • Powershell
    • VBScript
  • Applications
    • Windows
      • DHCP
      • Group Policy
      • MDT
  • Mobile
    • Android
    • iOS

the STONYWALL blog

where my mind comes to rest...

Menu
  • Home
  • Virtualization
    • Citrix
    • VMware
  • Coding
    • Apache
    • Powershell
    • VBScript
  • Applications
    • Windows
      • DHCP
      • Group Policy
      • MDT
  • Mobile
    • Android
    • iOS
 › Quick Tips › VMware › Quick Tips: Updating ESXi Host (Online Method)

Quick Tips: Updating ESXi Host (Online Method)

Derek Bannard April 3, 2018     Comment Closed    

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

  1. Log into the host via the HTML5 web client ui.
  2. Click on Host.
  3. Click on “Manage” tab.
  4. Click on “Services” sub-tab.
  5. Locate “TSM-SSH” and select it.
  6. Click on “Actions“, then “Start“.

 

Step 2 – Place the host into maintenance mode

  1. Log into the host via the HTML5 web client.
  2. Shut down all VMs.
  3. Right click on Host and choose “Enter maintenance mode“.

 

Step 3 – Enable Host-Local Swap for a Standalone Host

  1. Log into the host via the web client HTML5 web client ui.
  2. Click on Host.
  3. Click Manage.
  4. Click on the “System” tab.
  5. Click on “Swap“.
  6. Ensure “Datastore” is set with a value.
  7. 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

  1. Open PuTTY and setup connection for IP address of ESXi host.
  2. Choose “SSH” as the option.
  3. Accept the certificate if prompted.
  4. Use root account username/password to login.

 

Step 5 – Validate Current Build Version

  1. Run the following command:
    esxcli system version get
  2. Write down the “Build:” line.

 

Step 6 – Open ESXi Host Firewall

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

  1. 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…

  1. The host will now update. This will take many minutes (depending on Internet speeds) and there is no progress indicator.
  2. 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.
  3. 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

  1. SSH into the host and run the following command:
    esxcli system version get
    
  2. 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

  1. SSH into the host and run the following command:
    esxcli network firewall ruleset set -e false -r httpClient
  2. Exit out of SSH by typing the command “exit” and press enter.

 

Step 3 – Disable SSH on the ESXi host

  1. Log into the host via the HTML5 web client ui.
  2. Click on Host.
  3. Click on “Manage” tab.
  4. Click on “Services” sub-tab.
  5. Locate “TSM-SSH” and select it.
  6. Click on “Actions“, then “Stop“.

 

Step 4 – Remove the host from maintenance mode and start VMs

  1. Log into the host via the HTML5 web client.
  2. Right click on Host and choose “Exit maintenance mode“.
  3. Start up all VMs.

 

Quick Tips VMware

 Previous Post

MDT Task Sequence: Inline Surface Pro Pen Pairing without Image Modifications

― February 3, 2018

Next Post 

MDT 2013: Creating a New Template

― May 22, 2018

Author: Derek Bannard

Related Articles

Derek Bannard ― December 9, 2019 | Comment Closed

MDT: Manually Update ADK and ADK Addon

You have an MDT server, and it’s working well.Ideally you would NOT like to start fresh with a new MDT

Derek Bannard ― December 9, 2019 | Comment Closed

Execute all queued .NET Compilation Jobs

Derek Bannard ― June 11, 2019 | Comment Closed

Adding DHCP server support for PXE BIOS and UEFI Booting – Version 2

Derek Bannard ― May 30, 2019 | Comment Closed

MDT 2013: Adding a Drivers Catch-All Task Sequence

Derek Bannard ― March 8, 2019 | Comment Closed

Citrix XenApp: Migrating Delivery Groups, the PowerShell Way

Derek Bannard ― February 1, 2019 | Comment Closed

Clear Windows Event-Logs

Derek Bannard ― October 24, 2018 | Comment Closed

Quick Tips: Citrix Studio Application Folder Rename

Derek Bannard ― August 31, 2018 | Comment Closed

PowerShell: Copy and Move Files Using Robocopy and CSV

Search

Categories

Recent Posts

  • MDT: Manually Update ADK and ADK Addon
  • Execute all queued .NET Compilation Jobs
  • Adding DHCP server support for PXE BIOS and UEFI Booting – Version 2
  • MDT 2013: Adding a Drivers Catch-All Task Sequence
  • Citrix XenApp: Migrating Delivery Groups, the PowerShell Way

Archives

  • December 2019
  • June 2019
  • May 2019
  • March 2019
  • February 2019
  • October 2018
  • August 2018
  • May 2018
  • April 2018
  • February 2018
  • January 2018
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • November 2016

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org