Upgrade vCenter via cli/ssh

  1. Download ISO (Product Patches) to Datastore
  2. Connect ISO to vCenter
  3. SSH:

Command> software-packages stage –iso –acceptEulas
[2021-09-01T07:53:14.244] : ISO mounted successfully
[2021-09-01T07:53:15.244] : Evaluating packages to stage…
[2021-09-01T07:53:15.244] : Verifying staging area
[2021-09-01T07:53:15.244] : ISO unmounted successfully
[2021-09-01T07:53:15.244] : Staging process completed success
fully

Command> software-packages list –staged
[2021-09-01T07:54:39.244] :
productname: VMware vCenter Server Appliance
eulaAcceptTime: 2021-09-01 07:53:15 UTC
buildnumber: 18010531
tags: []
severity: Critical
rebootrequired: True
version: 6.7.0.48000
TPP_ISO: False
size in MB: 1938
releasedate: May 25, 2021
updateversion: True
kb: https://docs.vmware.com/en/VMware-vSphere/6.7/rn/vsphere-vcenter-server-67u3n-release-notes.html#full_patch
summary: Patch for VMware vCenter Server Appliance 6.7.0
category: Bugfix
leaf_services: ['vmware-pod']
name: VC-6.7.0U3n-Appliance-FP
version_supported: ['']
thirdPartyInstallation: False
vendor: VMware, Inc.

Command> software-packages install –staged
[2021-09-01T07:56:00.244] : Validating software update payload
[2021-09-01T07:56:00.244] : Validation successful
[2021-09-01 07:56:00,125] : Copying software packages [2021-09-01T07:56:00.244] : ISO mounted successfully
181/181
[2021-09-01T07:56:29.244] : ISO unmounted successfully
[2021-09-01 07:56:30,803] : Running test transaction ….
[2021-09-01 07:56:34,857] : Running pre-install script…..
[2021-09-01 07:59:09,122] : Upgrading software packages ….
[2021-09-01T08:04:23.244] : Setting appliance version to 6.7.0.48000 build 18010531
[2021-09-01 08:04:23,885] : Running pre-patch script…..
[2021-09-01 08:04:24,896] : Running post-patch script…..
[2021-09-01T08:05:06.244] : Packages upgraded successfully, Reboot is required to complete the installation.

Command> shutdown reboot -r „patch reboot“

About Author:

Error! Keyboard not detected. Press any key to continue.