How to ID USB device within a VM

KenHorse

Member
Mar 18, 2022
66
0
11
71
I have need to access a USB Port from a script from within a Debian VM. Normally I'd use /dev/ttyUSB0 but (of course) that doesn't work within a VM.

So, how can I ID which /dev is the USB passthrough?
 
Is it a serial device? If so, you could try ls -l /dev/serial/by-id
 
It's a USB > serial converter (FTDI based). /dev/serial doesn't exist in this VM.

OF course, it does in the host:

Code:
lrwxrwxrwx 1 root root 13 Apr 20 08:29 usb-FTDI_FT232R_USB_UART_ABSCE19G-if00-port0 -> ../../ttyUSB0
 
Last edited: