ESXi手動アップデート

ESXi 6.0のCLIによるバージョンアップ方法

ESXi6からやり方が少し変わったので手動でのESXiアップデート方法をまとめました。

【1.現在のバージョンを確認する】

アップデート前のバージョンを記録する。

※これ以降の手順はTeraTerm等のログ保存を有効にしておくと良いでしょう。

[root@localhost:~] esxcli system version get
Product: VMware ESXi
Version: 6.0.0
Build: Releasebuild-3620759
Update: 2
Patch: 34

【2.現在のVIB情報を取得】

更新前のVIB情報を記録する。

[root@localhost:~] esxcli software vib list
Name Version Vendor Acceptance Level Install Date
----------------------------- ------------------------------------ ------ ---------------- ------------
mtip32xx-native 3.8.5-1vmw.600.0.0.2494585 VMWARE VMwareCertified 2016-12-23
ata-pata-amd 0.3.10-3vmw.600.0.0.2494585 VMware VMwareCertified 2016-12-23
ata-pata-atiixp 0.4.6-4vmw.600.0.0.2494585 VMware VMwareCertified 2016-12-23
以下省略

【3.ESXiをメンテナンスモードに変更】

ESXiのアップデートはメンテナンスモードに設定しないと適用出来ないためメンテナンスモードに設定する。

“get”でメンテナンスモードの状況を確認する。Disabledであれば無効、Enabledであれば有効

[root@localhost:~] esxcli system maintenanceMode get
Disabled
[root@localhost:~] esxcli system maintenanceMode set -e true
[root@localhost:~] esxcli system maintenanceMode get
Enabled

【4.アップデートのプロファイルを確認】

-no-tools は、VMware Tools を含めないプロファイル。

s-* はセキュリティ修正のみのプロファイル。

通常は[-standard]で良いと思います。

[root@localhost:~] esxcli software sources profile list -d /vmfs/volumes/Datastore_HDD01/ISO/ESXi600-201611001.zip
Name Vendor Acceptance Level
-------------------------------- ------------ ----------------
ESXi-6.0.0-20161104001-standard VMware, Inc. PartnerSupported
ESXi-6.0.0-20161101001s-no-tools VMware, Inc. PartnerSupported
ESXi-6.0.0-20161101001s-standard VMware, Inc. PartnerSupported
ESXi-6.0.0-20161104001-no-tools VMware, Inc. PartnerSupported

【5.アップデートを適用をテストする】

カスタムISOでインストールした場合にメーカー製のドライバ(VIB)が上書きされてしまい、動作に不具合が出る場合があるためVIBs Installed、VIBs Removedで削除出来ない物が無いかを確認する。

 

http://blogs.vmware.com/jp-cim/2015/06/esxi-6-patch.html

-dオプションはアップデートファイルの場所

-pオプションは手順4で確認したプロファイルを指定する。

[root@localhost:~] esxcli software profile update --dry-run -d /vmfs/volumes/Datastore_HDD01/ISO/ESXi600-201611001.zip -p ESXi-6.0.0-20161104001-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: VMware_bootbank_ehci-ehci-hcd_1.0-3vmw.600.2.52.4600944, VMware_bootbank_esx-base_6.0.0-2.52.4600944, VMware_bootbank_esx-ui_1.9.0-4392584, VMware_bootbank_lsu-hp-hpsa-plugin_2.0.0-3vmw.600.2.52.4600944, VMware_bootbank_misc-drivers_6.0.0-2.52.4600944, VMware_bootbank_net-vmxnet3_1.1.3.0-3vmw.600.2.43.4192238, VMware_bootbank_vsan_6.0.0-2.52.4590152, VMware_bootbank_vsanhealth_6.0.0-3000000.3.0.2.52.4527730, VMware_bootbank_xhci-xhci_1.0-3vmw.600.2.52.4600944, VMware_locker_tools-light_6.0.0-2.43.4192238
VIBs Removed: VMware_bootbank_ehci-ehci-hcd_1.0-3vmw.600.2.34.3620759, VMware_bootbank_esx-base_6.0.0-2.34.3620759, VMware_bootbank_esx-ui_1.0.0-3617585, VMware_bootbank_lsu-hp-hpsa-plugin_1.0.0-1vmw.600.0.0.2494585, VMware_bootbank_misc-drivers_6.0.0-2.34.3620759, VMware_bootbank_net-vmxnet3_1.1.3.0-3vmw.600.2.34.3620759, VMware_bootbank_vsan_6.0.0-2.34.3563498, VMware_bootbank_vsanhealth_6.0.0-3000000.3.0.2.34.3544323, VMware_bootbank_xhci-xhci_1.0-3vmw.600.2.34.3620759, VMware_locker_tools-light_6.0.0-2.34.3620759
VIBs Skipped: VMWARE_bootbank_mtip32xx-native_3.8.5-1vmw.600.0.0.2494585
以下省略

【6.アップデートを適用する】

5の手順で問題なければアップデートを適用する。

[root@localhost:~] esxcli software profile update -d /vmfs/volumes/Datastore_HDD01/ISO/ESXi600-201611001.zip -p ESXi-6.0.0-20161104001-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: VMware_bootbank_ehci-ehci-hcd_1.0-3vmw.600.2.52.4600944, VMware_bootbank_esx-base_6.0.0-2.52.4600944, VMware_bootbank_esx-ui_1.9.0-4392584, VMware_bootbank_lsu-hp-hpsa-plugin_2.0.0-3vmw.600.2.52.4600944, VMware_bootbank_misc-drivers_6.0.0-2.52.4600944, VMware_bootbank_net-vmxnet3_1.1.3.0-3vmw.600.2.43.4192238, VMware_bootbank_vsan_6.0.0-2.52.4590152, VMware_bootbank_vsanhealth_6.0.0-3000000.3.0.2.52.4527730, VMware_bootbank_xhci-xhci_1.0-3vmw.600.2.52.4600944, VMware_locker_tools-light_6.0.0-2.43.4192238
VIBs Removed: VMware_bootbank_ehci-ehci-hcd_1.0-3vmw.600.2.34.3620759, VMware_bootbank_esx-base_6.0.0-2.34.3620759, VMware_bootbank_esx-ui_1.0.0-3617585, VMware_bootbank_lsu-hp-hpsa-plugin_1.0.0-1vmw.600.0.0.2494585, VMware_bootbank_misc-drivers_6.0.0-2.34.3620759, VMware_bootbank_net-vmxnet3_1.1.3.0-3vmw.600.2.34.3620759, VMware_bootbank_vsan_6.0.0-2.34.3563498, VMware_bootbank_vsanhealth_6.0.0-3000000.3.0.2.34.3544323, VMware_bootbank_xhci-xhci_1.0-3vmw.600.2.34.3620759, VMware_locker_tools-light_6.0.0-2.34.3620759
VIBs Skipped: VMWARE_bootbank_mtip32xx-native_3.8.5-1vmw.600.0.0.2494585
以下省略

【7.ESXiを再起動】

[root@localhost:~] reboot

【8.アップデート適用後のバージョンを確認する】

[root@localhost:~] esxcli system version get
Product: VMware ESXi
Version: 6.0.0
Build: Releasebuild-3620759
Update: 2
Patch: 34

【9.アップデート適用後のVIB情報を取得】

[root@localhost:~] esxcli software vib list
Name Version Vendor Acceptance Level Install Date
----------------------------- ------------------------------------ ------ ---------------- ------------
mtip32xx-native 3.8.5-1vmw.600.0.0.2494585 VMWARE VMwareCertified 2016-12-23
ata-pata-amd 0.3.10-3vmw.600.0.0.2494585 VMware VMwareCertified 2016-12-23
ata-pata-atiixp 0.4.6-4vmw.600.0.0.2494585 VMware VMwareCertified 2016-12-23
以下省略

【10.ESXiのメンテナンスモードを解除】

[root@localhost:~] esxcli system maintenanceMode get
Enabled
[root@localhost:~] esxcli system maintenanceMode set -e false
[root@localhost:~] esxcli system maintenanceMode get
Disabled

 

No Responses

Leave a Reply

Your email address will not be published. Required fields are marked *