https://naba-san.hatenablog.com/


ESXi 6.7 のパッチ適用

redj.hatenablog.com

ほぼこちらの内容通りに実施。

 

まずは現在実行中のバージョンを確認しておく。

[root@esxi1:~] esxcli software profile get
(Updated) ESXi-6.7.0-20200804001-standard-customized
Name: (Updated) ESXi-6.7.0-20200804001-standard-customized
Vendor: VMware, Inc.
Creation Time: 2020-09-29T23:21:14
Modification Time: 2021-04-25T15:11:21
Stateless Ready: True
Description:

2020-09-29T23:21:13.881252+00:00: The following VIBs are
installed:
vmkusb-nic-fling 2.1-6vmw.670.2.48.39203948
----------
Updates ESXi 6.7 Image Profile-ESXi-6.7.0-20200804001-standard
(customized)

VIBs: (略)

 

最新のパッチをダウンロードして、SCPでESXi ホストに転送しておく。
SSHを有効にした後、WinSCPか何かで転送すればOK。

https://my.vmware.com/ja/group/vmware/patch#search

[root@esxi1:/vmfs/volumes/6084****-********-****-**********42/ESXi_Update] ls -la
total 467072
drwxr-xr-x 1 root root 73728 Apr 25 14:46 .
drwxr-xr-t 1 root root 77824 Apr 25 14:46 ..
-rw-r--r-- 1 root root 476662495 Apr 25 14:44 ESXi670-202103001.zip

 

パッチZIPに含まれるプロファイルを確認。

[root@esxi1:/vmfs/volumes/6084****-********-****-**********42/ESXi_Update] esxcli software sources profile list -d /vmfs/volumes/6084****-********-****-**********42/ESXi_Update/ESXi670-202103001.zip
Name Vendor Acceptance Level Creation Time Modification Time
-------------------------------- ------------ ---------------- ------------------- -------------------
ESXi-6.7.0-20210301001s-no-tools VMware, Inc. PartnerSupported 2021-03-04T10:17:40 2021-03-04T10:17:40
ESXi-6.7.0-20210304001-standard VMware, Inc. PartnerSupported 2021-03-04T10:17:40 2021-03-04T10:17:40
ESXi-6.7.0-20210301001s-standard VMware, Inc. PartnerSupported 2021-03-04T10:17:40 2021-03-04T10:17:40
ESXi-6.7.0-20210304001-no-tools VMware, Inc. PartnerSupported 2021-03-04T10:17:40 2021-03-04T10:17:40 

 no-tools と standard は文字通り VMware Tools を含むかどうか、末尾のs有無はセキュリティ更新のみ(s付き)か否か(sなし)を示すらしい。

 

必要に応じてプロファイルの詳細を確認する。

[root@esxi1:/vmfs/volumes/6084****-********-****-**********42/ESXi_Update] esxcli software sources profile get -p ESXi-6.7.0-20210304001-standard -d /vmfs/volumes/6084****-********-****-**********42/ESXi_Update/ESXi670-202103001.zip
ESXi-6.7.0-20210304001-standard
Acceptance Level: PartnerSupported
Name: ESXi-6.7.0-20210304001-standard
Vendor: VMware, Inc.
Creation Time: 2021-03-04T10:17:40
Modification Time: 2021-03-04T10:17:40
Stateless Ready: True
Description:

Updates ESXi 6.7 Image Profile-ESXi-6.7.0-20210304001-standard

(以下略)

 

更新実施(メンテナンスモード→適用)

[root@esxi1:/vmfs/volumes/6084****-********-****-**********42/ESXi_Update] vim-cmd hostsvc/maintenance_mode_enter
[root@esxi1:/vmfs/volumes/6084****-********-****-**********42/ESXi_Update] esxcli software profile update -d /vmfs/volum
es/6084****-********-****-**********42/ESXi_Update/ESXi670-202103001.zip -p ESXi-6.7.0-20210304001-standard
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: (略)

再起動

[root@esxi1:/vmfs/volumes/6084****-********-****-**********42/ESXi_Update] reboot

 

再起動後のバージョンを取得、モジュールが色々更新されていることを確認。

[root@esxi1:~] esxcli software profile get
(Updated) ESXi-6.7.0-20210304001-standard
Name: (Updated) ESXi-6.7.0-20210304001-standard
Vendor: VMware, Inc.
Creation Time: 2021-04-25T15:10:56
Modification Time: 2021-04-25T15:11:21
Stateless Ready: True
Description:

2021-04-25T15:10:56.058635+00:00: The following VIBs are
installed:
nvme 1.2.2.28-4vmw.670.3.132.17167734
vmkusb 0.1-1vmw.670.3.143.17700523
vmw-ahci 2.0.7-2vmw.670.3.143.17700523
tools-light 11.2.5.17337674-17700514
vsan 6.7.0-3.143.17661912
esx-base 6.7.0-3.143.17700523
esx-update 6.7.0-3.143.17700523
vsanhealth 6.7.0-3.143.17665851
cpu-microcode 6.7.0-3.139.17700514
----------
2020-09-29T23:21:13.881252+00:00: The following VIBs are
installed:
vmkusb-nic-fling 2.1-6vmw.670.2.48.39203948
----------
Updates ESXi 6.7 Image Profile-ESXi-6.7.0-20200804001-standard
(customized)

VIBs: (略)

 

メンテナンスモードを終了

[root@esxi1:~] vim-cmd hostsvc/maintenance_mode_exit

 

 お疲れさまでした。