Updating vCenter and ESXi hosts using internal Lifecycle Manager
Home > VMWare platform > VMWare vCenter > Updating vCenter and ESXi hosts using internal Lifecycle Manager
To update vCenter and ESXi hosts using vCenter internal Lifecycle manager use following steps:
- First login into vCenter and go to Menu -> Lifecycle manager.
- Validate that Last sync happened within last 24 hours. If not use Actions -> "Sync Updates" menu option
- After Lifecycle manager is able to sync with online repositories, go to Menu -> "Hosts and clusters"
- Click on vCenter and then go to last "Updates" tab
- For updating vCenter use following steps
- Under "vCenter Server" select "Update Planner"
- Select the desired update and run pre-update check
- If pre-update check is successful there would be option to open appliance management at https://<ip-or-fqdn>:5480/
- Open appliance management, login as root and go to "Updates" option
- Choose "Stage and Install"
- After download the appliance will reboot. After reboot the updates will install. The process should take considerable time. vCenter is typically available during the download part. If it is rebooting the console of vCenter will not show various URLs for 5480, 443 support bundle, 443 port etc. with appropriate IP/FQDN. Once properly booted these URLs will show up and update will happen at background. While update is going on if we try to login on appliance management at :5480 we can see error "Update installation is in progress"
- Once update is complete we should be able to login into vCenter or vCenter appliance management (5480 port)
- For updating hosts use following steps
- Under Hosts click on baselines
- For hosts click on "Check compliance"
- If hosts are shown as non-compliant to base lines "Host security patches" or "Critical host patches" below then click on "Pre-check remediation"
- Based on pre-check you may have to enable DRS, disconnect CD/DVD from some VMs, put host in maintenance mode, etc.
- Once that is done we can remediate hosts by selecting the base line and clicking "REMEDIATE"
- If host is suitable for patching / remediation, the updates will get installed and host will reboot
- After reboot if host was put manually in maintenance mode, remove it from maintenance mode
- The updates -> Hosts -> Baselines should now ideally show patched / remediated host as complaint.
Troubleshooting failed vCenter update
If vCenter update fails using above process then try to SSH to instance and use below command:
software-packages install --url
This applies the update again / properly and seems to solve issue with partial / failed updates.
Updating ESXi 6.7 to 7.0 using lifecycle manager
It is possible not only to do patch upgrade, but also to upgrade the version of ESXi from 6.7 to 7.0 using Lifecycle manager. To upgrade ESXi using lifecycle manager use:
- Login into vCenter and open Lifecycle manager
- Go to "Imported ISOs" option and click "Import ISO". Select vSphere 7.0 ISO image and import (upload) it.
- Selecte the uploaded ISO in "Imported ISOs" tab (after upload is finished) and click "New Baseline"
- After this go to "Hosts and Clusters" view and click on a single ESXi host. From the tabs in right pane go to "Updates" pane (last option on right)
- Under Hosts click on "Baselines". Attach the new baseline and select the newly created ESXi 7.0 baseline
- Put the host in maintenance mode
- Now we can install ESXi 7.0 on this host using Lifecycle manager. For this go to vCenter -> Updates tab
- Check the host for compliance and then remediate the host against ESXi 7.0 baseline
- Once the host is updated, we should be able to see updated 7.0 version on the host.
- Then we can remove the host from maintenance mode and proceed to update other hosts to 7.0.
Note: It is also possible to update host at ESXi level using downloaded files or using online repositories. For various different ways of updating ESXi host refer:
Updating vCenter by using patch search option
Other option to upgrade vCenter is using patches by:
- Search for patch using https://my.vmware.com/group/vmware/patch#search
- You can go to current vCenter appliance management https://<vcenter-ip-or-fqdn>:5480/ and see the build number.
- Search for patches for product "VC" using build number (eg 16620007) and the correct vCenter version.
- Download the ISO file
- Connect the ISO to vCenter VM
- In the appliance management go to update and select "CHECK UPDATES" -> "Check CD ROM" option
- Choose option to "Stage" or "Stage and Install" based on requirement
Home > VMWare platform > VMWare vCenter > Updating vCenter and ESXi hosts using internal Lifecycle Manager