ESXiでは不定期にアップデートパッチが提供されています。
VIBというパッケージで管理されていますが、逐一VMwareのサーバからダウンロードしてホストマシンに転送して適用するのは面倒ですので
Web経由でアップデートしたいと思います。
SSH経由で行いますので、SSHを有効化しておく必要があります。
既存の設定の確認
プロファイルの確認
esxcli software profile get
ーーー
Name: ESXi-6.5.0-20170104001-standard
Vendor: VMware, Inc.
Creation Time: 2017-07-16T20:37:50
Modification Time: 2017-07-16T20:39:25
Stateless Ready: True
ーーー
ビルドの確認
esxcli system version get
Product: VMware ESXi
Version: 6.5.0
Build: Releasebuild-4887370
Update: 0
Patch: 9
ーーー
適用済みVIBの確認
esxcli software vib list
省略
メンテナンスモードにする(Webから)
ファイアウォールの設定確認
esxcli network firewall ruleset list | grep httpClient
httpClient false
http通信の許可
esxcli network firewall ruleset set --ruleset-id=httpClient --enabled=true
アップデートプロファイルの確認
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-6.5 | sort
ーーー
ESXi-6.5.0-20170104001-no-tools VMware, Inc. PartnerSupported
ESXi-6.5.0-20170104001-standard VMware, Inc. PartnerSupported
ESXi-6.5.0-20170301001s-no-tools VMware, Inc. PartnerSupported
ESXi-6.5.0-20170301001s-standard VMware, Inc. PartnerSupported
ESXi-6.5.0-20170304001-no-tools VMware, Inc. PartnerSupported
ESXi-6.5.0-20170304001-standard VMware, Inc. PartnerSupported
ESXi-6.5.0-20170304101-no-tools VMware, Inc. PartnerSupported
ESXi-6.5.0-20170304101-standard VMware, Inc. PartnerSupported
ESXi-6.5.0-20170404001-no-tools VMware, Inc. PartnerSupported
ESXi-6.5.0-20170404001-standard VMware, Inc. PartnerSupported
ESXi-6.5.0-4564106-no-tools VMware, Inc. PartnerSupported
ESXi-6.5.0-4564106-standard VMware, Inc. PartnerSupported
アップデート
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.5.0-20170404001-standard
アップデートがない場合
Update Result
Message: Host is not changed.
Reboot Required: false
VIBs Installed:
VIBs Removed:
VIBs Skipped:
アップデートがあった場合
Update Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
VIBs Installed: ずらずらと
設定を戻す
esxcli network firewall ruleset set --ruleset-id=httpClient --enabled=false
再起動
reboot
以上でアップデートが適用されました。