Skip to content

WSL fails to load certain services when multiple WSL instances are running, and one of them is running as root #13595

@mhegreberg

Description

@mhegreberg

Windows Version

tested across multiple versions (like 10.0.22631.5909 and 10.0.19045.6332)

WSL Version

tested across multiple versions (like 2.6.1.0 and 2.5.10.0)

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

tested across multiple versions

Distro Version

tested across multiple versions

Other Software

No response

Repro Steps

if you run Archlinux or tumbleweed(skipping the user creation in OOBE), you end up with a WSL install that uses just the root user, and not other users.

repro:
wsl --install archlinux
wsl --install ubuntu

after install, open both WSL instances, then run systemctl --failed on the second(order doesn't matter)

Expected Behavior

both instances should run correctly

Actual Behavior

certain services fail:

  UNIT                  LOAD   ACTIVE SUB    DESCRIPTION
ā— console-getty.service loaded failed failed Console Getty
ā— getty@tty1.service    loaded failed failed Getty on tty1

Diagnostic Logs

No response

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