Connect USB devices | Microsoft Learn
使用开源工具usbipd,可以让usb设备连接WSL
https://github.com/dorssel/usbipd-win
usbipd list 可以查看连接到win上的设备。
把USB设备从win转移到WSL需要执行下面两个指令。
usbipd bind --busid <BUSID>
usbipd attach --wsl --busid <busid>
Before attaching the USB device, the command
usbipd bind
must be used to share the device, allowing it to be attached to WSL. This requires administrator privileges. Select the bus ID of the device yo