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

  • How to add Realtek R8168 to ESXi 5.5 Update 2 ISO

    Realtek

    Over the past weekend I was working on a whitebox ESXi host and wanted to upgrade it to ESXi 5.5 Update 2 from an older version of ESXi 5.1 using a realtek R8168 network card. While I could have performed an in place upgrade, such as via command line, a clean install was preferred. However, VMware has removed a number of NIC drivers from ESXi 5.x and trying to install with the base ESXi image would result in a “No Network Adapters” error during install.

    In order to do a clean install you have to re-add the Realtek R8168 NIC drivers back into the ESXi 5.5 image, otherwise a NIC will not be found and thus ESXi will not install. These are the steps to easily re-add the Realtek R8168 drivers into ESXi 5.5 ISO by making a custom ESXi 5.5 image.

    Read More “How to add Realtek R8168 to ESXi 5.5 Update 2 ISO”

  • 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”

  • Installing Windows 10 on VMware Workstation 10

    windows 10 on vmware workstation 10

    VMware just announced VMware Workstation 11, which includes support for Windows 10 Tech Preview along with several other latest version operating systems, but you don’t have to wait until December when Workstation 11 is released. You can install Windows 10 on VMware Workstation 10 now!

    Installation is simple and everything seems to function just fine, VMware tools installs too.

    Read More “Installing Windows 10 on VMware Workstation 10”

  • 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”

  • HTML5 Embedded Host Client, this looks promising

    It’s no secret many people have really disliked the vSphere web client, it’s very sluggish, clunky, and based on flash (flash comes with it’s own security issues). It was rumored and highly hoped that vSphere 6 might be re-written in HTML5, but sadly this didn’t and hasn’t happened yet. While vSphere 6 did improve a bit on the web client the issues many people have had with it in the past still remain today.

    Enter the VMware HTML5 Embedded Host Client fling. I’ve been using and following this fling for a while now and have really enjoyed it and with each release it keeps getting better and better.

    The Embedded Host Client fling is based on HTML5 which allows it works great across all kinds of platforms, it’s fast, responsive, and doesn’t require any plug-ins – YES the VM console works great. If this happens to be a look of what’s to come in a new VMware vSphere web client, then a client is looking very promising!

    If you haven’t tried it yet, you should. It’s extremely easy to install and doesn’t even require a reboot just follow these simple instructions.

    Read More “HTML5 Embedded Host Client, this looks promising”

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