ESXi Host Upgrade 6.7 to 7.0 using VCSA

Posted on

ESXi Host Upgrade in vCenter

Open VMware vSphere Client in your web browser to access vCenter.

There are two ESXi 6.7 hosts in this example, and these hosts are managed by vCenter 7.0.2. Shut down virtual machines on the ESXi hosts that you want to upgrade or migrate those VMs to other ESXi hosts. You can practice upgrading ESXi hosts in a virtual environment by running ESXi hosts and vCenter as virtual machines.

Let’s upgrade the ESXi host with IP address is 192.168.101.65. Select the needed ESXi host and check the current hypervisor version. As you can see in the screenshot below, the current version of our ESXi host before upgrade is 6.7.0 build 10302608. If you want to upgrade multiple ESXi hosts, you can select a cluster or a datacenter.

Checking the current ESXi version in VMware vSphere Client before starting ESXi upgrade

  1. Open Lifecycle Manager. You can do it by using different methods:
    • Click Home and in the left pane (navigation pane) click Lifecycle Manager, OR
    • Click Menu in the top of the vSphere Client window, and hit Lifecycle Manager.
  2. Once you have opened VMware Lifecycle Manager in vSphere Client, select the Imported ISOs tab and click Import ISO.

Importing the VMware ESXi 7.0 U2 installation ISO image for performing VMware ESXi upgrade

  1. Hit Browse and select the ESXi 7 Update 2 installation ISO image file. You can download the ESXi installation image from the VMware website after registration (a VMware account is required).

Browsing the installation ISO image for ESXi 6.7 to 7.0 upgrade

Once you have selected the ISO file, the importing process starts. In this example, the VMware-VMvisor-Installer-7.0U2-17630552.x86_64.iso file is used.

The ESXi 7.0 installation ISO image is uploading to the repository of Lifecycle Manager

After importing the ISO file, you can see the ESXi 7.0 Update 2 installation image in the Imported ISOs tab.

  1. Click New baseline to create a new baseline.

Creating a new baseline after importing the ISO image

Name and Description. Enter the baseline name and description, for example, ESXi 7.0 Update 2 and ESXi 7.0 Update 2 baseline.

Entering a name and description for a new baseline

Select ISO. Select the ESXi 7 ISO image you have uploaded before (VMware-VMvisor-Installer-7.0U2-17630552.x86_64.iso). The displayed name is based on the corresponding ESXi profile (ESXi-7.0.2-17630552-standard).

Selecting the ESXi 7.0 installation ISO image for a new baseline

Summary. Review your selections before finishing creating the baseline.

Checking the summary for a new baseline creation

A baseline has now been created.

  1. Go back to the Hosts and clusters screen, select the ESXi host that must be updated (192.168.101.65 in our case), and in the top right corner of the interface, click the Updates tab.

Selecting the Updates tab after selecting the ESXi host that must be upgraded

When the baseline has been created, you have to attach that baseline to ESXi hosts you want to update. As you remember, we are going to update a single ESXi host in this walkthrough.

  1. Hit Baselines, scroll down and find the Attached Baselines section, then click Attach and in the menu that opens, click Attach Baseline or Baseline Group.

Attaching a baseline or baseline group to the selected ESXi host for configuring the VMware ESXi upgrade

Select the ESXi7.0 Update 2 baseline you have created before and click Attach. If there are any other baselines attached, remove those baselines by selecting them and clicking Detach.

VMware upgrade - selecting the baseline to attach

  1. Now you have to check compliance. This step is needed to check whether the ESXi host has already the update installed. If you see the non-compliant status, it means that the update is not installed on your ESXi host. Click Check Compliance.

Checking compliance before performing ESXi upgrade

As you can see on the next screenshot, the ESXi status after checking is non-compliant and it means that you can install the needed update and upgrade ESXi 6.7 to ESXi 7.0 Update 2.

The non-compliant status notifies you that updates have not been installed on an ESXi host yet

Pre-check remediation checks for any compliance issues that may occur after installing updates and the ESXi upgrade.

Running pre-check remediation to check for any compliance issues that may occur after VMware ESXi upgrade

As you can see in the screenshot below, there are no issues after running remediation pre-check. Hit Done and go to upgrade the ESXi host.

VMware upgrade - no issues found after remediation pre-check

  1. In the Attached Baselines section, select your ESXi 7.0 Update 2 baseline created before and click Remediate to start the ESXi 6.7 to 7.0 upgrade process.

Clicking Remediate to start the upgrade process of ESXi 6.7 to ESXi 7.0

  1. A pop-up screen appears. Read the End User License Agreement (EULA) and select the I accept the terms and license agreement checkbox. Hit OK to continue.

The end user license agreement must be accepted to perform the upgrade to ESXi 7.0

  1. Make sure that your ESXi host is selected and hit Remediate to upgrade ESXi 6.7 to 7.0. Don’t forget that virtual machines must be powered off or migrated from the ESXi host that is being upgraded.

Remediating the selected ESXi 6.7 host for an upgrade to VMware ESXi 7.0 U2

You can see the ESXi upgrade progress in the Recent task toolbar that can be expanded at the bottom of the VMware vSphere Client interface. The ESXi host is automatically entered into maintenance mode to install the upgrade.

The ESXi host is entered into maintenance mode and the upgrade process is started

  1. When the ESXi upgrade process is finished, maintenance mode is turned off for the host, and the upgraded ESXi host is ready to work. You can select the ESXi host in the Hosts and Clusters view and check the version after the ESXi upgrade. As you can see in the screenshot below, the version is now ESXi 7.0.2, 17630552.

The ESXi host has been upgraded to version 7.0 successfully

If you see that a license is expired after an ESXi 6.7 to 7.0 upgrade on the upgraded host, you should apply a vSphere 7.0 license.

If you need to upgrade an ESXi host on which a vCenter VM (a virtual appliance that is also known as VCSA) is running you can use one of the following approaches:

  • Migrate the vCenter VM to another ESXi host and upgrade the source ESXi host.
  • Shut down the vCenter VM and other VMs running on the ESXi host and upgrade ESXi by using ESXCLI as explained in the first part of this blog post. Note that SSH access must be enabled, and the lockdown mode must be disabled (you must be able to manage an ESXi host directly without vCenter).

Source