Purpose
VMware ESX and ESXi provide advanced configuration options that affect the behavior of various components. This article provides steps to review and set new advanced configuration options using several methods. VMware recommends that you set these configuration options under the direction of VMware Technical Support or a VMware Knowledge Base article.
Numeric options have limited ranges (for example, 0-10). String options accept any value. Option values are not checked for validity beyond being in the proper range. Confirm all changes before applying them.
Caution: Some configuration options take effect immediately, whereas others require a reboot before taking effect. The impact of changing specific options is outside the scope of this article.
Resolution
Advanced configuration settings can be reviewed and modified on an ESX/ESXi host using the vSphere Web Client, vSphere Client, PowerCLI, Command-Line Interface, or local console.
All options are grouped into sections. A given method may visually group the sections or separate the section and option names using a forward slash or period. Options are usually documented using the form SectionName.OptionName
.
Setting advanced configuration options using the vSphere Web Client for ESXi 5.1
The vSphere Web Client lists advanced configuration options
To set advanced configuration settings using the vSphere Web Client:
- Connect to the vCenter Server using the vSphere Web Client.
- Select an ESXi host in the inventory.
- Click the Manage tab.
- Click the Settings sub-tab.
- Under the System heading, click Advanced System Settings. Settings are listed alphabetically by name similar to
SectionName.OptionName
. - (Optional) Click in the Filter box and search for an setting name.
- Select the setting by name from the list.
- Click the Edit pencil icon.
- Change the configuration option to the desired new value.
- Click OK to accept the changes.
Note: If an out-of-range value is specified, the vSphere Web Client indicates this with a red highlight around the new value.
Setting advanced configuration options using the vSphere Client for ESX/ESXi 3.0. 4.x, and 5.x
The vSphere Client lists configuration options grouped by sections on the left. The options list is not sorted.
To set advanced configuration options using the vSphere Client:
- Connect to the vCenter Server or the ESX/ESXi host using the vSphere Client.
- Select the ESX/ESXi host in the inventory.
- Click the Configuration tab.
- Under the Software heading, click Advanced Settings.
- Select the section on the left corresponding the option's section name.
- Locate the option name in the list on the right, these names are usually similar to
SectionName.OptionName
. - Specify a new value for setting.
- Click OK to accept the changes.
Note: If an out-of-range value is specified, the vSphere Client reports the error:The value entered is not valid. Enter another value.
Setting advanced configuration options using the vSphere PowerCLI
The VMware vSphere PowerCLI is a powerful command-line tool used to automate aspects of vSphere management. PowerCLI is distributed as a Windows PowerShell snapin. Commands can be run directly against an ESX/ESXi host, or target any ESX/ESXi host that vCenter Server manages. Section and option names are separated by a period.
To set advanced configuration options using the vSphere PowerCLI:
- Open a command prompt at the location where vSphere PowerCLI is installed.
- Connect to the ESX/ESXi host using the command:
Connect-VIServer
- Check the current value of an option using the
Get-VMHostAdvancedConfiguration
command:Get-VMHostAdvancedConfiguration -Name "SectionName.OptionName"
For example:Name Value
---- -----
SectionName.OptionName CurrentValue - Specify a new value for an option using the
Set-VMHostAdvancedConfiguration
command:Set-VMHostAdvancedConfiguration -Name "SectionName.OptionName" -Value "NewValue"
Note: If an out-of-range value is specified, the command fails with the fault:A specified parameter was not correct.
Setting advanced configuration options using esxcli for ESXi 5.x
The VMware vSphere ESX Command-Line Interface (esxcli) is use to run common system administration commands against ESXi hosts from any client with network access to those systems, or from the local ESXi host console. To set advanced configuration options using esxcli:
- Open a console at the location where esxcli is installed. For more information, see the VMware vSphere Command Line Interface documentation.
- Check the current value of an option using the
esxcli
command:- For runtime options:
esxcli system settings advanced list -o "/SectionName/OptionName" - For boot-time options in the
VMkernel.boot.*
namespace:esxcli system settings kernel list -o "OptionName"
Path: /SectionName/OptionName
Type: integer
Int Value: n
Default Int Value: 5
Min Value: 0
Max Value: 10
String Value:
Default String Value:
Valid Characters:
Description: Description of OptionName - For runtime options:
- Specify a new value for an option using the
vicfg-advcfg.pl
command:- For runtime options:
esxcli system settings advanced set
-o "/SectionName/OptionName"
[--int-value|--string-value] "NewValue"
For boot-time options in the
VMkernel.boot.*
namespace:esxcli system settings advanced set
-o "OptionName"
[--int-value|--string-value] "NewValue"
Note: If an out-of-range value is specified, the command fails with the fault:Sysinfo error on operation returned status : Bad parameter.
- For runtime options:
Setting advanced configuration options using the vSphere Command-Line Interface in ESX/ESXi 3.x and 4.x
The VMware vSphere Command-Line Interface (vCLI) is used to run common system administration commands against ESX/ESXi hosts from any client with network access to those systems. Commands can be run directly against an ESX/ESXi host, or target any ESX/ESXi host that vCenter Server manages. Section and option names are separated by a period.
For more information on usage, see the vSphere Command-Line Interface Documentation.
To set advanced configuration options using the vCLI:
- Open a command prompt at the location where the vCLI is installed.
- Check the current value of an option using the
vicfg-advcfg.pl
command:- For runtime options:
vicfg-advcfg.pl--get SectionName.OptionName - For boot-time options in the
VMkernel.boot.*
namespace:vicfg-advcfg.pl
--get-kernel OptionName
Value of SectionName.OptionName is X
- For runtime options:
- Set a new value for an option using the
vicfg-advcfg.pl
command:- For runtime options:
vicfg-advcfg.pl
--set "NewValue" SectionName.OptionName - For boot-time options in the
VMkernel.boot.*
namespace:vicfg-advcfg.pl
--set-kernel "NewValue" OptionName
A specified parameter was not correct.
- For runtime options:
Setting advanced configuration options using the local console in ESX/ESXi 3.x and 4.x
The local console of the ESX/ESXi host can be used to run common system administration commands if network connectivity is not available. The other methods are preferred. Section and option names are separated by a forward slash.
To set advanced configuration options using the local console:
- Open a console to the ESX or ESXi host. For more information, see Unable to connect to an ESX host using Secure Shell (SSH) (1003807) or Using Tech Support Mode in ESXi 4.1 (1017910).
- Check the current value of an option using the
esxcfg-advcfg
command:- For runtime options:
esxcfg-advcfg --get /SectionName/OptionName
- For boot-time options in the
VMkernel.boot.*
namespace:esxcfg-advcfg --get-kernel OptionName
For example:Value of SectionName.OptionName is X
- For runtime options:
- Set a new value for an option using the
esxcfg-advcfg
command:- For runtime options:
esxcfg-advcfg --set
"NewValue"
/SectionName/OptionName
- For boot-time options in the
VMkernel.boot.*
namespace:esxcfg-advcfg --set-kernel
"NewValue"
OptionName
Note: If an out-of-range value is specified, the command fails with the error:A specified parameter was not correct.
- For runtime options: