VMware released ESXi 6.7 a little while ago, but it’s only been here recently have I started deploying it in my home and work lab environments. Below are two ways to easily upgrade your ESXi 6.5 hosts to ESXi 6.7 using the command line or by using the VMware ESXi offline bundle.
How to update ESXi 6.5 to 6.7 via command line
- Place the host you are about to upgrade into Maintenance Mode.
- Now SSH into the host using PuTTY (or any other SSH client/terminal).
- Type the following command to open the firewall for outgoing HTTP requests:
esxcli network firewall ruleset set -e true -r httpClient
- Type the following command to upgrade to the latest ESXi 6.7 Build 9484548 (latest as of writing)
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.7.0-20180804001-standard
- After the update has finished disable the HTTP firewall rule by typing:
esxcli network firewall ruleset set -e false -r httpClient
- And finally, reboot the ESXi host to complete the upgrade.
Once the host comes back online, remove it from Maintenance mode and you’re good to go. It also wouldn’t hurt to also disable SSH when you’re done, for security purposes.
Tip: To view a list of all available ESXi profiles type the following in your SSH session:
esxcli software sources profile list --depot=https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
How to upgrade VMware ESXi 6.5 to ESXi 6.7 using an Offline Bundle
Using the offline bundle works similar in the way of the command line but saves you from having to re-download the upgrade file for each VMware ESXi host. This is nice when you have more than just a couple hosts or limited bandwidth.
- First download the ESXi 6.7 offline bundle zip file.
- Upload the VMware-ESXi-6.7.0-8169922-depot.zip file to a datastore that is accessible by all your host(s).
- Next place the host you plan on upgrading into Maintenance Mode.
- SSH into your host using PuTTY (or other client/terminal).
- Type the following command, replace “DATASTORE” with the name of your datastore you uploaded the VMware-ESXi-6.7.0-8169922-depot.zip file to.
esxcli software vib update -d /vmfs/volumes/DATASTORE/VMware-ESXi-6.7.0-8169922-depot.zip
- Once the above completes reboot your host by typing:
Once the host has rebooted, take it out of Maintenance Mode and move on to your next host. That’s it!