VMWare ESXiにログインしようとすると変なエラーメッセージが出たので対策しました

ESXi
スポンサーリンク

モジャです。
Google Chromeをバージョンアップした後からVMWare ESXiにログインしようとすると「処理されない例外(1)」「予期しないエラーが発生しました。」という下画像のようなエラーが発生するようになりました。ググってみるとChromeのバージョンアップが影響しているとのこと。esx-uiのバージョンを上げると解消するらしい。esx-ui単独でパッチを当てることも出来るが、バージョンの整合性が取れなくなるということでESXi全体にパッチを当てることにしました。

エラーメッセージ


1.My VMWareから最新版のパッチをダウンロード

My VMWareにログインし、「製品->製品パッチ」を選択します。

製品(ESXi)とバージョン(6.0.0)を選択し、最新版のパッチをダウンロードします。最新版だけを適用すれば良く、差分を順番に適用していく必要はありません。

2.パッチをデータストアにアップロード

ESXiにログインし、データストアブラウザを開きます。

任意の場所を選択し、アップロードをクリック

先ほどダウンロードした最新版のパッチをダウンロードファイルが置いてあるPCからESXiのデータストアにzipファイルのままアップロードします。

3.パッチを適用

ESXiにSSHで接続出来るように設定変更します。

Mac上のターミナルからESXiにSSHで接続します。チャレンジレスポンス方式とパスワード認証方式がありますが、家の中だしパスワード認証(暗号化されない)方式で繋ぎます。

[bash]
PC(Mac):~ User$ ssh root@192.XXX.XXX.XXX
Password:
The time and date of this login have been sent to the system logs.

VMware offers supported, powerful system administration tools. Please
see www.vmware.com/go/sysadmintools for details.

The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
[/bash]

今のESXiのバージョンを確認。

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

ダウンロードしたパッチのプロファイルを確認する。4種類あり、末尾にsがついているものはセキュリティパッチのみ。no-toolsはVMWareToolsが無いバージョン。
普通はs無しかつstandardのバージョンを選べば良い。

[bash]
[root@localhost:~] esxcli software sources profile list -d /vmfs/〜/ESXi600-201706001.zip
Name Vendor Acceptance Level
——————————– ———— —————-
ESXi-6.0.0-20170604001-no-tools VMware, Inc. PartnerSupported
ESXi-6.0.0-20170601001s-no-tools VMware, Inc. PartnerSupported
ESXi-6.0.0-20170604001-standard VMware, Inc. PartnerSupported
ESXi-6.0.0-20170601001s-standard VMware, Inc. PartnerSupported
[/bash]

上記バージョンのうち、「ESXi-6.0.0-20160302001-standard」のソフトウェアプロファイルを確認。

[bash]
[root@localhost:~] esxcli software profile get ESXi-6.0.0-20160302001-standard
Name: ESXi-6.0.0-20160302001-standard
Vendor: VMware, Inc.
Creation Time: 2016-08-06T00:40:06
Modification Time: 2016-08-06T00:40:53
Stateless Ready: True
Description:

For more information, see http://kb.vmware.com/kb/2142190.

VIBs: ata-pata-amd 0.3.10-3vmw.600.0.0.2494585, ata-pata-atiixp 0.4.6-4vmw.600.0.0.2494585, ~
#沢山出てくる
[/bash]

dry run でインストールの検証。実際にはインストールされない。引数にzipファイル名とプロファイル名を指定する。

[bash]
[root@localhost:/vmfs/~] esxcli software profile update –dry-run -d /~/ESXi600-201706001.zip -p ESXi-6.0.0-20170604001-standard
Update Result
Message: Dryrun only, host not changed. The following installers will be applied: [BootBankInstaller, LockerInstaller]
Reboot Required: true
VIBs Installed: VMware_bootbank_ehci-ehci-hcd_1.0-4vmw.600.3.69.5572656,~
#またまた沢山出てくる
[/bash]

検証でエラーが出ていなかったので、実際にインストールします。適用できたらリブートします。

[bash]
[root@localhost:/vmfs/~] esxcli software profile update -d /vmfs/~/ESXi600-201706001.zip -p ESXi-6.0.0-20170604001-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-4vmw.600.3.69.5572656, ~
#同じだけ沢山出てくる
[root@localhost:~] reboot
#最後にリブート
[/bash]

再起動後に再度SSHでログインし、プロファイルが更新されていることを確認します。

[bash]
[root@localhost:~] esxcli software profile get
(Updated) ESXi-6.0.0-20160302001-standard
Name: (Updated) ESXi-6.0.0-20160302001-standard
Vendor: localhost
Creation Time: 2017-07-09T06:10:23
Modification Time: 2017-07-09T06:10:30
Stateless Ready: True
Description:

(Original Vendor):VMware, Inc.
2017-07-09T06:10:23.228092+00:00: The following VIBs are
installed:
esx-tboot 6.0.0-3.57.5050593
xhci-xhci 1.0-3vmw.600.3.69.5572656
sata-ahci 3.0-26vmw.600.3.57.5050593
vsanhealth 6.0.0-3000000.3.0.3.69.5572665
net-vmxnet3 1.1.3.0-3vmw.600.2.43.4192238
ehci-ehci-hcd 1.0-4vmw.600.3.69.5572656
net-e1000e 3.2.2.1-2vmw.600.3.57.5050593
esx-xserver 6.0.0-3.66.5485776
vsan 6.0.0-3.69.5568629
qlnativefc 2.1.50.0-1vmw.600.3.57.5050593
esx-ui 1.19.0-5387100
#お目当のパッチが当たっています。
lsu-lsi-lsi-mr3-plugin 1.0.0-3vmw.600.3.57.5050593
net-ixgbe 3.7.13.7.14iov-20vmw.600.3.57.5050593
esx-base 6.0.0-3.69.5572656
tools-light 6.0.0-3.66.5485776
lsu-hp-hpsa-plugin 2.0.0-4vmw.600.3.57.5050593
lsu-lsi-megaraid-sas-plugin 1.0.0-3vmw.600.3.57.5050593
misc-drivers 6.0.0-3.69.5572656
———-
For more information, see http://kb.vmware.com/kb/2142190.

VIBs: ata-pata-amd 0.3.10-3vmw.600.0.0.2494585,~
[/bash]

めでたくエラーが出なくなりました。こんなことばっかりしてて、EAの開発が滞っています。

コメント

タイトルとURLをコピーしました