NSX VIBs are specific to the version of ESXi that is installed on the host. If you upgrade ESXi, you must install new NSX VIBs appropriate for the new ESXi version.
When you upgrade to ESXi 6.5 or later with NSX 6.4 installed, vMotion of VMs to VXLAN prepared vSphere Distributed Switches on the upgraded host is blocked until the new NSX VIBs have been installed.
VMware recommends using vSphere Upgrade Manager to upgrade hosts to ESXi 6.5 or later in an NSX 6.4 environment.
- Upgrade ESXi
Once the ESXi upgrade completes, the host exits maintenance mode, however, you cannot move VMs connected to logical switches to the host until the next step has completed.
- Upgrade NSX VIBs
Once the VIBs are upgraded and the host has been removed from maintenance mode, you can move VMs connected to logical switches to the host.
Important: Some versions of NSX 6.4 and vSphere 6.5 and 6.7 are not interoperable. You must check the VMware Product Interoperability Matrix to verify which versions of vSphere and ESXi are compatible with your NSX Data Center for vSphere installation. See http://partnerweb.vmware.com/comp_guide2/sim/interop_matrix.php.
- Verify NSX 6.4 is installed.
- Check the NSX release notes to get information about NSX and vSphere interoperability. See https://docs.vmware.com/en/VMware-NSX-for-vSphere/index.html.
- Read the appropriate version of the vSphere documentation for detailed instructions on upgrading vSphere, including the vSphere Upgrade Guide and the Installing and Administering VMware vSphere Update Manager Guide.
- Verify Platform Services Controller and vCenter Server systems are upgraded to the new vSphere version.
- Verify vSphere Update Manager is installed and configured.
- Make sure the fully qualified domain names (FQDNs) of all hosts can be resolved.
- If DRS is disabled, power off or vMotion the VMs manually before beginning the upgrade.
- If DRS is enabled, the running VMs are moved automatically during the host cluster upgrade. Before beginning the upgrade, make sure that DRS can work in your environment.
- Make sure that DRS is enabled on the host clusters.
- Make sure that vMotion functions correctly.
- Check the host connection state with vCenter.
- Check that you have a minimum three ESXi hosts in each host cluster. During an NSX upgrade, a host cluster with only one or two hosts is more likely to have problems with DRS admission control. For a successful NSX upgrade, ensure that each host cluster has at least three hosts. If a cluster contains fewer than three hosts, manually evacuate the hosts.
- In a small cluster with only two or three hosts, if you have created anti-affinity rules stating that certain VMs must reside on separate hosts, DRS might fail to move the VMs during the upgrade. Either add additional hosts to the cluster or disable the anti-affinity rules during the upgrade and reenable them after the upgrade is finished. To disable an anti-affinity rule, go to Hosts and Clusters. In the Navigator, right-click the cluster, and click Settings. Navigate to . Edit the rule and deselect Enable rule.
- In the vSphere Web Client, navigate to .
- Follow the instructions in Import Host Upgrade Images and Create Host Upgrade Baselines to import a host upgrade image and create a host upgrade baseline.
- Click the ESXi Images tab, click Import ESXi Image and browse to the image you want to upload.
- Click the Host Baselines tab and click New Baseline. Use the New Baseline wizard to create a new Baseline, selecting Host Upgrade as the Baseline type.
- Upgrade one host at a time. Repeat these steps for each host.
- Navigate to Hosts and Clusters and select a host to upgrade. Do not select a cluster or datacenter.
- Right click the host and select . Use the Attach Baseline or Baseline Group wizard to select a baseline. See Attach Baselines and Baseline Groups to Objects in the vSphere documentation for full instructions.
- Right click the host and select . Use the Remediate wizard to select a baseline. See Remediate Hosts Against an Upgrade Baseline in the vSphere documentation for full instructions.
- If the host has status Not connected after the reboot, connect the host. Right click the host and select .
- To verify the upgrade is complete, right click the host and select Upgrades check box to scan for upgrade compliance. If the Compliance Status is Compliant, the upgrade is complete.
. Select the See Manually Initiate a Scan of ESXi Hosts in the vSphere documentation for full instructions.
- Navigate to .
- Locate the host on which you upgraded ESXi. The Installation Status or NSX Installation column displays Not Ready.
Click Not Ready to see more information.
- Select the host and click
to trigger NSX VIB installation.
If the cluster has DRS enabled, DRS will attempt to put the host into maintenance mode in a controlled fashion that allows the VMs to continue running. If DRS fails for any reason, the Resolve action halts. In this case, you may need to move the VMs manually and then retry the Resolve action or put the host into maintenance mode manually.Important: If you manually put a host into maintenance mode to install the host VIBs, you must verify that the host VIB install has completed before you take the host out of maintenance mode. The Host Preparation page will display Installing even though the install is complete.
- Check the Recent Tasks pane in the vSphere Web Client and verify all Install tasks have completed.
- Connect to the host command line and run the esxcli software vib list command. The first part of the VIB version displays the version of ESXi for the VIB.
After upgrade to ESXi 6.5 with NSX 6.4:
[root@host-2:~] esxcli software vib list ... esx-nsxv 6.5.0-0.0.XXXXXXX VMware VMwareCertified 2018-01-16 ...