VMware ESXi and ESX 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.
VMware vSphere ESXi 6.0
VMware vSphere ESXi 7.0
VMware vSphere ESXi 8.0
Advanced configuration settings can be reviewed and modified on an ESXi/ESX 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
.
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:
SectionName.OptionName
.The value entered is not valid. Enter another value.
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 ESXi/ESX host, or target any ESXi/ESX host that vCenter Server manages. Section and option names are separated by a period.
For more information on usage, see the vSphere PowerCLI documentation
To set advanced configuration options using the vSphere PowerCLI:
Connect-VIServer ESXHostnameOrIP
Get-VMHostAdvancedConfiguration
command:Get-VMHostAdvancedConfiguration -Name "SectionName.OptionName"
Name Value
---- -----
SectionName.OptionName CurrentValue
Set-VMHostAdvancedConfiguration
command:Set-VMHostAdvancedConfiguration -Name "SectionName.OptionName" -Value "NewValue"
A specified parameter was not correct.
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:
esxcli
command:esxcli system settings advanced list -o "/SectionName/OptionName"
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
esxcli
command:esxcli system settings advanced set
-o "/SectionName/OptionName"
[--int-value|--string-value] "NewValue"
VMkernel.boot.*
namespace:esxcli system settings kernel set
-o "OptionName"
[--int-value|--string-value] "NewValue"
Sysinfo error on operation returned status : Bad parameter.
The VMware vSphere Command-Line Interface (vCLI) is used to run common system administration commands against ESXi/ESX hosts from any client with network access to those systems. Commands can be run directly against an ESXi/ESX host, or target any ESXi/ESX 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:
vicfg-advcfg.pl
command:vicfg-advcfg.pl <connection options> --get SectionName.OptionName
VMkernel.boot.*
namespace:vicfg-advcfg.pl <connection options> --get-kernel OptionName
Value of SectionName.OptionName is X
vicfg-advcfg.pl
command:vicfg-advcfg.pl <connection options> --set "NewValue" SectionName.OptionName
VMkernel.boot.*
namespace:vicfg-advcfg.pl <connection options> --set-kernel "NewValue" OptionName
A specified parameter was not correct.
The local console of the ESXi/ESX 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:
esxcfg-advcfg
command:esxcfg-advcfg --get /SectionName/OptionName
VMkernel.boot.*
namespace:esxcfg-advcfg --get-kernel OptionName
Value of SectionName.OptionName is X
esxcfg-advcfg
command:esxcfg-advcfg --set
"NewValue"
/SectionName/OptionName
VMkernel.boot.*
namespace:esxcfg-advcfg --set-kernel
"NewValue"
OptionName
A specified parameter was not correct.