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.
- 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.
- Once you have opened VMware Lifecycle Manager in vSphere Client, select the Imported ISOs tab and click Import ISO.
- 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).
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.
After importing the ISO file, you can see the ESXi 7.0 Update 2 installation image in the Imported ISOs tab.
- Click New baseline to create a new baseline.
Name and Description. Enter the baseline name and description, for example, ESXi 7.0 Update 2 and ESXi 7.0 Update 2 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).
Summary. Review your selections before finishing creating the baseline.
A baseline has now been created.
- 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.
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.
- 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.
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.
- 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.
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.
Pre-check remediation checks for any compliance issues that may occur after installing updates and the 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.
- 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.
- 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.
- 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.
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.
- 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.
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).