itnifl
asked on
Trying to connect USB passhtrough to VM in ESXi shell
Through some trial and error I found that I can connect my USB drive via passhtrough on the ESXi host to my VM with id 1 this way:
How is the path built and how can I generate the correct path by script? I was thinking of reading the lsusb output and parse with grep, but I am not sure of all the numbers. I was hoping there was someone in here with experience on this already? At first glance the 5 might look like Device ID +1, but I would have to do some trial and error to be sure.
lsusb
Bus 02 Device 04: ID 059f:106b Silicon, Ltd
vim-cmd vmsvc/device.connusbdev 1 "path:2/0/5 version:2"
The first 2 here is the bus ID, the 0 I have no idea where is coming from and 5 was just a lucky guess.How is the path built and how can I generate the correct path by script? I was thinking of reading the lsusb output and parse with grep, but I am not sure of all the numbers. I was hoping there was someone in here with experience on this already? At first glance the 5 might look like Device ID +1, but I would have to do some trial and error to be sure.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER