VMware Cloud Community
stoneb
Contributor
Contributor

ESXI Host Not Detecting ANY USB/PCI Devices

Hi Guys,

I'm hoping someone can help me, I've been battling to get an ESXI host to detect USB devices. All the USB controllers are in passthrough mode, and VT-d has been enabled in the BIOS.

I've also spent many many hours Googling, going through forums, and blog posts... it would seem that my problem is fairly unique...

The BIOS picks up the USB devices, and I've even disabled the "EHCI Hand-Off" feature for what it's worth, as to pass USB devices to the OS immediately.

One blog post also mentions the usb arbitrator might have a hold on the USB devices, but surely if that was the case, lsusb or dmesg or the logs would still mention it.

Output of dmesg:

2012-08-31T09:13:20.313Z cpu0:2659)<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
2012-08-31T09:13:20.313Z cpu0:2659)<6>ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
2012-08-31T09:13:20.343Z cpu0:2659)<6>ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00
2012-08-31T09:13:20.343Z cpu0:2659)<6>usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
2012-08-31T09:13:20.343Z cpu0:2659)<6>usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
2012-08-31T09:13:20.343Z cpu0:2659)<6>hub 1-0:1.0: USB hub found
2012-08-31T09:13:20.343Z cpu0:2659)<6>ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
2012-08-31T09:13:20.373Z cpu0:2659)<6>ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
2012-08-31T09:13:20.373Z cpu0:2659)<6>usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
2012-08-31T09:13:20.373Z cpu0:2659)<6>usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
2012-08-31T09:13:20.373Z cpu0:2659)<6>hub 2-0:1.0: USB hub found
2012-08-31T09:13:20.382Z cpu0:2659)<6>uhci_hcd: USB Universal Host Controller Interface driver
2012-08-31T09:13:20.382Z cpu0:2659)<6>uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
2012-08-31T09:13:20.382Z cpu0:2659)<6>usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
2012-08-31T09:13:20.382Z cpu0:2659)<6>usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
2012-08-31T09:13:20.382Z cpu0:2659)<6>hub 3-0:1.0: USB hub found
2012-08-31T09:13:20.382Z cpu0:2659)<6>uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
2012-08-31T09:13:20.382Z cpu0:2659)<6>usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
2012-08-31T09:13:20.382Z cpu0:2659)<6>usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
2012-08-31T09:13:20.382Z cpu0:2659)<6>hub 4-0:1.0: USB hub found
2012-08-31T09:13:20.383Z cpu0:2659)<6>uhci_hcd 0000:00:1a.2: new USB bus registered, assigned bus number 5
2012-08-31T09:13:20.383Z cpu0:2659)<6>usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
2012-08-31T09:13:20.383Z cpu0:2659)<6>usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
2012-08-31T09:13:20.383Z cpu0:2659)<6>hub 5-0:1.0: USB hub found
2012-08-31T09:13:20.383Z cpu0:2659)<6>uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 6
2012-08-31T09:13:20.383Z cpu0:2659)<6>usb usb6: New USB device found, idVendor=1d6b, idProduct=0001
2012-08-31T09:13:20.383Z cpu0:2659)<6>usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
2012-08-31T09:13:20.383Z cpu0:2659)<6>hub 6-0:1.0: USB hub found
2012-08-31T09:13:20.383Z cpu0:2659)<6>uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 7
2012-08-31T09:13:20.383Z cpu0:2659)<6>usb usb7: New USB device found, idVendor=1d6b, idProduct=0001
2012-08-31T09:13:20.383Z cpu0:2659)<6>usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
2012-08-31T09:13:20.383Z cpu0:2659)<6>hub 7-0:1.0: USB hub found
2012-08-31T09:13:20.383Z cpu0:2659)<6>uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 8
2012-08-31T09:13:20.383Z cpu0:2659)<6>usb usb8: New USB device found, idVendor=1d6b, idProduct=0001
2012-08-31T09:13:20.383Z cpu0:2659)<6>usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
2012-08-31T09:13:20.383Z cpu0:2659)<6>hub 8-0:1.0: USB hub found
2012-08-31T09:13:20.392Z cpu0:2659)<6>hid: 1.0-3vmw:USB HID core driver
2012-08-31T09:13:20.508Z cpu0:2659)<6>Initializing USB Mass Storage driver...
2012-08-31T09:13:20.508Z cpu0:2659)<6>USB Mass Storage support registered.
2012-08-31T09:13:20.793Z cpu5:2696)<6>usb 2-1: new high speed USB device using ehci_hcd and address 2
2012-08-31T09:13:20.962Z cpu5:2696)<6>usb 2-1: New USB device found, idVendor=0bc2, idProduct=3001
2012-08-31T09:13:20.962Z cpu5:2696)<6>usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
2012-08-31T09:13:21.321Z cpu0:2696)<6>usb 4-1: new full speed USB device using uhci_hcd and address 2
2012-08-31T09:13:21.500Z cpu3:2696)<6>usb 4-1: New USB device found, idVendor=0557, idProduct=2221
2012-08-31T09:13:21.500Z cpu3:2696)<6>usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
2012-08-31T09:13:21.500Z cpu3:2696)<6>usb 4-1: Product: Hermon USB hidmouse Device
2012-08-31T09:13:21.507Z cpu4:2696)<6>generic-usb 0003:0557:2221.0001: input: USB HID v1.00 Mouse [Winbond Electronics Corp Hermon USB hidmouse Device] on usb-0000:00:1a.1-1/input0
2012-08-31T09:13:21.509Z cpu4:2696)<6>generic-usb 0003:0557:2221.0002: input: USB HID v1.00 Keyboard [Winbond Electronics Corp Hermon USB hidmouse Device] on usb-0000:00:1a.1-1/input1
2012-08-31T09:13:21.799Z cpu4:2696)<6>usb 6-2: new low speed USB device using uhci_hcd and address 2
2012-08-31T09:13:21.997Z cpu12:2696)<6>usb 6-2: New USB device found, idVendor=046d, idProduct=c315
2012-08-31T09:13:21.997Z cpu12:2696)<6>usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
2012-08-31T09:13:21.997Z cpu12:2696)<6>usb 6-2: Product: Logitech USB Keyboard
2012-08-31T09:13:22.014Z cpu0:2696)<6>generic-usb 0003:046d:c315.0003: input: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-0000:00:1d.0-2/input0
2012-08-31T09:13:29.226Z cpu14:2659)<6>usb usb3: USB disconnect, address 1
2012-08-31T09:13:29.227Z cpu14:2659)<6>uhci_hcd 0000:00:1a.0: USB bus 3 deregistered
2012-08-31T09:13:29.241Z cpu14:2659)<6>usb usb4: USB disconnect, address 1
2012-08-31T09:13:29.241Z cpu14:2659)<6>usb 4-1: USB disconnect, address 2
2012-08-31T09:13:29.243Z cpu14:2659)<6>uhci_hcd 0000:00:1a.1: USB bus 4 deregistered
2012-08-31T09:13:29.257Z cpu14:2659)<6>usb usb5: USB disconnect, address 1
2012-08-31T09:13:29.257Z cpu14:2659)<6>uhci_hcd 0000:00:1a.2: USB bus 5 deregistered
2012-08-31T09:13:29.271Z cpu14:2659)<6>usb usb1: USB disconnect, address 1
2012-08-31T09:13:29.275Z cpu14:2659)<6>ehci_hcd 0000:00:1a.7: USB bus 1 deregistered
2012-08-31T09:13:29.346Z cpu14:2659)<6>usb usb6: USB disconnect, address 1
2012-08-31T09:13:29.346Z cpu14:2659)<6>usb 6-2: USB disconnect, address 2
2012-08-31T09:13:29.347Z cpu14:2659)<6>uhci_hcd 0000:00:1d.0: USB bus 6 deregistered
2012-08-31T09:13:29.361Z cpu14:2659)<6>usb usb7: USB disconnect, address 1
2012-08-31T09:13:29.361Z cpu14:2659)<6>uhci_hcd 0000:00:1d.1: USB bus 7 deregistered
2012-08-31T09:13:29.375Z cpu14:2659)<6>usb usb8: USB disconnect, address 1
2012-08-31T09:13:29.375Z cpu14:2659)<6>uhci_hcd 0000:00:1d.2: USB bus 8 deregistered
2012-08-31T09:13:29.389Z cpu14:2659)<6>usb usb2: USB disconnect, address 1
2012-08-31T09:13:29.389Z cpu14:2659)<6>usb 2-1: USB disconnect, address 2
2012-08-31T09:13:29.394Z cpu14:2659)<6>ehci_hcd 0000:00:1d.7: USB bus 2 deregistered

[url=http://www.imagehost.co.za/share-CB12_50406943.html][img]http://www.imagehost.co.za/thumb-CB12_50406943.jpg[/img][/url]

[url=http://www.imagehost.co.za/share-A642_50406943.html][img]http://www.imagehost.co.za/thumb-A642_50406943.jpg[/img][/url]

[url=http://www.imagehost.co.za/share-9619_50406943.html][img]http://www.imagehost.co.za/thumb-9619_50406943.jpg[/img][/url]

[url=http://www.imagehost.co.za/share-35C3_50406943.html][img]http://www.imagehost.co.za/thumb-35C3_50406943.jpg[/img][/url]

[url=http://www.imagehost.co.za/share-30CF_50406943.html][img]http://www.imagehost.co.za/thumb-30CF_50406943.jpg[/img][/url]

4 Replies
sparrowangelste
Virtuoso
Virtuoso

are you trying to get the host to use the usb devices?

or trying to pass them through to the vms?

--------------------- Sparrowangelstechnology : Vmware lover http://sparrowangelstechnology.blogspot.com
0 Kudos
stoneb
Contributor
Contributor

Hi,

I would like to have the USB devices, passhthough, but since passthrough was enabled (after a host reboot), and the guest VM was set up correctly (i.e USB Controller added), but when I want to add a "USB Device", the option has been greyed out. Image: http://www.imagehost.co.za/image-A642_50406943.jpg

But like I mentioned in my first post, lsusb and grep isn't even detecting any USB devices.

0 Kudos
QAExtreme
Contributor
Contributor

The log snippet you attached looks like ours did recently.

We were baffled for a while with one of two ESXi 4.1  servers that had normal keyboard function during the boot (BIOS  utilities, etc.) but not after the ESXi VMkernel was running.  It turned  out to be VMDirectPath making the USB devices function in passthrough  mode.  (The Hardware Advanced Settings in vSphere Client controls this  feature, and a reboot is required after changing the settings.)  When the device is in passthrough, lsusb will not show any active devices since they are no longer managed by the ESXi drivers.  It turned out it was working as designed, but I'm not sure why anyone would want a passthrough keyboard to a VM, just USB storage, networks or peripherals like that.

0 Kudos
Loksa
Contributor
Contributor

Well, I had same problems with ESXi 5.5.0 u1. The solution for this problem I found is:

1) I disabled all passthrough options for USB buses. Restarted host.

2) Then connected USB device to USB port and logged on the host via ssh.

3) executed lsusb command and get output like that:

~ # lsusb

Bus 01 Device 02: ID 0781:5406 SanDisk Corp. Cruzer Micro U3

Bus 01 Device 01: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 08 Device 01: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 07 Device 01: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 06 Device 01: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 05 Device 01: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 04 Device 01: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 03 Device 01: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 02 Device 01: ID 1d6b:0002 Linux Foundation 2.0 root hub

so my USB device is located on bus 01

4) inserted this device in other USB port and again executed lsusb, this was done for every USB port was in ESXi host workstation.  There was eight USB ports on workstation and I got two different bus numbers (Bus 01 and Bus 02) and four device numbers (Device 02 - Device 05) on each bus. And this buses belong to two USB 2.0 hubs.

5) After that in advanced settings for passthrough configuration I enabled passthrough options ONLY for USB 2.0 controllers (usuall they shown as USB2 EHCI)

Screen+Shot+2013-10-07+at+4.19.42+PM.png

6) restarted ESXi host and after that passthrough start work for my VMs.

0 Kudos