VMware vSphere Hypervisor (ESXi 8.x) – how to make the USB network native driver persistent after a reboot

 

VMware vSphere Hypervisor (ESXi 8.x) – does not natively support USB NIC and upon a reboot the USB NICs are not picked up until much later in the boot process which prevents them from being associated with VSS/VDS and their respective portgroups. To ensure things are connected properly after a reboot you will need to add something like the following in /etc/rc.local.d/local.sh which re-links the USB NIC along with the individual portgroups as shown in the example below

[root@ra-vmware8-01:~] vi /etc/rc.local.d/local.sh
esxcfg-vswitch -L vusb0 vSwitch0
esxcfg-vswitch -M vusb0 -p „Management Network“ vSwitch0
esxcfg-vswitch -M vusb0 -p „VM Network“ vSwitch0
esxcli network vswitch standard uplink add -u vusb0 -v vSwitch0
[root@ra-vmware8-01:~] /sbin/auto-backup.sh
— /etc/rc.local.d/local.sh
+++ /tmp/auto-backup.137476//etc/rc.local.d/local.sh
@@ -1,19 +0,0 @@
-#!/bin/sh ++group=host/vim/vmvisor/boot

-# local configuration options

-# Note: modify at your own risk! If you do/use anything in this
-# script that is not part of a stable API (relying on files to be in
-# specific places, specific tools, specific output, etc) there is a
-# possibility you will end up with a broken system after patching or
-# upgrading. Changes are not supported unless under direction of
-# VMware support.

-# Note: This script will not be run when UEFI secure boot is enabled.


-esxcfg-vswitch -L vusb0 vSwitch0
-esxcfg-vswitch -M vusb0 -p „Management Network“ vSwitch0
-esxcfg-vswitch -M vusb0 -p „VM Network“ vSwitch0

-exit 0
Bootbank lock is /tmp/86cb9330-264e48e6-2ca4-4bec9145294a.lck
Saving current state in /bootbank
Creating ConfigStore Backup
Locking esx.conf
Creating archive
Unlocked esx.conf
Using key ID 19efd047-dfbc-4c89-beeb-787f578b9e48 to encrypt
Clock updated.
Time: 19:25:28 Date: 12/19/2022 UTC
[root@ra-vmware8-01:~]

Leave a Reply

You must be logged in to post a comment.