Difference between revisions of "Updating vCenter and ESXi hosts using internal Lifecycle Manager"

From Notes_Wiki
(Created page with "<yambe:breadcrumb self="Updating vCenter and ESXi hosts using internal Lifecycle Manager">VMWare vCenter|VMWare vCenter</yambe:breadcrumb> =Updating vCenter and ESXi hosts usi...")
 
m
Line 24: Line 24:
## After reboot if host was put manually in maintenance mode, remove it from maintenance mode
## 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.
## 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:
<pre>
software-packages install --url
</pre>
This applies the update again / properly and seems to solve issue with partial / failed updates.





Revision as of 16:31, 9 March 2021

<yambe:breadcrumb self="Updating vCenter and ESXi hosts using internal Lifecycle Manager">VMWare vCenter|VMWare vCenter</yambe:breadcrumb>

Updating vCenter and ESXi hosts using internal Lifecycle Manager

To update vCenter and ESXi hosts using vCenter internal Lifecycle manager use following steps:

  1. First login into vCenter and go to Menu -> Lifecycle manager.
  2. Validate that Last sync happened within last 24 hours. If not use Actions -> "Sync Updates" menu option
  3. After Lifecycle manager is able to sync with online repositories, go to Menu -> "Hosts and clusters"
  4. Click on vCenter and then go to last "Updates" tab
  5. For updating vCenter use following steps
    1. Under "vCenter Server" select "Update Planner"
    2. Select the desired update and run pre-update check
    3. If pre-update check is successful there would be option to open appliance management at https://<ip-or-fqdn>:5480/
    4. Open appliance management, login as root and go to "Updates" option
    5. Choose "Stage and Install"
    6. 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"
    7. Once update is complete we should be able to login into vCenter or vCenter appliance management (5480 port)
  6. For updating hosts use following steps
    1. Under Hosts click on baselines
    2. For hosts click on "Check compliance"
    3. If hosts are shown as non-compliant to base lines "Host security patches" or "Critical host patches" below then click on "Pre-check remediation"
    4. Based on pre-check you may have to enable DRS, disconnect CD/DVD from some VMs, put host in maintenance mode, etc.
    5. Once that is done we can remediate hosts by selecting the base line and clicking "REMEDIATE"
    6. If host is suitable for patching / remediation, the updates will get installed and host will reboot
    7. After reboot if host was put manually in maintenance mode, remove it from maintenance mode
    8. 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.



<yambe:breadcrumb self="Updating vCenter and ESXi hosts using internal Lifecycle Manager">VMWare vCenter|VMWare vCenter</yambe:breadcrumb>