Easy ESXi 6.0 upgrade via command line

VMware has released ESXi 6.0 back in March and I recently posted a guide on how to upgrade your vCenter Server Appliance from 5.x to 6.0 – Now we’re going to look at two ways to upgrade a VMware ESXi 5.x host to ESXi 6.0 via command line.

The first method will show you how to have each ESXi host download the update directly from VMware and then upgrade itself while the second method shows how to download the update, place it on a datastore accessible to the host, then upgrade the host.

Upgrade ESXi 6.0 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. On the host you’re about to upgrade, go to the Configuration tab > Security Profile and Enable SSH under Services.
    ssh enabled
  3. Open PuTTY (or any other SSH client) and SSH into your host.
  4. Type the following command to open the firewall for outgoing HTTP requests:
    esxcli network firewall ruleset set -e true -r httpClient
  5. Type the following command to download and upgrade to the latest version of ESXi 6.0 (as of April 10, 2015)
    esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.0.0-20150404001-standard
  6. Once the above completes reboot your host by typing:
    reboot
  7. After the host has been rebooted PuTTy back into the host and disable the HTTP firewall rule by typing:
    esxcli network firewall ruleset set -e false -r httpClient
  8. 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.0 build, as of April 10, 2015, which does include the newest set of patches found in KB 2111975.

Use the Offline Bundle zip file to upgrade ESXi 6.0 using command line.

Using this process will allow you upgrade your ESXi hosts fairly quickly without the need of having to download the update each time on every host as the above process does.

  1. Download the ESXi 6.0 offline bundle zip file.
    ESXi 6.0 offline bundle
  2. Upload the VMware-ESXi-6.0.0-2494585-depot.zip file to a datastore accessible by the host.
    ESXi 6 bundle uploaded to datastore
  3. Now place the host you want to upgrade into Maintenance Mode.
  4. Then on the host you’re about to upgrade, go to the Configuration tab > Security Profile and Enable SSH under Services.
    ssh enabled
  5. Open PuTTY (or any other SSH client) and SSH into your host.
  6. Type the following command, replace “DATASTORE” with the name of your datastore you uploaded the VMware-ESXi-6.0.0-2494585-depot.zip file to.
    esxcli software vib update -d /vmfs/volumes/DATASTORE/VMware-ESXi-6.0.0-2494585-depot.zip
  7. Once the above completes reboot your host by typing:
    reboot

That’s it, now enjoy your newly upgraded ESXi hosts to ESXi 6.0.

If you have a lot of hosts to upgrade the faster way would most likely be to use VMware Update Manager (VUM). For more details about VUM be sure to check out my post on how to upgrade ESXi host to ESXi 5.5 using VMware Update Manager 5.5 – the process is largely the same minus using an ESXi 6.0 ISO obviously.

Similar Posts

  • My VMware ESXi Home Lab Upgrade

    Although the focus in my career right now is certainly more cloud focused in Amazon Web Services and Azure, I still use my home lab a lot.

    For the last 5+ years my home lab had consisted of using 3x Intel NUC’s (i5 DC53427HYE), a Synology NAS for shared storage and an HP ProCurve switch. This setup served me well for most of those years. It has allowed me to get many of the certifications I have, progress in my career and have fun as well.

    At the start of this year I decided it was time to give the home lab an overhaul. At first I looked at the newest generation of Intel NUC’s but really wasn’t looking forward to dropping over $1,300 on just partial compute (I’d still need to be RAM for each of the 3 NUC’s). I also wanted something that just worked, no more fooling around with network adapter drivers or doing this tweak or that tweak.

    I also no longer needed to be concerned about something that had a tiny footprint. I also questioned if I really needed multiple physical ESXi hosts. My home lab isn’t running anything mission critical and if I really wanted I could always build additional nested VMware ESXi hosts on one powerful machine if I needed.

    So in the end, the below is what I settled on. Replacing all of my compute, most of my networking and adding more storage!

    Read More “My VMware ESXi Home Lab Upgrade”

  • VMware Certified Professional 6 (VCP6-DCV) now available

    VMware VCP DCV

    VMware has just recently announced that the VMware Certified Professional 6 (VCP6-DCV) is now available. The new VCP6 exam is similar to the others in the past whereas the VCP6 aims to validate your ability to deploy, configure, administer and scale a vSphere virtualized data center, including administering and troubleshooting virtualization technologies such as:

    • vSphere HA and DRS Clusters
    • Storage virtualization using VMFS
    • Storage DRS and Storage I/O Control
    • Network virtualization using vSphere standard and distributed switches and Network I/O Control
    • vSphere management using vCenter Server and vRealize Operations Manager Standard
    • Virtual Machines

    Read More “VMware Certified Professional 6 (VCP6-DCV) now available”

  • VMware vSphere 7 announced

    VMware vSphere 7

    Some pretty big news coming out of VMware today. The announcement of VMware vSphere 7 to become available May 1, 2020! One of the biggest item coming out of this news so far is that vSphere 7 will come in two options.

    The first being vSphere 7 as we all have known it to be for years and then the second being vSphere 7 with Kubernetes which will be available through VMware Cloud Foundation and is a new generation of vSphere for containerized applications.

    Other notables is that the flash based vSphere client is FINALLY no more! From here on out, only the HTML 5 will exist. vCenter Server on Windows will also finally be put to rest and new deployments of vCenter server will be done using the tried and tested vCenter Server Appliance (VCSA) based on PhotonOS linux.

    Read More “VMware vSphere 7 announced”

  • VMware vCenter Server 5.5.0a update released

    VMware has released an update to vCenter 5.5 Server. The new updated, numbered 5.5.0a doesn’t appear to add any new features but instead focus on squishing a number of bugs in the 5.5 version – mostly around vCenter Single-Sign-On and the vSphere web client.

    Issues resolved with this release are as follows:

    1. Attempts to upgrade vCenter Single Sign-On (SSO) 5.1 Update 1 to version 5.5 might fail with error code 1603
    2. Attempts to log in to the vCenter Server might be unsuccessful after you upgrade from vCenter Server 5.1 to 5.5
    3. Unable to change the vCenter SSO administrator password on Windows in the vSphere Web Client after you upgrade to vCenter Server 5.5 or VCSA 5.5
    4. VPXD service might fail due to MS SQL database deadlock for the issues with VPXD queries that run on VPX_EVENT and VPX_EVENT_ARG tables

    Read More “VMware vCenter Server 5.5.0a update released”

  • VMware Update Manager U3e upgrade failing? Un-install it!

    VMware Update Manager U3e error

    I was recently upgrading a VMware environment from vCenter Server Update 3b to Update 3e and during the scheduled change I had also planned on upgrading VMware Update Manager to Update 3e and ran into the following error:

    VMware Workstation unrecoverable error: (vthread-3)
    GetProcAddress: Failed to resolve ENGINE)load_aesni: 127
    You can request support.

    Looking for a possible solution at the VMware Knowledge Base came back with no results and to error message wasn’t overly useful either with “VMware Workstation unrecoverable error: (vthread-3)” as Workstation wasn’t installed on this server.

    Read More “VMware Update Manager U3e upgrade failing? Un-install it!”

  • How to install VMware vCenter Log Insight

    VMware vCenter Log Insight

    Log Insight is a real-time log management and analytics solution, and one of VMware’s newest product. Log Insight was recently updated to version 2.0 and available to download here.

    Below we’ll go through the steps to installing VMware Log Insight and you’ll soon see just how easy it is to get Log Insight up and running.

    Read More “How to install VMware vCenter Log Insight”

Leave a Reply

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

One Comment

  1. You say ‘april 10’ a few times, but you appear to be updating to april 1: ‘ESXi-6.0.0-20150404001’ . Probably that’s the last one before the 10th, but if you’re choosing an arbitrary date you may want to explain that it’s not a typo (10 vs 01) . :-D