How to change configuration settings for Hostd service in vSphere ESXi 7.0 Update 2
search cancel

How to change configuration settings for Hostd service in vSphere ESXi 7.0 Update 2

book

Article ID: 319967

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides steps to change the configuration setting for Hostd service in vSphere ESXi 7.0 Update 2.

Environment

VMware vSphere ESXi 7.0.0

Resolution

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:
  1. Run the command to create a temporary JSON file:
/bin/configstorecli config current get -c esx -g services -k hostd -outfile tmp.json
  1.  Run the command to edit the file:
/bin/vi tmp.json
  1. Run the command to apply the file to the Database:
/bin/configstorecli config current set -c esx -g services -k hostd -infile tmp.json
  1. 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