Open bimmerdriver opened 6 months ago
@bimmerdriver some distros package many Linux tools in one package (i.e. Ubuntu) others are releasing individual packages for each tool (i.e. Fedora, Arch)
On WSL Arch instance I just did pacman -S usbip
and can query the host for available USB devices:
[elsaco@texas ~]$ sudo usbip list --remote=172.31.128.1
usbip: info: no exportable devices found on 172.31.128.1
No such luck on Ubuntu instances. Installing linux-tools-generic
results in:
root@texas:~# usbip
WARNING: usbip not found for kernel 5.15.150.1-microsoft
You may need to install the following packages for this specific kernel:
linux-tools-5.15.150.1-microsoft-standard-WSL2
linux-cloud-tools-5.15.150.1-microsoft-standard-WSL2
You may also want to install one of the following packages to keep up to date:
linux-tools-standard-WSL2
linux-cloud-tools-standard-WSL2
However, usbip can be easily built on Ubuntu, and it works okay. Just follow the instructions in README
at https://github.com/microsoft/WSL2-Linux-Kernel/tree/linux-msft-wsl-5.15.y/tools/usb/usbip
github.com/dorssel/usbipd-win does not include client-side support. Running usbipd.exe from WSL2 results in a hung console. I discussed this with @dorssel and he recommends using native usbip, which is included in the linux-tools package. I attempted to install this package, however, the installed version would not run because it isn't compatible with the current version of linux in WSL2, which is the following:
C:\WINDOWS\system32>wsl --version
WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.4170
There is no version of linux-tools built for the version of linux used in WSL2.
Please build and maintain this package as part of WSL2.