VMware Cloud Community
kralzik
Contributor
Contributor

USB interface

Hello,

I have successfully installed a usb ethernet interface. I followed the install instructions from https://labs.vmware.com/flings/usb-network-native-driver-for-esxi#instructions and it works great, but after a reboot the usb ethernet interface stops working. The vswitch losed the uplink.

If i execute manually the local.sh script with

vusb0_status=$(esxcli network nic get -n vusb0 | grep 'Link Status' | awk '{print $NF}')

count=0

while [[ $count -lt 20 && "${vusb0_status}" != "Up" ]] ]

do

    sleep 10

    count=$(( $count + 1 ))

    vusb0_status=$(esxcli network nic get -n vusb0 | grep 'Link Status' | awk '{print $NF}')

done

if [ "${vusb0_status}" = "Up" ]; then

    esxcfg-vswitch -L vusb0 vSwitch0

    esxcfg-vswitch -M vusb0 -p "VM Network" vSwitch0

fi

The interface starts to work.

Does anyone knows how can i force local.sh to run at boot?

Regards.

Reply
0 Kudos
0 Replies