1. VCSA升级步骤
注:如果VCSA大版本升级,需要使用VCSA安装介质的安装界面中的“Upgrade”方式来升级。
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,可以根据KB 2143838来找到目标版本号,如6.7.0.54000,然后将链接中的版本号更改为目标版本号,就可以通过官网下载升级)
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
注1:如果报以下的’Could not find a trusted signer.'的错误:
[InstallationError]
(‘VMW_bootbank_net-vmxnet3_1.1.3.0-3vmw.670.3.104.16075168’, ‘Could not find a trusted signer.’)
vibs = VMW_bootbank_net-vmxnet3_1.1.3.0-3vmw.670.3.104.16075168
Please refer to the log file for more details.
则在升级命令中加上–no-sig-check的参数,如“ esxcli software profile update --no-sig-check --depot=/vmfs/volumes/5d41147d-0ddc9eaf-fac2-000423b3bd4e/ISO/ESXi670-202210001.zip --profile=ESXi-6.7.0-20221004001-standard”。
注2:如果ESXi是OEM的版本,使用profile update升级可能会报以下错误,提示依赖错误:
[DependencyError]
VIB DEL_bootbank_dell-configuration-vib_6.5-3A06 requires esx-version << 6.7.0, but the requirement cannot be satisfied within the ImageProfile
此时可以通过install命令来升级ESXi,但是同时会移除掉OEM相关的VIB(或者手工使用命令esxcli software vib remove -n先删除这些VIB,然后再执行以上的profile update升级),如果确实需要这些VIB,那么需要在升级完成后再单独安装这些VIB。
[Exception]
You attempted to install an image profile which would have resulted in the removal of VIBs ['QLC_bootbank_qedf_1.3.42.50-1OEM.600.0.0.2768847', 'VMware_bootbank_vmware-fdm_6.7.0-20540798', 'QLC_bootbank_nqlcnic_6.0.63-1OEM.650.0.0.4240417', 'INT_bootbank_net-i40e_2.0.7-1OEM.600.0.0.2494585', 'QLC_bootbank_qedrntv_3.11.16.0-1OEM.650.0.0.4598673', 'DEL_bootbank_dell-configuration-vib_6.5-3A06', 'QLC_bootbank_scsi-qedil_1.15.15.0-1OEM.600.0.0.2494585', 'DellEMC_bootbank_dellemc-osname-idrac_6.5-2A00', 'Avago_bootbank_dell-shared-perc8_06.806.90.00-1OEM.650.0.0.4598673']. If this is not what you intended, you may use the esxcli software profile update command to preserve the VIBs above. If this is what you intended, please use the --ok-to-remove option to explicitly allow the removal.
Please refer to the log file for more details.
(esxcli software profile install --depot /vmfs/volumes/vsan:52f1a69c8cad0934-cad95119a5007d0a/51856464-14b8-43d0-b71e-e41f13b5e440/ESXi670-202210001.zip --profile=ESXi-6.7.0-20221004001-standard --ok-to-remove)
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
esxcli system version get
附:升级到7.0.3命令:
esxcli software vib remove -n net55-r8168
esxcli software vib remove -n vmkusb
esxcli software vib list
esxcli software sources profile list --depot=/vmfs/volumes/64403533-062bfea6-ba42-801844e0f58e/ISO/vmware-esxi-7.0u3m-21686933-depot.zip
esxcli software profile update --depot=/vmfs/volumes/64403533-062bfea6-ba42-801844e0f58e/ISO/vmware-esxi-7.0u3m-21686933-depot.zip --profile=ESXi-7.0U3m-21686933-standard
升级到8.0.1命令:
esxcli software vib remove -n ipmitool (does not have sha-256 gunzip checksum)
esxcli software vib list
esxcli software sources profile list --depot=/vmfs/volumes/64403533-062bfea6-ba42-801844e0f58e/ISO/VMware-ESXi-8.0U1-21495797-depot.zip
esxcli software profile update --depot=/vmfs/volumes/64403533-062bfea6-ba42-801844e0f58e/ISO/VMware-ESXi-8.0U1-21495797-depot.zip --profile=ESXi-8.0U1-21495797-standard --no-hardware-warning
参考:
Build numbers and versions of VMware vCenter Server (2143838)
Product Interoperability Matrix
vCenter Server Back-in-time release upgrade restriction (67077)
Dependency error in ESXi upgrade from 6.5 to 6.7