The Native Device Driver architecture is not something new. Since its introduction more than five years ago, VMware encourages their hardware ecosystem partners to work on developing native drivers. A list of supported hardware is growing with every major release of ESXi, with the company’s aim to deprecate the vmkLinux APIs and associated driver ecosystem completely in the future releases of vSphere.
The benefits of using the native drivers are as follows:
- It removes the complexity of developing and maintaining Linux derived drivers,
- It improves the system performance,
- It frees from the functional limitations of Linux derived drivers,
- It increases the stability and reliability of the hypervisor, as native drivers are designed specifically for VMware ESXi.
Saying that one of the steps when upgrading to a new version of vSphere is to check that the hardware supports native drivers. By default, if ESXi identifies a native driver for a device it will be loaded instead of Linux derived driver. However, it is not always a case, and you need to check whether native drivers are in use after the system upgrade.
Following steps in KB 1031534 and KB 1034674, you can pinpoint PCI devices and corresponding drivers loaded for each of them:
- To identify a storage HBA (such as a fibre card or RAID controller), run this command:
# esxcfg-scsidevs -a
- To identify a network card, run this command:
# esxcfg-nics -l
- To list device state and note the hardware IDs, run this command:
# vmkchdev -l
The /etc/vmware/default.map.d/ folder on ESXi host contains a full list of map files referring to the native drivers available for your system.
To quickly identify the driver version, you can run this command:
# esxcli software vib list | grep <native_driver_name>
In addition, information about available vSphere Installation Bundles (VIBs) in vSphere 6.5 can be found via the web client or PowerCLI session:
- To view all installed VIBs in vSphere Client (HTML5), open Configure > System > Packages tab in the host settings:
- To view all installed VIBs in VMware Host Client, open Manage > Packages tab in the host settings:
- To list all installed VIBs in PowerCLI, run this command:
# (Get-VMHost -Name ‘<host_name>‘ | Get-EsxCli).software.vib.list() | select Name,Vendor,Version | sort Name
Comparing findings above with information in the IO Devices section in VMware Hardware Compatibility List, you would be able to find out whether native drivers available for your devices, as well as the recommended combination of the driver and firmware, tested and supported by VMware.
It worth reading the release notes for the corresponding drivers and search any reference to it on VMware and the third-party vendors’ websites, in case there are any known issues or limitations that might affect how device function.
If everything seems good, it is time to enable the native driver following steps in KB 2147565:
# esxcli system module set –enabled=true –module=<native_driver_name>
This change requires a host reboot and a thorough testing afterwards. The following commands can be quite helpful when troubleshooting native drivers:
- To get the driver supported module parameters, run this command:
# esxcfg-module -i <native_driver_name>
- To get the driver info, run this command:
# esxcli network nic get -n <vmnic_name>
- To get an uplink stats, run this command:
# esxcli network nic stats -n <vmnic_name>
31/08/2018 – Update 1: After some feedback provided, I have decided to list well-known issues with the native drivers that exist currently. They are as follows:
- The Mellanox ConnectX-4/ConnectX-5 native ESXi driver might exhibit performance degradation when its Default Queue Receive Side Scaling (DRSS) feature is turned on (Reference: vSphere 6.7 Release Notes),
- Native software FCoE adapters configured on an ESXi host might disappear when the host is rebooted (Reference: vSphere 6.7 Release Notes),
- HP host with QFLE3 Driver Version 18.104.22.168 experienced a PSOD or stuck at “Shutting down device drivers…” shutdown or restart (Reference: KB 55088),
- ESXi 6.5 Storage Performance Issues and Fix (Reference: Anthony Spiteri’s blog).