1. VCSA升级步骤
1)指定升级包的位置
software-packages stage --iso (如果是从vmware下载补丁,使用CD/DVD来映射ISO映像)
或
software-packages stage --url https://vapp-updates.vmware.com/vai-catalog/valm/vmw/8d167796-34d5-4899-be0a-6daade4005a3/6.7.0.20000.latest/ (示例的url是software-packages stage --help输出中显示的url,升级前的版本是6.7.0.20000,直接通过官网下载升级)
2)列出指定的升级包的信息
使用ISO的输出:
software-packages list --staged
[2023-05-26T08:50:02.146] :
productname: VMware vCenter Server Appliance
name: VC-6.7.0U3s-Appliance-FP
size in MB: 1899
buildnumber: 20540798
kb: https://docs.vmware.com/en/VMware-vSphere/6.7/rn/vsphere-vcenter-server-67u3s-release-notes.html#full_patch
vendor: VMware, Inc.
summary: Patch for VMware vCenter Server Appliance 6.7.0
version: 6.7.0.54000
releasedate: October 06, 2022
thirdPartyInstallation: False
tags: []
category: Bugfix
eulaAcceptTime: 2023-05-26 08:49:41 UTC
TPP_ISO: False
updateversion: True
severity: Critical
version_supported: ['']
leaf_services: ['vmware-pod']
rebootrequired: True
使用URL的输出:
[2023-05-26T07:54:08.146] :
thirdPartyAvailable: False
severity: Critical
rebootrequired: True
name: VC-6.7.0U3s-Appliance-FP
productname: VMware vCenter Server Appliance
summary: Patch for VMware vCenter Server Appliance 6.7.0
category: Bugfix
thirdPartyInstallation: False
nonThirdPartyAvailable: True
size in MB: 1899
leaf_services: ['vmware-pod']
url: https://vapp-updates.vmware.com/vai-catalog/valm/vmw/8d167796-34d5-4899-be0a-6daade4005a3/6.7.0.20000.latest/
releasedate: October 06, 2022
eulaAcceptTime: 2023-05-26 07:53:10 UTC
TPP_ISO: False
kb: https://docs.vmware.com/en/VMware-vSphere/6.7/rn/vsphere-vcenter-server-67u3s-release-notes.html#full_patch
vendor: VMware, Inc.
tags: []
buildnumber: 20540798
version: 6.7.0.54000
version_supported: ['']
updateversion: True
3)安装指定的升级包
software-packages install --staged
使用ISO的输出:
[2023-05-26T08:50:24.146] : Validating software update payload
[2023-05-26T08:50:24.146] : Validation successful
[2023-05-26 08:50:24,458] : Copying software packages [2023-05-26T08:50:24.146] : ISO mounted successfully
206/206
[2023-05-26T08:51:15.146] : ISO unmounted successfully
[2023-05-26 08:51:15,248] : Running test transaction ....
[2023-05-26 08:51:31,329] : Running pre-install script.....
[2023-05-26 08:52:01,398] : Upgrading software packages ....
[2023-05-26T09:02:43.146] : Setting appliance version to 6.7.0.54000 build 20540798
[2023-05-26 09:02:44,252] : Running pre-patch script.....
[2023-05-26 09:02:48,272] : Running post-patch script.....
[2023-05-26T09:03:19.146] : Packages upgraded successfully, Reboot is required to complete the installation.
使用URL的输出:
[2023-05-26T07:54:43.146] : Validating software update payload
[2023-05-26T07:54:43.146] : Validation successful
[2023-05-26 07:54:43,197] : Copying software packages 239/239
[2023-05-26 08:11:26,250] : Running test transaction ....
[2023-05-26 08:11:28,276] : Running pre-install script.....
[2023-05-26 08:13:21,426] : Upgrading software packages ....
[2023-05-26T08:17:51.146] : Setting appliance version to 6.7.0.54000 build 20540798
[2023-05-26 08:17:51,922] : Running pre-patch script.....
[2023-05-26 08:17:52,939] : Running post-patch script.....
[2023-05-26T08:19:42.146] : Packages upgraded successfully, Reboot is required to complete the installation.
4)重启VCSA
shutdown reboot -r updating
5)查看升级后的版本
# vpxd -vl
VMware VirtualCenter 6.7.0 build-20504362
2. ESXi主机升级步骤
1)从VMware Customer Connect(https://customerconnect.vmware.com/patch)下载补丁:
From the Select a Product drop-down menu, select ESXi (Embedded and Installable) and from the Select a Version drop-down menu, select 6.7.0.
2)查看当前ESXi版本:
vmware -v
VMware ESXi 6.7.0 build-8169922
3)查看补丁包的profile:
esxcli software sources profile list --depot=/vmfs/volumes/64403533-062bfea6-ba42-801844e0f58e/ISO/ESXi670-202210001.zip
Name Vendor Acceptance Level Creation Time Modification Time
-------------------------------- ------------ ---------------- ------------------- -------------------
ESXi-6.7.0-20221004001-standard VMware, Inc. PartnerSupported 2022-09-21T13:36:44 2022-09-21T13:36:44
ESXi-6.7.0-20221001001s-standard VMware, Inc. PartnerSupported 2022-09-21T13:36:44 2022-09-21T13:36:44
ESXi-6.7.0-20221004001-no-tools VMware, Inc. PartnerSupported 2022-09-21T13:36:44 2022-09-21T13:36:44
ESXi-6.7.0-20221001001s-no-tools VMware, Inc. PartnerSupported 2022-09-21T13:36:44 2022-09-21T13:36:44
4)升级补丁:
esxcli software profile update --depot=/vmfs/volumes/64403533-062bfea6-ba42-801844e0f58e/ISO/ESXi670-202210001.zip --profile=ESXi-6.7.0-20221004001-standard
5)重启ESXi主机
esxcli system maintenanceMode set -e true -m noAction
esxcli system shutdown reboot -r “reboot”
6)查看升级后的ESXi版本:
vmware -v
VMware ESXi 6.7.0 build-20497097
来源:
Build numbers and versions of VMware vCenter Server (2143838)
VMware vCenter Server 6.7 Update 3s Release Notes
VMware ESXi 6.7, Patch Release ESXi670-202210001