Home > VMware, VMware ESXi > Upgrading from ESXi 6.0 to ESXi 6.5 via SSH and esxcli

Upgrading from ESXi 6.0 to ESXi 6.5 via SSH and esxcli

In the wake of VMware’s release of ESXi 6.5, I was able to upgrade my ESXi 6.0 Update 2 server to ESXi 6.5 using SSH and esxcli. For those interested in doing likewise, please see below the jump for the details of the process I used.

Screen Shot 2016 11 22 at 10 31 28 AM

To upgrade from ESXi 6.0 to 6.5 using esxcli

1. Shut down all VMs running on your ESXi host machine.

2. Connect to your ESXi server via SSH.

Screen Shot 2016 11 22 at 10 43 07 AM

3. Once logged in, run the following command to enter maintenance mode:

vim-cmd /hostsvc/maintenance_mode_enter

Screen Shot 2016 11 22 at 10 44 30 AM

4. After putting ESXi into maintenance mode, run the following command to set the correct firewall rules for the httpClient:

esxcli network firewall ruleset set -e true -r httpClient

Screen Shot 2016 11 22 at 10 45 17 AM

5. Next, run the following command to list the ESXi 6.5 updates available. You want the latest one that ends in “-standard” for your version of VMware.

esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-6.5

Screen Shot 2016 11 22 at 10 48 02 AM

6. Once you’ve identified the correct version of VMware (as of 11-22-2016, this is ESXi-6.5.0-4564106-standard), run the following command to download and install the update.

esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.5.0-4564106-standard

Screen Shot 2016 11 22 at 10 53 08 AM

Note: It is very important that you run esxcli software profile update here. Running esxcli software profile install may overwrite drivers that your ESXi host needs.

7. Once the update has been installed and prompts you to reboot, run the following command to restart:

reboot

Screen Shot 2016 11 22 at 10 53 20 AM

8. After your ESXi host restarts, connect via SSH and run the following command to exit maintenance mode:

vim-cmd /hostsvc/maintenance_mode_exit

Screen Shot 2016 11 22 at 10 56 59 AM

At this point, your ESXi host should be upgraded to ESXi 6.5.

Screen Shot 2016 11 22 at 10 58 04 AM

Categories: VMware, VMware ESXi
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: