Hi All,
have a bit of a query wondering someone may be able to help with. Below is based on Esxi 6.5.
We have a number of VM's on a host which we are passing through a usb device to each virtual machine, the issue we have is that the devices are all the same make model so from and ESXI perspective they all have the same name - this is driven by the vendorid and product id of the device firmware and as I understand is not able to be modified at all and there does not appear to be a notes section on the device to differentiate.
I am able to run the command "lsusb" on the host via ssh which lists all the usb devices attached to the ESXI host - they all have the same name however the difference being the bus and device ID are unique which is great as we can correlate this to each device as we plug them in.
However the info I need is to be able to do is correlate that bus and device id to a virtual machine it is being presented to so we know what device is mapped to which virtual machine.
I have tried the powercli command Get-UsbDevice -VM machinename however this just returns a value of USB1 which does not help us at all, I have checked the VMX file of a machine with a device mapped and there is no information contained within that on the usb device id.
Hopeful someone out there may have a good idea of getting the info we need or another idea of what we can do to correlate the usb devices to a VM.
Thanks
Lee