本文實作版本
- 目前版本:VMware vSphere ESXi 8.0U3c
- 升級目標:VMware vSphere ESXi 8.0U3f
重要提示
如果是跨版本升級,先到 VMware Product Interoperability Matrix 查詢 upgrade path,照著上面的路線逐版升級。
正文
首先,先去非常囉嗦的 Broadcom Support Portal 下載需要的 patch,然後上傳到 ESXi 主機上的 datastore。
Broadcom 成功的讓 patch 的取得方式變得更複雜,偉哉 Broadcom。
偶然在這篇文章得知可以透過第三方鏡像進行更新,> 在 VMware ESXi Patch Tracker 這個網站可以很直觀的看到各種 patch,而 vmware.digiboy.ir 這個網站提供了 patch 直連下載。
將 esxcli 相關指令的 -d/--depot 參數用 URL 替換掉檔案路徑的話就是以在線升級模型執行。
esxcli software profile update -d
esxcli software profile install -d
esxcli software sources profile list -d
透過 esxcli software sources profile list 指令查看 patch 內容。
1
2
3
4
5
|
[root@localhost] esxcli software sources profile list -d /vmfs/volumes/64fb4bdd-d7814c2f-9e46-c4cbe1a6b654/esxi_patches/VMware-ESXi-8.0U3f-24784735-depot.zip
Name Vendor Acceptance Level Creation Time Modification Time
----------------------------- ------------ ---------------- ------------------- -----------------
ESXi-8.0U3f-24784735-no-tools VMware, Inc. PartnerSupported 2025-07-15T00:00:00 2025-07-15T00:00:00
ESXi-8.0U3f-24784735-standard VMware, Inc. PartnerSupported 2025-07-15T00:00:00 2025-07-15T00:00:00
|
確認過沒問題後,透過 esxcli software profile update 指令,帶 --dry-run 參數模擬升級,預覽升級結果。
1
2
3
4
5
6
7
8
9
10
11
|
[root@localhost] esxcli software profile update --dry-run \
-d /vmfs/volumes/64fb4bdd-d7814c2f-9e46-c4cbe1a6b654/esxi_patches/VMware-ESXi-8.0U3f-24784735-depot.zip \
-p ESXi-8.0U3f-24784735-standard
Update Result
Message: Dryrun only, host not changed. The following installers will be applied: [BootBankInstaller, LockerInstaller]
VIBs Installed: VMW_bootbank_iavmd_3.0.0.1010-12vmw.803.0.70.24674464, ...
VIBs Removed: VMW_bootbank_iavmd_3.0.0.1010-11vmw.803.0.0.24022510, ...
VIBs Skipped: VMW_bootbank_atlantic_1.0.3.0-13vmw.803.0.0.24022510, ...
Reboot Required: true
DPU Results:
|
模擬升級結果看起來沒問題的話就可以拿掉 --dry-run 參數執行升級 (注意第二行 Message 的變化)。
1
2
3
4
5
6
7
|
Update Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
VIBs Installed: VMW_bootbank_iavmd_3.0.0.1010-12vmw.803.0.70.24674464, ...
VIBs Removed: VMW_bootbank_iavmd_3.0.0.1010-11vmw.803.0.0.24022510, ...
VIBs Skipped: VMW_bootbank_atlantic_1.0.3.0-13vmw.803.0.0.24022510, ...
Reboot Required: true
DPU Results:
|
執行完畢後重新啟動系統,收工。
補充說明: update vs install
esxcli software profile update: 只更新已存在的 VIB。
- 主機上不存在的 VIB 不會安裝。
- 使用時機:適合在已有映像架構中,做小幅版本升級、安全性修補,或微幅改動。尤其 VMware 只支援這種方式來套用官方 ZIP 映像更新。
esxcli software profile install: 將 depot 內所有的 VIB 完全安裝(覆蓋)到主機上。
- 主機上不存在的 VIB 會全部安裝。
- 主機上已存在,但不存在 depot 內的 VIB 會被移除(清除舊有元件)。
- 可能會導致降級或移除原有驅動/套件。需謹慎使用。
- 使用時機:當你要重置主機的完整映像版本,或確保主機與某個映像完全一致時使用。不適合僅做 patch update 的場景。
Update History
- 2025-07-31
- 增加在線模式升級方式說明。
- 實作版本 7.0 -> 8.0。
References