Published on

VMware vRealize LifeCycle Manager

Authors
  • Name
    Jackson Chen

References

VMware vRealize Suite Lifecycle Manager Documentation

https://docs.vmware.com/en/VMware-vRealize-Suite-Lifecycle-Manager/index.html

vRealize LifeCycle Manager

https://www.vmware.com/au/products/vrealize-lifecycle-manager.html

vRealize Suite LifeCycle Manager - Getting Started

https://virtualg.uk/vrealize-suite-lifecycle-manager-getting-started/

How to add product binary for products managed by vRSLCM

Adding the product binary to vRSLCM, so we can upgrade the products frm vRealize Suite Lifecycle Manager

# Login to vRealize Suite Lifecycle Manager
 Lifecycle Operations -> Settings -> Binary Mapping -> Click ADD BINARIES

Note:
    1. Using WinScp and copy the product update binary files to vRSLCM  /data/temp directory
    2. After successfully upgrade the product, then delete the update binary files from /data/temp

Troubleshooting

postgre service account password expired

# SSH to vRSLCM
systemctl | grep failed     # find the failed service
systemctl status user@1001.service -l    # this service is used by postgres

If user@1001.service failed to start, reture error
    pam_unix (systemd-user:account): expired password for user postgres (password aged)
chage -M 9999 postgres      # set postgres service password age to 9999 days
chage -l postgres       # verify password expiration day

systemctl start user@1001.service   # start user@1001.service
systemctl status vpostgress.service -l     # verify vpostgres.service

How to upgrade vRealize Suite Lifecycle Manager 8.x

https://docs.vmware.com/en/VMware-vRealize-Suite-Lifecycle-Manager/8.6/com.vmware.vrsuite.lcm.8.6.doc/GUID-DD8074D5-E1C9-4900-B324-8D9744C314B4.html

Prerequisites
  1. Verify that you meet the system requirements. See System Requirements.
  2. Take a snapshot of the vRealize Suite Lifecycle Manager virtual appliance. If you encounter any problems during upgrade, you can revert to this snapshot.
  3. Verify that no critical tasks are currently in progress in vRealize Suite Lifecycle Manager. The upgrade process stops and starts vRealize Suite Lifecycle Manager services and reboots the vRealize Suite Lifecycle Manager virtual appliance, which might corrupt tasks that are in progress.
  4. If you are upgrading vRealize Suite Lifecycle Manager through a repository URL or CD-ROM, ensure that you download the vRealize Suite Lifecycle Manager upgrade binary from MyVMware portal in advance. The file name must be -VMware-vLCM-Appliance-8.X.X.XX-XXXXXXXX-updaterepo.iso.
Note:
    You cannot use the easy installer iso file for an vRealize Suite Lifecycle Manager upgrade, 
    you must use the vRealize Suite Lifecycle Manager upgrade iso file.
Procedure
  1. From the My services dashboard, click Lifecycle Operations and click Settings.
  2. Click System Upgrade.

vRealize Suite Lifecycle Manager displays the name, version number, and vendor of the current vRealize Suite Lifecycle Manager appliance. 3. Select the repository type for vRealize Suite Lifecycle Manager updates

a. Check Online
b. URL
c. CD-ROM
    Note: 
    a. uplod the update ISO file to datastore where vRSLCM VM can access it
    b. Edit VM, and select the ISO file and connect to the VM
  1. Click CHECK FOR UPGRADE.

After few minutes, vRealize Suite Lifecycle Manager displays a message indicating whether there are updates available. 5. Select the Repository Type, and then click UPGRADE.

    a. When vRealize Suite Lifecycle Manager is not connected to the internet, 
        you can download the "vRealize Suite Lifecycle Manager Update Repository Archive" binary from My VMware Portal.
    b. The downloaded ISO should be attached to vRealize Suite Lifecycle Manager VM's virtual CD-ROM drive. 
        To do this, you can either upload the ISO in a content library of the vCenter server hosting vRealize Suite Lifecycle Manager 
        or you can upload in a datastore that the vRealize Suite Lifecycle Manager VM can access. 
        After uploading, you must attach the ISO to the vRealize Suite Lifecycle Manager VM's CD-ROM device by editing the VM's hardware configuration from the vCenter inventory. From vRealize Suite Lifecycle Manager UI, select CD-ROM based upgrade option and proceed.
  1. Select the checkbox on product snapshots under Prerequisite, and then click Next.
  2. Click RUN PRECHECK. Once the precheck validation is complete, you can then download the report to view the checks and validation status.
  3. Click Upgrade after a successful precheck validation.
  4. After a few minutes, login to the vRealize Suite Lifecycle Manager UI and check for the upgrade successful message in the Settings > System Upgrade.

On an upgrade completion,vRealize Suite Lifecycle Manager displays the message upgrade completion message. If you do not see this message, wait for a few minutes and refresh the UI.

How to upgrade vRealize LifeCycle Manager Offline

https://vmwarecode.com/2021/02/06/how-to-upgrade-vrlcm-vidm-vra-to-8-3-step-by-step/

# Upgrade process
1. Download vRealize Suite Lifecycle Manager 8.3.0 Update Repository Archive
    Download VMware-vLCM-appliance-<version>-updaterepo.iso
2. Attach the ISO to vRLCM VM
    a. Copy the ISO to datastore
    b. Edit VM settings and mount CD
3. Loing to vLCM console
    -> Settings -> System Upgrade
4. At "Select Repository Type", select
    a. Check Online
    b. URL
    c. CD-ROM   <------ Select CD-ROM
5. Do NOT forget to take snapshot before click Install
6. The install/upgrade then starts
    It will take about 20 minutes for the upgrade, system will reboots
7. Once the system is upgraded, go to Settings -> System Details
    Verify the version has been upgraded

How to upgrade vIDM from vRLCM

#**** Upgrade process
# Prerequisite
1. Snapshot vIDM VM before upgrade

# Upgrade
1. Download vIDM offline upgrade package for vRealize LCM cusomters
    Download "VMware Identity Manager offline upgrade package for vRLCM only"
    File name: identity-manager<version>-updaterepo-lcm.tar.gz
2. Using WinSCP to Copy/upload the gz file to vRLCM
    /data/temp/ directory
3. Login to vRLCM, navigate to Settings -> Binary Mappings
    Click Add Binaries
4. On "Location Type"
    a. Local    <------ Select Local
    b. NFS
    c. My VMware 
5. On "Base Location", type /data/temp, and click "Discover"
    a. Select vIDM gz file
    b. click ADD
6. Once the Request is submit, click on request page to see the status
7. Once request is done, go to Global Environment
    a. click View Details
    b. You will see the upgrade button for vIDM new version
    Note:
        Make sure you have taken the snapshot in vCenter for vIDM
    c. click Inventory Sync
8. Once Sync is completed, you will see PROCEED button is enabled
9. Once you click on proceed, you will see review configuration page
    a. Click NEXT
    b. Click RUN PRECHECK
10. Once you click on RUN PRECHECK, you may see pop for confirmation of the snapshot, 
    and make sure you have disabled the Stand by nodes in Load Balancer
    Note: 
        For cluster VMware Identity Manager upgrade, ensure to disable ALL
        the standby nodes in the load-balancer, so that the traffic is not routed
        to the stand by nodes and enable them back once the upgrade is completed.
    a. Select "I took care of the manual steps above and am ready to proceed"
11. Once Precheck is completed, you will see health check has performed and status
    a. click NEXT
    b. Click SUBMIT
12. click Request and check Request Details
    It will take about 30 minutes for the upgrade 

Upgrade vRA Offline from vRLCM

After successfully upgrade vRLCM and vIDM, proceed to upgrade vRA

# Prerequisite
1. SSH to vRA appliance, follow the upgrade and patching process
    #Upgrade or patching process
    a. Run the /opt/scripts/deploy.sh --onlyClean script first
    b. After vRA has stopped the services cleanly, then
    c. Take a backup or snapshot of the vRA appliance
    d. Run /opt/scripts/deploy.sh
    e. Check operation finishes and ensure services healthy and data integrity

# Downlad the update file
1. Download VMware vRealize Automation <version> Update Repository
    File name: Prelude_VA-<version>-updaterepo.iso
2. Transfer the ISO to vRLCM using WinSCP
    /data/temp      # copy the vRLCM /data/temp directory

# Upgrade
1. Login to vRLCM
2. Navigate to Settings -> Binary Mappings
    a. Click Add Binaries
3. On Add product Binary
    a. On Location Type, select Local
        - Local     <--- Select Local
        - NFS
        - My VMware
    b. On Base Location, type
        /data/temp
    c. click Discover
    d. Select Prelude_VA-<version>-updaterepo.iso
    e. Click Add
4. Go to Request page, and view status
5. Once mapping is done, click on environment where vRA is added
    a. Click View Details
6. Click vRA icon, and click Upgrade
7. Once you click on upgrade, it will ask for Inventory sync
    a. Click Trigger Inventory Sync
8. Once inventory sync is completed, click Proceed
9. It will ask to take Snapshot, take snapshot
10. Click Next
    Once you click Next, it will prompt to run pre-check
11. On Manual Validations window
    a. Select "I took care of the manual steps above and am ready to proceed
        Note:
         Make sure you have checked the hardware compatibility and Resource guidance
    b. Click RUN PRECHECK
    c. Verify and ensure it passes all the pre-checks
12. Click Next
13. Click Submit
14. Click Request to view upgrade status
    It take couple of hours for the upgrade
15. Verify and ensure the upgrade has been successfully done

Using the vRealize Suite Lifecycle Manager (vRSLCM) API for vRSLCM Day 2 Operations - Upgrading vRSLCM

https://thecloudxpert.net/2022/01/31/using-vrslcm-api-to-manage-vrslcm-upgrades/