LoginSignup
1
2

More than 5 years have passed since last update.

vCenterでクラスタにホストを接続できない場合

Last updated at Posted at 2016-08-12

内容

vCenterでクラスタにホストを接続できなかったときの、解決までのメモ

エラー

vCenterから「ホストの追加」->「接続設定」で「一般的なシステムエラー」となって進めない

トライ1

調べてみると下記リンクを発見
Adding a host to vCenter Server fails with general system error or vim.fault.NoPermission (3824568) | VMware KB :

とりあえず解決法をやってみる

#SSHでホストにログイン後、下記コマンドを実行

#get backup
mv /etc/vmware/hostd/authorization.xml /etc/vmware/hostd/authorization.xml.old

#restart management agent
/etc/init.d/hostd restart
/etc/init.d/vpxa restart
esxcli network ip interface set -e false -i vmk0; esxcli network ip interface set -e true -i vmk0

#all services restart
services.sh restart

->しかし、解決せず。。。

トライ2

結論、私の場合これ↓でした
Reconnecting an ESX host fails with the error: A general system error occurred: Internal error (1031652) | VMware KB :

とりあえず解決法をやってみたところ成功。

#SSHでホストにログイン後、下記コマンドを実行

#Backup the /etc/vmware/hostd/vmInventory.xml file.
mv /etc/vmware/hostd/vmInventory.xml /etc/vmware/hostd/vmInventory.xml.bak

#restart management agent
/etc/init.d/hostd restart
/etc/init.d/vpxa restart
esxcli network ip interface set -e false -i vmk0; esxcli network ip interface set -e true -i vmk0

#all services restart
services.sh restart

以下のように書いてありました。

If the ESX host connects successfully, then a corrupt virtual machine is preventing your ESX host from connecting to the vCenter Server inventory.

以前の仮想マシンのバックアップをovfとして、今回の環境にデプロイしたのですが、その際に、仮想マシンのインベントリ情報などが壊れてしまっていたようです。

以下のように進みます。

To resolve this issue, open the vmInventory.xml file, and add one virtual machine entry from the vmInventory.xml.bak file at a time, then add the ESX host into inventory until you have determined the problematic virtual machine.

「vmInventory.xml」を一つずつ追加/削除しながら、どの仮想マシンのインベントリ情報が壊れているかを特定します。

 <ConfigEntry id="0002">
    <objID>64</objID>
    <vmxCfgPath>/vmfs/volumes/4cb73eef-89346b13-8872-002219d2a8b2/Win 2003 Test/Win 2003 Test.vmx</vmxCfgPath>
  </ConfigEntry>

特定した後は、その仮想マシンのインベントリ情報を除いた状態で「ホストを追加」します。
その仮想マシンを「パワーオフ」後、「インベントリから除去」し、再登録します。

When you have determined the problematic virtual machine, you remove the entry in the vmInventory.xml file, then add the ESX host into inventory. Power off the virtual machine, unregister, and add the virtual machine to the inventory.

参考

Restarting the Management agents in ESXi (1003490) | VMware KB :

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2