Skip to content

UID user collision between different WSL distributions #13985

@rdbisme

Description

@rdbisme

Windows Version

Microsoft Windows [Version 10.0.26220.7344]

WSL Version

2.6.2.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.87.2-1

Distro Version

Archlinux

Other Software

systemd 259-1

Repro Steps

  • Enable systemd in my Arch WSL
  • Start podman machine start
  • Start my work WSL
  • My Arch work WSL can't start systemd because of UID collision with the user UID of the podman VM

Expected Behavior

I can start the two VMs independently. I'd argue that two VMs should not interfere between each other.

Actual Behavior

The [email protected] can't start because it's already running in the other VM. Why are they conflicting?

wsl: Failed to start the systemd user session for 'rdb'. See journalctl for more details.

Changing the uid manually in one of the distributions solves the problem, but I'd assume the distributions would be isolated?

Diagnostic Logs

Dec 25 15:51:47 CiD unknown: WSL (2 - Interop) ERROR: operator():2755: systemctl is-active [email protected] returned: failed
Dec 25 15:51:47 CiD kernel: misc dxg: dxgk: dxgkio_is_feature_enabled: Ioctl failed: -22
Dec 25 15:51:47 CiD kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
Dec 25 15:51:47 CiD kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
Dec 25 15:51:47 CiD kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
Dec 25 15:51:47 CiD kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
Dec 25 15:51:47 CiD kernel: misc dxg: dxgk: dxgkio_is_feature_enabled: Ioctl failed: -22
Dec 25 15:51:47 CiD kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
Dec 25 15:51:47 CiD kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
Dec 25 15:51:47 CiD kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
Dec 25 15:51:47 CiD kernel: misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions