Patching vCenter Server Appliance via CLI
search cancel

Patching vCenter Server Appliance via CLI

book

Article ID: 370115

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Patching vCenter server via command line

Resolution

  • Download the .iso or full patch ISO from the customer connect portal.
  • Upload the patch to an existing data store and attach the iso to the vCenter VM.
  • Enable SSH and Bash Shell in the vCenter VM, reference document: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vcenter.configuration.doc/GUID-D58532F7-E48C-4BF2-87F9-99BA89BF659A.html
  • Login to the VCSA using putty and stage the packages located in the .ISO file using below command:
    software-packages stage --iso

 

  • Accept the terms and conditions to proceed further:
  • After the staging completes, you can run the below command to install the staged packages:
    software-packages install --staged
  •  Once completed, it will give an output stating "Packages upgraded successfully, Reboot is required to complete the installation”.
  •  Post this reboot the VCSA machine.

Additional Information

Reference document : https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vcenter.upgrade.doc/GUID-5FCA78EC-8637-43A4-8B28-24624E4D5EBA.html