![]() Select the bus ID of the device you’d like to attach to WSL and run this command. It will list all the USB devices connected to Windows. This will keep the WSL 2 lightweight VM active.įrom an administrator command prompt on Windows, run this command. Attaching a deviceįirst ensure a WSL command prompt is open. Sudo update-alternatives -install /usr/local/bin/usbip usbip /usr/lib/linux-tools/5.4.0-77-generic/usbip 20Īt this point a service is running on Windows to share USB devices, and the necessary tools are installed in WSL to attach to shared devices. On Ubuntu 20.04 LTS, run these commands: sudo apt install linux-tools-5.4.0-77-generic hwdata The instructions below are for Ubuntu - other distributions may require a different usbip client package. Install the latest release of usbipd-win.įrom within WSL, install the user space tools for USB/IP and a database of USB hardware identifiers. You’ll need to be running a WSL 2 distro. Running uname -a from within WSL should report a kernel version of 5.10.60.1 or later. To get started with this functionality, first ensure you’re running Windows 11 and have installed all WSL updates.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |