Hi!
I pray these scrips to help you.
01. Uninstall Mellanox vSphere OFED 1.8.2.4 & 1.8.3 from ESXi host
1st you must check your installed driver list with esxcli software vib list | grep Mellanox
esxcli software vib remove -n scsi-ib-srp
esxcli software vib remove -n net-ib-ipoib
esxcli software vib remove -n net-mlx4-ib
esxcli software vib remove -n scsi-ib-iser
esxcli software vib remove -n net-rdma-cm
esxcli software vib remove -n net-ib-addr
esxcli software vib remove -n net-ib-cm
esxcli software vib remove -n net-ib-umad
esxcli software vib remove -n net-ib-sa
esxcli software vib remove -n net-ib-mad
esxcli software vib remove -n net-ib-core
esxcli software vib remove -n net-mlx4-en
esxcli software vib remove -n net-mlx4-core
esxcli software vib remove -n net-mlx-compat
esxcli software vib remove -n net-memtrack
then reboot your ESXi host
02. Uninstall Mellanox vSphere OFED 2.3.3.1 & 2.4.0 from ESXi host
1st you must check your installed driver list with esxcli software vib list | grep MEL
esxcli software vib remove -n net-ib-ipoib
esxcli software vib remove -n net-mlx4-ib
esxcli software vib remove -n net-ib-sa
esxcli software vib remove -n net-ib-mad
esxcli software vib remove -n net-ib-core
esxcli software vib remove -n net-mlx4-en
esxcli software vib remove -n net-mlx4-core
esxcli software vib remove -n net-mlx-compat
reboot your ESXi host
You're correct.
This is a time consuming work, but there is no choice...
AND If you want to upgrade ESXi host to new version, you must remove inbox driver from original ESXi image.
If you want build a custom image for your ESXi host, you can build with ESXi offline bundle and vSphere PowerCLI.
I have a 10 of Dell PE R610 ESXi host.
I'm always remove Mellanox inbox driver from Dell Customized offline bundle then create custom ESXi ISO image for my hosts.
This custom ESXi ISO image - removed inbox driver - can upgrade ESXi host to new version directly.
I'm also build a custom ESXi ISO image that include Mellanox vSphere OFED driver 1.8.2.4.
- also remove inbox driver then inject driver 1.8.2.4
All was successfully work for my ESXi hosts.
If you have standard your host configuration and driver version, you can build a custom images for your host.
I think build a custom image will help you.