vSphere 6.5

Upgrading VMware ESXi to 6.5 update 1 with commandline

We have already looked at how to use VUM to update to 6.5 update 1, today we look at Upgrading VMware ESXi to 6.5 update 1 with commandline

We have looked at upgrading ESXi hosts to 6.5 update 1 using the vSphere Update Manager. Today however, we want to look at upgrading VMware ESXi to 6.5 update 1 with commandline. This can prove very useful especially if you are not running VMware vCenter server in your environment to have the vSphere Update Manager available. The process is very straightforward to accomplish, however, there are a few things to keep in mind that we will get to below. ย The new vSphere 6.5 Update 1 update is proving to be a very worthy upgrade!

Upgrading VMware ESXi to 6.5 update 1 with commandline

There are a couple of things that we need to keep in mind in upgrading VMware ESXi to 6.5 update 1 with commandline. You will need to have SSH enabled on the host that will be updated. The host will need to be placed in maintenance mode so it will need to have all VMs powered down or compute moved to another host in a cluster. ย Additionally, it will need to be able to access the Internet.

As you can see below we have placed the host in maintenance mode.

Uprade-ESXi-host-to-6.5-update-1-command-line-place-in-maitenance-mode
Uprade ESXi host to 6.5 update 1 command line place in maitenance mode

Find the Current Build Version from the commandline

To find the current build from the commandline we can use the following command:

esxcli system version get
Check-your-ESXi-6.5-host-Build-version
Check your ESXi 6.5 host Build version

Open the ESXi host firewall

Next we need to open the host firewall to allow it to use theย httpclientย ports:

esxcli network firewall ruleset set -e true -r httpClient

Find the ESXi 6.5 Update 1 update

To find the update we can use the following command to query the available 6.5 updates:

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

The update we are looking for is theย ESXi-6.5.0-20170702001-standard update.

Find-the-ESXi-6.5-update-1-from-the-depot
Find the ESXi 6.5 update 1 from the depot

Running the ESXi 6.5 Update 1 update on our ESXi host

To actually run the update, we use 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-20170702001-standard
Use-the-ESXCLI-command-to-update-to-ESXi-6.5-update-1
Use the ESXCLI command to update to ESXi 6.5 update 1

After a few moments of updating, you should see theย The update completed successfully, but the system needs to be rebootedย message. ย A listing of the installed VIBs will be presented afterwards. ย We can either reboot the host from the commandline with the simpleย reboot command or via the web client.

The-update-to-ESXi-6.5-update-1-on-the-host-is-successful
The update to ESXi 6.5 update 1 on the host is successful

Verify the ESXi 6.5 Update 1 host version

After the host finishes rebooting, we should see the host version now displaying 6.5.0 5969303.

The-ESXi-6.5-update-1-host-version-is-correctly-showing-5969303
The ESXi 6.5 update 1 host version is correctly showing 5969303

Concluding Thoughts

Upgrading VMware ESXi to 6.5 update 1 with commandline is an easy way to upgrade your ESXi host to 6.5 update 1 without using the vSphere Update Manager. You will need SSH, Internet connectivity and the host in maintenance mode to carry out the update from the commandline. The process as shown above is only a few simple steps and should only take a few minutes.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.