1、Windows安装
winget install --interactive --exact dorssel.usbipd-win
2、WSL安装
sudo apt install linux-tools-generic hwdata
sudo update-alternatives --install /usr/local/bin/usbip usbip /usr/lib/linux-tools/*-generic/usbip 20
3、附加usb设备
usbipd wsl list
列出设备
BUSID VID:PID DEVICE STATE
2-1 1a86:7523 USB-SERIAL CH340 (COM17) Not attached
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
usbipd wsl attach --2-1
/dev/下多了一个ttyUSB0
usbipd wsl detach --2-1
注意只支持WSL2
标签:usbipd,usbip,usb,windows,--,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,WSL2 From: https://www.cnblogs.com/zhaogaojian/p/17287101.html