In previous releases you may be instructed by other KB articles to change some settings of ESXi service "hostd" by directly editing its configuration file (
/etc/vmware/hostd/config.xml) manually and restarting the "hostd" service.
Since 7.0 U2 the service configuration settings are not stored in this file (
/etc/vmware/hostd/config.xml), but in a special config store database.
The settings in the database are accessible by a tool :
/bin/configstorecli.
Steps to configure the settings:
- Run the command to create a temporary JSON file:
/bin/configstorecli config current get -c esx -g services -k hostd -outfile tmp.json
- Run the command to edit the file:
/bin/vi tmp.json
- Run the command to apply the file to the Database:
/bin/configstorecli config current set -c esx -g services -k hostd -infile tmp.json
- Run the command to restart hostd service:
$ /etc/init.d/hostd restart
Note:
- To see all possible hostd configuration properties, run the command:
# configstorecli schema get -c esx -g services -k hostd
- We can "Update" only a single property by supplying a JSON "diff", run the command:
# configstorecli config current update -c esx -g services -k hostd -infile tmp.json
Where tmp.json can contain only the properties that need to be modified.
E.g.:
# cat tmp.json
{
"some_sub_object": {
"some_property": "some_value"
}
}
#
- To see the default hostd configuration in the config store default database, run the command:
# /bin/configstorecli config default get -c esx -g services -k hostd