VMware Cloud Community
alfwro13
Contributor
Contributor

ESXI change/remmap USB device and vendor IDs

Problem description:

When Google Coral USB Accelerator is connected to esxi host it is shown as 1a6e:089a Global Unichip Corp.

This is not correct and I need that changed to: 18d1:9302 Google Inc.

Is there any way of doing that in Esxi 6.7?

Thanks

11 Replies
senderl
Contributor
Contributor

I experience the same for ESXi 8. Would like to know if there is any way to change this behavior.

See here for the problems it gives:

https://github.com/blakeblackshear/frigate/discussions/3604

Another hypervisor seems to have the options to change devices ID for USB:

https://dev.to/0xkoji/coral-edgetpu-usb-with-virtualbox-57e1

Thanks in advance for looking into this issue/option.

On my other hypervisors (sorry for cheating on vmware), it shows up correctly:

root@proxmox02:~# lsusb
Bus 002 Device 002: ID 18d1:9302 Google Inc.

 

 

 

 

lamw
Community Manager
Community Manager

Per the link you referenced, it mentions the following:

I learned that by design the Coral will change its device ID when the first inferance is attempted

So, it seems that the changing of the ID is due to how Coral device works and perhaps feedback should be shared w/vendor rather than working around the symptom. ESXi does correctly detect the device but if it changes ID, then it'll have to use whatever vendor it maps to that ID. 

Also, I don't know why folks are disabling the vmkusb module ... it has other implications as shared https://williamlam.com/2023/01/how-to-recover-esxi-installed-on-usb-device-after-disabling-vmkusb-mo... 

If you do not want ESXi to claiming the device at all, then you can apply https://williamlam.com/2023/03/how-to-enable-passthrough-for-usb-network-adapters-claimed-by-esxi-cd... and see if that helps but sounds like the initial connect from guest may have failed and hence you get into this situation, which would also probably occur on physical setup ...

Reply
0 Kudos
senderl
Contributor
Contributor

Hi William, thanks for taking the time to react.

What stands out is that this error is mostly (almost only) found with ESXi and coral. And I can concur that the Coral changes it's device ID by first inferance (from an application perspective) because other OS's/Hypervisors directly detect a "google" device.

I think it will be hard to get this behavior changed in ESXi though yes thus I need to find a way around it.

Regarding your last line, which I do not yet totally understand. If I have totally 4 USB devices of which 3 are already passed through the default way to another VM, is it still advisable to try to change the Coral USB device ID according to your link? Do I understand correctly the USB Device ID will be sort of change to an Ethernet one? Just to be able to pass it though then?

And finally If I decide to try, what is the correct way of rolling that back?

Thanks in advance.

Reply
0 Kudos
lamw
Community Manager
Community Manager

There's no changing the ESXi behavior, if the device changes how it displays it ID when first in-properly access, I'd argue this is a defect with how Coral has designed their hardware as this is the first time I've ever heard of such a strange behavior and while this maybe observed w/ESXi, it is important to understand why this is occurring. Is it because the ESXi hypervisor attempts to access/probe the device because it has not been setup to be passthrough or is it when VM attempts to access it for first time but the software hasn't been setup, so connection has already been reached? 

What I'm more interested in is whether someone has spent the time to try different variations to help isolate where the initial connection is attempted and whether this is happening at the Hypervisor layer or within the VM. Depending on the behavior, there may be some options or at least more information to find a potential solution. I've got a colleague who recently purchased this device for their own testing, so I've shared this thread to see if they're running into any setup issues. I also noticed some of the issues observed is the use of container to access the device, this potentially may add another layer of complexity.

Again, I rather not jump to any particular solution until we better understand what is causing the initial connect and where it is coming from. Happy to chat offline to debug further if you've got an env running latest ESXi 8.0 as any tweaks/changes would get greatest benefit w/our latest release of ESXi

Reply
0 Kudos
lamw
Community Manager
Community Manager

Can you also provide the output for lsusb -v when the device is plugged into ESXI?

Reply
0 Kudos
senderl
Contributor
Contributor

Hi William, don't know what is wrong but I tried around 6 times to reply with the information. At first the forum seems to display my text but upon refresh it's gone...

Let's try dpaste:

https://dpaste.org/bdLs7

 

Reply
0 Kudos
lamw
Community Manager
Community Manager

Thanks. In the meantime, one thing you could try (I've also shared this with colleague who's running into same situation but he's not had a chance to test) is preventing ESXi from claiming the device, which could maybe help with the initial probe

Take a look at this blog post

https://williamlam.com/2023/03/how-to-enable-passthrough-for-usb-network-adapters-claimed-by-esxi-cd...

to be safe, I'd add BOTH ID, which would look like following:

CONFIG./USB/quirks=0x1a6e:0x089a:0:0xffff:UQ_MSC_NO_UNCLAIM:0x18d1:0x9302:0:0xffff:UQ_MSC_NO_UNCLAIM

 

Reply
0 Kudos
senderl
Contributor
Contributor

I will also try later. in the meantime I tried to go a different way... PCI... :-).

Same "problem"here?

https://github.com/blakeblackshear/frigate/issues/6331

senderl
Contributor
Contributor

Hi William, is this the correct format when done via the UI?:

senderl_0-1683633924948.png

 

Reply
0 Kudos
lamw
Community Manager
Community Manager

I recently purchased the Coral device and I'm working w/Eng to better understand the issue being observed. For now, I don't have any further updates as what I had suggested earlier will not work. I'll update the thread if we have any new info to share.

lamw
Community Manager
Community Manager

Please see https://williamlam.com/2023/05/google-coral-usb-edge-tpu-accelerator-on-esxi.html for the complete details and write-up on how to get this working