author: https://github.com/BerndNW18 source: MicrosoftDocs/WSL#1868 (comment)
Hi, here is my complete solution on how to forward a USB port to WSL2, using the latest usbipd-win. Note that my use-case is connecting to an rplidar fromSlamtec, which uses a Silicon Labs CP210x USB-to-serial Interface board to connect to the actual Lidar device. ACTIVATING USB FORWARDING TO WSL2 Purpose: make USB to Serial Bridge accessible in WSL2 to test the RPLidar SDK build on WSL Linux (Ubuntu)
- Install usbipd-win on the Windows-host: https://github.com/dorssel/usbipd-win/releases
- Install USBIP tools and hardware-database in Linux (WSL) bernd@myOmen:~$ sudo apt install linux-tools-generic hwdata