以前のリリースでは、他のナレッジベースの記事に、構成ファイル (/etc/vmware/hostd/config.xml) を手動で直接編集し、ESXi の「hostd」サービスを再起動することで、「hostd」サービスの設定の一部を変更するという指示がありました。
7.0 U2 以降では、サービス構成はこのファイル (/etc/vmware/hostd/config.xml) ではなく、特殊な構成保存データベースに保存されます。
データベースの設定にアクセスするには、 /bin/configstorecli ツールを使用します。
設定するための手順:
- 次のコマンドを実行して、一時的な JSON ファイルを作成します。
/bin/configstorecli config current get -c esx -g services -k hostd -outfile tmp.json
- 次のコマンドを実行して、このファイルを編集します。
/bin/vi tmp.json
- 次のコマンドを実行して、このファイルをデータベースに適用します。次のコマンドを実行して、hostdサービスを再起動します。
/bin/configstorecli config current set -c esx -g services -k hostd -infile tmp.json
- 次のコマンドを実行して、hostdサービスを再起動します。
$ /etc/init.d/hostd restart
Notes:
- 可能なすべてのホスト構成プロパティを表示するには、次のコマンドを実行します:
# configstorecli schema get -c esx -g services -k hostd
- JSON "diff" を指定して1つのプロパティのみを "Update" するには、次のコマンドを実行します:
# configstorecli config current update -c esx -g services -k hostd -infile tmp.json
tmp.jsonには、変更が必要なプロパティのみを含めることができます。
E.g.:
# cat tmp.json
{
"some_sub_object": {
"some_property": "some_value"
}
}
#
- config store defaultデータベースでデフォルトのhostd構成を確認するには、次のコマンドを実行します:
# /bin/configstorecli config default get -c esx -g services -k hostd