usbipd-win
usbipd-win copied to clipboard
NixOS requires other distro to attach
[wsl2]
memory=8GB # Limits VM memory in WSL 2 up to 3GB
processors=2 # Makes the WSL 2 VM use two virtual processors
$ uname -sr
Linux 5.15.146.1-microsoft-standard-WSL2
admin powershell:
usbipd bind --busid 1-2
usbipd: info: Device with busid '1-2' was already shared.
non-admin powershell:
usbipd list
Connected:
BUSID VID:PID DEVICE STATE
1-2 04a9:220e CanoScan Shared
usbipd attach --wsl --busid 1-2
usbipd: info: Using WSL distribution 'NixOS-Groundtruth' to attach; the device will be available in all WSL 2 distributions.
usbipd: error: WSL kernel is not USBIP capable; update with 'wsl --update'.
wsl -v
WSL-Version: 2.1.5.0
Kernelversion: 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.4291
Using custom kernel https://github.com/LGUG2Z/custom-wsl2-linux-kernel doesn't change anything.