ESXI 7 patch update via esxcli zip(2023-07-10)
# 開啟ssh
(1) 主機屏幕修改連項:Troubleshoot options\Disable ESXi Shell (Enable) & Disable SSH (Enable)
Alt+ F1 進入命令行
(2) GUI 下在服務中,開啟 running TSM, TSM-SSH.
vmware -vl
esxcli system maintenanceMode get
esxcli system maintenanceMode set --enable yes
# 維護模式開啟
esxcli system maintenanceMode get
chmod 755 /vmfs/volumes/datastore1/patch/*
# 可以不執行
(Way 1)
-------
esxcli software vib update -d /vmfs/volumes/datastore1/patch/VMware-ESXi-7.0b-16324942-depot.zip
# 不檢查硬件兼容性
(Way 2)
-------
esxcli software profile update -p ESXi-7.0U3i-20842708-standard -d /vmfs/volumes/64aba5bc-40c6a4ac-31a2-000c29fe177e/patch/VMware-ESXi-7.0U3i-20842708-depot.zip
# 查看可升級的profile name
esxcli software profile update -p ESXi-7.0U3i-20842708-standard -d /vmfs/volumes/64aba5bc-40c6a4ac-31a2-000c29fe177e/patch/VMware-ESXi-7.0U3i-20842708-depot.zip --no-hardware-warning
# --no-hardware-warning 略過檢查硬件兼容性
reboot -f
esxcli system maintenanceMode set --enable no
# 維護模式關閉
other command
-------------
esxcli system shutdown poweroff -r=required
# 必須在維護模式下才可
Kevin Fan
2023-07-11