今天因為 VM 裡面行為怪怪的決定來升級一下 ESXi host。
升級指令通常滿簡單的,打開防火牆,撈一下有哪些可以升級
esxcli network firewall ruleset set -e true -r httpClient
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep -i ESXi-6.7ESXi-6.7.0–20190401001s-standard VMware, Inc. PartnerSupported 2019–11–25T11:42:42 2019–11–25T11:42:42
ESXi-6.7.0–20190801001s-standard VMware, Inc. PartnerSupported 2019–11–25T11:42:42 2019–11–25T11:42:42
ESXi-6.7.0–20181004001-no-tools VMware, Inc. PartnerSupported 2019–11–25T11:42:42 2019–11–25T11:42:42
ESXi-6.7.0–20181002001-standard VMware, Inc. PartnerSupported 2019–11–25T11:42:42 2019–11–25T11:42:42
....
選好後下指令開始升級
esxcli software profile update -p ESXi-6.7.0–20191204001-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCT
ION/main/vmw-depot-index.xml
不過這次先遇到很奇怪的錯誤.. 但硬碟看起來都還有空間
[InstallationError]
[Errno 28] No space left on device
vibs = VMware_bootbank_esx-base_6.7.0–3.89.15160138
Please refer to the log file for more details.
接著想說先把這個暫存檔刪掉
rm /tmp/vibdownload/VMware_bootbank_esx-base_6.7.0–3.89.15160138.vib
換安裝另一個版本看看
esxcli software profile update -p ESXi-6.7.0–8169922-standard -d https:
//hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
結果遇到另外一個錯誤 XD
[InstallationError]
Failed to create ramdisk vibdownload
最後發現.. 把虛擬機都關掉就可以正常運作啦。
esxcli software profile update -p ESXi-6.7.0–8169922-standard -d https:
//hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xmlUpdate Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
VIBs Installed: VMW_bootbank_ata-libata-92_3.00.9.2–16vmw.670.0.0.8169922, VMW_bootbank_ata-pata-amd_0.3.10–3vmw.670.0.0.8169922, VMW_bootbank_ata-pata-atiixp_0.4.6–4vmw.670.0.0.8169922, VMW_bootbank_ata-pata-cmd64x_0.2.5–3vmw.670.0.0.8169922, VMW_bootbank_ata-pata-hpt3x2n_0.3.4–….
有遇到的人可以嘗試一下看看。
鼠年行大運!