VMware ESX Server 2.0Features | Documentation | Knowledge Base | Discussion ForumsThe installation process should detect the devices that are assigned to the VMkernel and automatically load appropriate modules into the VMkernel to make use of these devices.
However, there may be situations in which you wish to load VMkernel device modules explicitly. Modules supported in this release are located in The program vmkload_mod is used to load device driver and network shaper modules into the VMkernel. vmkload_mod can also be used to unload a module, list the loaded modules and list the available parameters for each module. The format for the command is vmkload_mod <options> <module-binary> <module-tag> <parameters> where <module-binary> is the name of the module binary that is being loaded. <module-tag> is the name that the VMkernel associates with the loaded module. The tag can be any string of letters and numbers. If the module is a device driver, the VMkernel names the module with the <module-tag> plus a number starting from zero. If there are multiple device instances created by loading the module or multiple device driver modules loaded with the same tag, each device gets a unique number based on the order in which device instances are created. The <module-binary> and <module-tag> parts of the command line are required when a module is loaded and are ignored when the --unload, --list and --showparam options are used. The <parameters> part of the command line is optional and is used only when a module is being loaded.
-l
-u <module-binary>
-v
-d <scsi-device-name>
-e
-s Modules can specify parameters that can be set on the command line. A list of these parameters is shown via the --showparam option. In order to set one of these parameters, you must specify a name-value pair at the end of the command line. The syntax is of the form <name>=<value>. Any number of parameters can be specified.
vmkload_mod ~/modules/e100.o vmnic debug=5
vmkload_mod --device 0:12 ~/modules/aic7xxx.o vmhba
vmkload_mod --exportsym ~/modules/vmklinux linuxdrivers Here are several examples of command lines that load various modules: vmkload_mod -e /usr/lib/vmware/vmkmod/vmklinux linux This command must be given before you load other device modules. It loads common code that allows the VMkernel to make use of modules derived from Linux device drivers to manage its high-performance devices. The -e option is required so that the vmklinux module exports its symbols, making them available for use by other modules.
vmkload_mod /usr/lib/vmware/vmkmod/e100.o vmnic The first of these commands loads a module to control the EEPro Ethernet device(s) reserved for the VMkernel. The second loads a module to control the Adaptec SCSI device(s). The last argument supplied (vmnic and vmhba in the above examples) determines the base name that VMware uses to refer to the device(s) in the VMware virtual machine configuration file. For example, suppose your machine has two EEPro Ethernet cards and three Adaptec SCSI cards, and you assigned one Ethernet card and two SCSI cards to the VMkernel during the installation process. After you issue the two commands above, the EEPro Ethernet card assigned to the VMkernel is given the name vmnic0 and the two SCSI cards assigned to the VMkernel are given the names vmhba0 and vmhba1. Note: You only need to load the Adaptec VMkernel module once, even though two Adaptec SCSI cards are assigned to the VMkernel. The VMkernel can also share SCSI adapters with the service console, rather than exclusively controlling them. The installation process allows you to specify SCSI adapters that are shared and load the device module appropriately. However, if you wish to control the sharing explicitly, assign the SCSI device to the service console during the installation process. Then load the VMkernel SCSI module using the following syntax:
vmkload_mod -d bus:slot \ Note: This command should be entered on a single line. Do not type the backslash.
To obtain the bus and slot (also known as device or cardnum) information, examine Note: The device must be correctly assigned to the service console. Devices assigned exclusively to the VMkernel during the installation process no longer appear in /proc/pci. After you load a VMkernel device module, an entry appears in /proc/vmware/net or /proc/vmware/scsi. For example, when e100.o is loaded as described above, the entry /proc/vmware/net/vmnic0 appears, indicating there is one EEPro card controlled by the VMkernel and available as vmnic0 to the virtual machines. See Creating and Configuring Virtual Machines for information on how to configure virtual machines to use VMkernel devices. The only non-device VMkernel module available in this release of VMware ESX Server is the nfshaper module, which provides support for network filtering, as described in Managing Network Bandwidth. Load nfshaper using the following syntax. vmkload_mod /usr/lib/vmware/vmkmod/nfshaper.o nfshaper VMkernel modules must be reloaded each time the VMkernel is loaded (as described in Loading VMkernel Device Modules). |