microsoft / microsoft/WSL

WSL2: Ubuntu 18.04 Serial devices are no longer mounted properly

Open
#4,322 192 comments 206 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature wsl2
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

  • Your Windows build number: Microsoft Windows [Version 10.0.18932.1000]

  • What you're doing and what's happening:

  1. run WSL2 Ubuntu 18.04
  2. plugin USB to serial device
  3. watch it mount under COM devices in device manager
  4. attempt to open the device in WSL2
  5. cat /dev/ttyS[X]
  • What's wrong / what should be happening instead:
    This works under WSL1 flawlessy, it no longer works in WSL2
    in WSL2 we can clearly see it is not connected or configured
    /dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
    COM3-wsl-pic

COM3-pic

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported sequence in WSL2 Ubuntu 18.04 with a USB-to-serial device, then inspect the observed /dev/ttyS3 state and compare it with WSL1. Confirm that the device appears in Windows Device Manager but cannot be opened from WSL2, and use that comparison to identify the relevant serial-device handling area.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, ubuntu
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.