1.パッチの取得
2.パッチをEsxiへアップロード
ESXiのWeb管理画面から「データストアの参照」から「データストアブラウザ」を起動
適当な場所にアップロード
今回はdatabase1にパッチファイルを放り込む
3.メンテナンスモードへの切り替え
ESXiのWeb管理画面から「メンテナンスモードへの切り替え」選択
4.sshで接続
5.コマンドでパッチ適用
コマンドの概要
esxcli software sources profile list --depot=「ダウンロードファイル名」
でプロファイル名を確認して
esxcli software profile update -d 「ダウンロードファイル名」 -p 「プロファイル名」 --no-hardware-warning
でアップデート。
補足1「--no-hardware-warning」オプション
ESXi7.0から自作PCなどESXiのサポートされていないハードウェアを使う場合は「--no-hardware-warning」オプションを付けないとパッチを当てれなくなった。
補足2「ESXi-7.0b-」と「ESXi-7.0bs-」2つのプロファイル
たまに見慣れないプロファイルがパッチであるが以下のもの。
- ESXi-7.0bはセキュリティとバグ修正のイメージ
- ESXi-7.0bsはセキュリティのみのイメージ
実際のコマンド
esxcli software sources profile list --depot=「ダウンロードファイル名」
[root@AKASHI:~] esxcli software sources profile list --depot=/vmfs/volumes/datastore1/VMware-ESXi-7.0b-16324942-depot.zip Name Vendor Acceptance Level Creation Time Modification Time ---------------------------- ------------ ---------------- ------------------- ----------------- ESXi-7.0bs-16321839-standard VMware, Inc. PartnerSupported 2020-06-02T05:57:00 2020-06-02T05:57:00 ESXi-7.0bs-16321839-no-tools VMware, Inc. PartnerSupported 2020-06-02T05:57:00 2020-06-02T05:57:00 ESXi-7.0b-16324942-standard VMware, Inc. PartnerSupported 2020-06-02T17:26:43 2020-06-02T17:26:43 ESXi-7.0b-16324942-no-tools VMware, Inc. PartnerSupported 2020-06-02T17:26:43 2020-06-02T17:26:43 [root@AKASHI:~]
esxcli software profile update -d 「ダウンロードファイル名」 -p 「プロファイル名」
esxcli software profile update -d /vmfs/volumes/datastore1/VMware-ESXi-7.0b-16324942-depot.zip -p ESXi-7.0b-16324942-standard --no-hardware-warning
6.再起動
rebootコマンドで再起動