This article provides steps to specify advanced configuration options for driver modules on an ESX/ESXi host.
Advanced configuration options can be specified for driver modules in ESX/ESXi. The options available for each driver module differ, but a common interface is available for reviewing and setting module options. Specify module options when directed by VMware Support, a knowledge base article or product documentation.
The effect of each configuration option is outside the scope of this article.
Options are validated when loading the driver during ESX/ESXi startup. If an invalid module option is configured, it may not be noticed until a subsequent reboot and the associated driver module may not load successfully. For more information, see ESX/ESXi driver module fails to load, logs error "Bad parameter" (341086).
Warning: Configuration changes to driver modules options take effect at startup of the ESX/ESXi host. Before beginning, ensure the ESX/ESXi host is in maintenance mode.
|
|
Configuration is performed using the vSphere PowerCLI, the vSphere Command-Line Interface, or the local console of an ESX/ESXi host.
Module options are specified as a quoted list of space-delimited Key=Value
pairs.
For example:
"OptionName1=Value1 OptionName2=Value2"
" "
) is invalid.Specifying new options overrides all existing options. To append a new option while preserving all existing options, review the existing option configuration and set a new module configuration including both the previous and new options.
Generally, the process of changing driver module options follows this pattern:
esxcfg-boot -b
Options can be set for a specific module on an ESX/ESXi host using PowerCLI on ESX 3.5 Update 2 or later.
Get-VMHostModule ModuleName
Name Options
------- ----------
ModuleName OptionName1=Value1
Get-VMHostModule ModuleName | Set-VMHostModule -Options "OptionName1=Value1 OptionName2=Value2"
Name Options
------- ----------
ModuleName OptionName1=Value1 OptionName2=Value2
Options can be set for a specific module on an ESXi host using esxcli on ESX 5.0 or later.
esxcli
[connection_options]
system
module
parameters
list --module ModuleName
Name Type Value Description
------- ---- ----- ----------
OptionName1 int Value1 Option Description
OptionName2 int Option Description
esxcli
[connection_options]
system module parameters set --module ModuleName --parameter-string
"OptionName1=Value1 OptionName2=Value2"
esxcli
[connection_options]
system
module
parameters
list --module ModuleName
Name Type Value Description
------- ---- ----- ----------
OptionName1 int Value1 Option Description
OptionName2 int Value2 Option Description
Options can be set for a specific module on an ESX/ESXi host using the vCLI on ESX 3.5 Update 2 and later.
vicfg-module.pl
[connection_options]
--get-options ModuleName
ModuleName options = 'OptionName1=Value1'
vicfg-module.pl
[connection_options]
--set-options "OptionName1=Value1 OptionName2=Value2" ModuleName
Options can be set for a specific module on an ESX/ESXi host using the physical console or an SSH session. For more information, see Unable to connect to an ESX host using Secure Shell (SSH) (323621).
esxcfg-module --get-options ModuleName
ModuleName options = 'OptionName1=Value1'
esxcfg-module --set-options "OptionName1=Value1 OptionName2=Value2" ModuleName
To change the parameters in ESXi 5.0 using esxcli, use the command:
esxcli system module parameters set -m ModuleName -p parameter=valuePossible configuration options on an ESX/ESXi host modules can be inspected using tools available at the console or remotely using esxcli
. This cannot be done remotely via vicfg-module
or using PowerCLI.
To list all the modules currently loaded on an ESX/ESXi host:
esxcli
in the ESXi Shell or in the vCLI:esxcli [connection_options] system
module list
esxcfg-module -l
vicfg-module
[connection_options]
-l
vmkload_mod
command at the console or the esxcli
command remotely, specifying one of the module names from the esxcfg-module
, vicfg-module
or esxcli
commands. For more information, see Unable to connect to an ESX host using Secure Shell (SSH) (323621)esxcli
in the ESXi Shell or in the vCLI:esxcli [connection_options] system module parameters list --module ModuleName
Name Type Value Description
------- ---- ----- ----------
OptionName1 int Value1 Option Description
OptionName2 int Value2 Option Description
vmkload_mod
at the console:vmkload_mod --showinfo ModuleName
vmkload_mod module information
input file: /usr/lib/vmware/vmkmod/ModuleName
Parameters:
OptionName1: type
Description of the effects of option 1
OptionName2: type
Description of the effects of option 2
...