Terminology
Baseline
A predefined or custom set of patches, extensions, or upgrades used to update an ESXi host or VM.
Dynamic vs Fixed
Dynamic baselines have selectable criteria for which patches are included.
Fixed baselines allow you to choose specific patches to include.
Attaching / Detaching
Baselines (or baseline groups) are attached to hosts (or clusters of hosts), and then you scan. What you’re attaching is actually just the metadata of the baseline.
Baseline Group
A bunch of baselines, or an aggregate of individual patch and upgrade baselines. An upgrade involves a release number change (e.g. vSphere 6.5 to 6.7). An smaller change uses a patch or update (e.g. vSphere 6.0 Update 1).
Scanning
The process of checking if the host(s) or VMs need any of the patches (etc.) in the baseline (or group).
Staging
The process of downloading the actual data of the patches ahead of remediating.
Remediating
The process of applying the patch, extension, or upgrade to an ESXi host or VM. The data will be downloaded if needed — if you didn’t stage the patches. So you need to attach, then scan, stage if you want, and then remediate.
Patch Metadata
Index files stored in the patch repository that list all known patches available for use by Update Manager.
Patch Repository
The directory on the Update Manager Server that holds the Patch Metadata as well as the patches.
Host Extension
Additional software to apply to a host.
VAMI
vCenter Server Appliance Management Interface.
vCenter Server Appliance is a VM that runs in ESXi and manages the entire vSphere environment, and you usually access it via its web UI. But it also has a separate web ui for managing itself, which is accessed at its URL on port 5480.
vsphere.company.com:5480
To update vCenter
(For example from build 6.7.0.10000 to 6.7.0.20000.)
Go to https://my.vmware.com/group/vmware/patch#search
Choose vc and download the latest patch.
In this case:
- Release name:
- VC-6.7.0-update01.Appliance-Patch
- release date
- 10.16.2018
- File name:
- VMware-vCenter-Server-Appliance-6.7.20000-10244745-patch-FP.iso
Then attach the iso to the Vcenter Appliance VM.
- Actions > Edit Settings > CD/DVD drive > attach datastore or client device file.
Make a snapshot
just in case.
Check for Updates
- Log into the VAMI as root:
- https://:5480
- Navigate to Update > Check Updates > Check CD-ROM + URL
- Twirl down the selected update and click RUN PRE-UPDATE CHECKS
- Click Stage only
- Click INSTALL
- You’ll need to make a small backup.
To make the backup
You can back up to a server via SCP, HTTPS, HTTPS, FTP, or FTPS (but not SFTP).
Enter the server address like so:
– protocol://:/path
– scp://backup.server.info:22/~
You’ll enter the user name and password separately.
If you get this ERROR:
Log into vCenter via SSH as root.
$ ssh root@vsphere.company.com
VMware vCenter Server Appliance 6.7.0.10000
Type: vCenter Server with an embedded Platform Services Controller
Password:
Connected to service
* List APIs: "help api list"
* List Plugins: "help pi list"
* Launch BASH: "shell"
Command>
Enable a BASH shell:
Command> shell
Shell access is granted to root
root@vcenter [ ~ ]#
Check the status of vCenter services with:
service-control --status
root@vcenter [ ~ ]# service-control --status
Stopped:
vmcam vmware-imagebuilder vmware-mbcs vmware-netdumper vmware-postgres-archiver vmware-rbd-watchdog vmware-vcha vsan-dps
Running:
applmgmt lwsmd pschealth vmafdd vmcad vmdird vmdnsd vmonapi vmware-analytics vmware-cis-license vmware-cm vmware-content-library vmware-eam vmware-perfcharts vmware-pod vmware-rhttpproxy vmware-sca vmware-sps vmware-statsmonitor vmware-sts-idmd vmware-stsd vmware-updatemgr vmware-vapi-endpoint vmware-vmon vmware-vpostgres vmware-vpxd vmware-vpxd-svcs vmware-vsan-health vmware-vsm vsphere-client vsphere-ui
root@vsphere [ ~ ]#
Start the service with
service-control --start
root@vcenter [ ~ ]# service-control --start vmware-postgres-archiver
Operation not cancellable. Please wait for it to finish...
Performing start operation on service vmware-postgres-archiver...
Successfully started service vmware-postgres-archiver
root@vcenter [ ~ ]#