K KenHorse Member Mar 18, 2022 66 0 11 71 Apr 11, 2022 #1 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?
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?
mira Proxmox Staff Member Staff member Aug 1, 2018 2,349 338 128 Apr 21, 2022 #2 Is it a serial device? If so, you could try ls -l /dev/serial/by-id
K KenHorse Member Mar 18, 2022 66 0 11 71 Apr 21, 2022 #3 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: Apr 21, 2022
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
leesteken Distinguished Member Proxmox Subscriber May 31, 2020 7,807 2,616 278 Apr 21, 2022 #4 How did you pass the USB to the VM? I would expect Debian inside the VM to create /dev/serial automatically. Or did you (want to ) pass it through to a container (via /dev)?
How did you pass the USB to the VM? I would expect Debian inside the VM to create /dev/serial automatically. Or did you (want to ) pass it through to a container (via /dev)?