How to Install/Upgrade/Downgrade a VIB/Driver in ESXi 7 using ESXCLI or VUM

Loading

In this blog, we will focus our attention on downgrading a vib/device driver from an ESXi host.

Lets run a code to find out our current network drivers loaded

[root@sfo-m01-esxi-01:~]


Driver: lsi_mr3

Version : 7.713.07.00-1OEM.670.0.0.8169922

Driver: vmw_ahci

Version : 2.0.7-2vmw.670.3.143.17700523

Driver: vmw_ahci

Version : 2.0.7-2vmw.670.3.143.17700523

Driver: iscsi_vmk

Version : Built on: Mar 3 2021

Driver: vmkusb

Version : 0.1-1vmw.670.3.143.17700523

[ [root@sfo-m01-esxi-01:~]

Lets run a code to find out if our installed nic firmware and drivers are compatible.

HCL Link vmhba1
http://partnerweb.vmware.com/comp_guide2/search.php?deviceCategory=io&VID=8086&DID=a1d2&SVID=1028&SSID=0716&details=1
HCL Link vmhba32
http://partnerweb.vmware.com/comp_guide2/search.php?deviceCategory=io&VID=8086&DID=a1af&SVID=1028&SSID=0716&details=1
HCL Link vmhba2
http://partnerweb.vmware.com/comp_guide2/search.php?deviceCategory=io&VID=8086&DID=a182&SVID=1028&SSID=0716&details=1
HCL Link vmhba0
http://partnerweb.vmware.com/comp_guide2/search.php?deviceCategory=io&VID=1000&DID=0016&SVID=1028&SSID=1fcd&details=1

ESXCLI command used to Verify VIBs from ESXi host.

esxcli software vib list

ESXCLI command used to Add VIBs from ESXi host.

1. To Install, run the command

 esxcli software vib install -d “/vmfs/volumes/Datastore/DirectoryName/PatchName.zip

ESXCLI command used to Remove VIBs from ESXi host.

  1. Uninstall the current or upgraded driver > reboot the host > Install the downgrade driver
    OR
  2. You may also install the downgrade driver directly using esxcli software vib install command. This will remove the upgraded driver itself.

Let’s see how to perform downgrades of vib using both methods. You may decide which one you would like to choose. You may also install drivers using Baselines in Lifecycle Manager, which will be covered in later posts.

Method 1 : Uninstall the current or upgraded driver > reboot the host > Install the downgrade driver

  1. Put the ESXi host in Maintenance Mode.
  2. SSH the ESXi host
  3. Run this command to uninstall the driver: “esxcli software vib remove -n <vib_name>
  4. Reboot the host
  5. Run this command to install the driver: “esxcli software vib remove install -d /vmfs/volume/datastore/vib.zip
  6. Reboot the host
  7. Run this command to ensure the version of downgrade driver installed in step 5: “esxcli software vib get -n <vib-name>

Method 2: Directly Install the Downgraded driver without uninstalling the current driver.
Let’s take an example of installing a downgraded version 4.1.9.0 vib named “qlnativefc”

  1. Put the ESXi host in Maintenance Mode and SSH into it.
  2. Run this command to check the current version of the driver to be replaced: “esxcli software vib list | grep <vib_name>” or “esxcli software vib get -n <vib-name>
  1. Install the downgraded version of the driver directly and you will see the upgraded version being removed: “esxcli software vib remove install -d /vmfs/volume/datastore/vib.zip
  1. Reboot the host
  2. Run this command to ensure the version of the replaced driver: “esxcli software vib get -n <vib-name>

ESXCLI command used to Update VIBs from ESXi host.

Let’s take an example of upgrading a qlogic driver

To install the driver using Update Manager

Go to VMware Update Manager

  • Got to “Manage”-> “Settings” -> “download setting” , click “Edit” for “Download resources”Click “add” button to add OEM resource
  • Create a baseline and attach the baseline to host.
  • The scan result will show hosts compliance result with the baseline.
  • You can stage the host or remediate it immediately.
(Visited 2,173 times, 1 visits today)

By Ash Thomas

Ash Thomas is a seasoned IT professional with extensive experience as a technical expert, complemented by a keen interest in blockchain technology.

Leave a Reply