Easy upgrade ESXi 6.5 via command line

VMware has recently released ESXi 6.5 and last week I posted on how to Install VCSA 6.5 as well as how to upgrade VCSA 6.0 to 6.5, now we’re going to look at how to easily and quickly perform an ESXi 6.5 upgrade via command line.

How to Upgrade ESXi 6.6 via command line using VMware Online Depot

Using the VMware Online Depot is a simple way to upgrade if you only have 1 or 2 ESXi hosts to do, perfect for a small home lab setup.

  1. Place the host you want to upgrade into Maintenance Mode.
  2. Open PuTTY (or any other SSH client) and SSH into your host.
  3. Type the following command to open the firewall for outgoing HTTP requests:
    esxcli network firewall ruleset set -e true -r httpClient
  4. Type the following command to download and upgrade to the latest version of ESXi 6.5
    esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.5.0-20170404001-standard
  5. Now disable the HTTP firewall rule by typing:
    esxcli network firewall ruleset set -e false -r httpClient
  6. And finally, reboot the ESXi host to complete the upgrade.
    reboot
  7. Doesn’t hurt to also disable SSH when you’re done for security purposes.

That’s it, your ESXi host has how been upgraded to the latest ESXi 6.5 build, as of April 19, 2017!

This works perfect in a small environment with a few hosts or home lab. Those with tens or hundreds of hosts I would suggest using VMware Update Manager to perform the upgrades.

Similar Posts

  • vSphere 5.1 and View 5.1 are finally compatible

    As mentioned before, I mentioned vSphere 5.1 currently not compatible with any VMware View version. As of yesterday, VMware has finally released a patch (ESXi510-201210001) to correct the incompatibility issues.

    Alternatively you can also download an updated ESXi 5.0 ISO. To download the ISO:

    1. Navigate to the vSphere Download Center.
    2. Click View Download for the VMware ESXi 5.1.0 Installable for your version of ESXi.
    3. On the Product Downloads tab, download VMware-VMvisor-Installer-201210001-838463.x86_64.iso.

    KB 2035268

  • VMware Site Recovery Manager 8.2 – No more Windows

    VMware has just announced the release of Site Recovery Manager 8.2. There are a number of new items in SRM 8.2, such as enhancements to the HTML5 user interface, support for vSphere 6.7 Update 2, but most notably is Site Recovery Manager 8.2 virtual appliance!

    No more Microsoft Windows license needed! The SRM 8.2 virtual appliance runs on the Photon OS distro, which is similar to what the vCenter virtual appliance has been running on for years now.

    Read More “VMware Site Recovery Manager 8.2 – No more Windows”

  • Thank you VMware Community!

    VMware vExpert 2014

    So far, 2014 has been a very rewarding year for a number of reasons, two of which has happened in just a week or two span. First, Eric Siebert (@ericsiebert) announced on March 27th, this years results of the 2014 Top VMware & Virtualization Blog voting. My first year entered into voting and made it to 71st place! A huge thanks goes out to not only Eric but just as much so to everyone who voted for me!

    To top it off, yesterday VMware announced 2014’s first quarter VMware vExpert list. While vExpert isn’t a technical certification or even a general measure of VMware expertise. The VMware judges selected people who were engaged with their community and who had developed a substantial personal platform of influence in those communities. There were a lot of very smart, very accomplished people, even VCDXs, that weren’t named as vExpert this year. VMware awarded this title to 754 people this year and on that list of many impressive names you’ll find yours truly, Michael Tabor!

    I’m both honored and humbled by both lists. It’s a great feeling to be recognized by not only my peers through the voting in the Top vBlog but also by VMware themselves through the vExpert title.

    So again THANK YOU very much to the entire VMware community, a spectacular community indeed, and congratulations to everyone else that made the Top vBlog and vExpert lists!

  • Increase incremental backup speed by enabling CBT

    In a recent VMware environment I was working in, we noticed that our incremental backups was taking a long time (like up to 7-8 hours) to complete. After digging around it was found that VMware actually has a feature built-in since version 4 called Change Block Tracking (CBT). CBT will track any blocks that were changed since the last backup and tag them and stores the information in a -CTK file. The obvious benefit is that now the third party software only backs up the changed block and not the entire VM each time, reducing the amount of data being backed thus speeding up backups and even lowers the CPU utilization on the VM host.

    CBT is disabled by default though there are some backup tools that will enable it automatically or you can enable it manually which can easily be done following these steps:

    Read More “Increase incremental backup speed by enabling CBT”

  • Update vCenter Server Appliance 6.7 to 6.7 Update 1

    VMware has released vCenter Server 6.7 Update 1 and with comes with a number changes.

    One most notable change is the feature complete HTML5 vSphere client. The vSphere client in vCenter 6.7 Update 1 now includes the ability to manage:

    • Host profiles
    • Auto deploy
    • Full vSphere Update Manager (VUM)
    • A new dark theme
    • and vCenter High Availability.

    That’s no where near all of the changes though, there are many more changes and updates in the 6.7 Update 1 update. Be sure to read the full release notes here.

    In this post we’ll see just how easy it is to upgrade from VCSA 6.7 to VCSA 6.7 Update 1 in just a couple steps!

    Read More “Update vCenter Server Appliance 6.7 to 6.7 Update 1”

  • vSphere 5.1 Release Date leaked, maybe?

    Looks like Sammy Bogaert over at Boerlowie’s Blog has possibly found the release date of vSphere 5.1… maybe?

    I was about to download vSphere Update Manager PowerCLI 5.0.

    I followed the main site and wanted to check the documentation first. So I clicked the Documentation button.

    vmware update manager

    This lead me to the Docs of Update Manager PowerCLI 5.1! That’s right, 5.1! With a release date of 10 September 2012.

    vsphere5.1 release date

    None of the links for 5.1 work, so no news on any new features…

    Guess somebody at VMware was a bit too fast to update the website

    Nice find Sammy, guess time will tell if the Sept. 10th date is the actual release date or not.

Leave a Reply to virtualerati Cancel reply

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

3 Comments

  1. Thanks for the article. can we somehow download the offlinebundle.zip or it”s contents in a folder via ssh?