Skip to content

WSL2 init process only mounts /usr/lib/wsl/* for first-started distro #5506

Closed

Description

Environment

Windows build number: 10.0.20152.0
Your Distribution version: Ubuntu 20.04
Whether the issue is on WSL 2 and/or WSL 1: WSL2

Steps to reproduce

  1. Run wsl --shutdown to clear any active WSL2 sessions
  2. Start a WSL2 distro
  3. Start a different WSL2 distro
  4. The first distro has the paths /usr/lib/wsl/* mounted (good)
  5. The second distro does not have the paths /usr/lib/wsl/* mounted (bad)

Expected behavior

The paths at /usr/lib/wsl/* should correctly mount for all distros regardless of start/boot order.

Actual behavior

Only the first-started distro has the DXGI library paths mounted. For example, when running Docker Desktop (with WSL2 backend) you cannot use the DXGI Machine Learning AI libraries in any distro because the /usr/lib/wsl/* paths are only mounted for the Docker distro because it was the first one started on bootup/login to Windows.

Activity

  1. therealkenc commented on Jun 29, 2020

    @therealkenc

    Confirmed here:

    image

    The dmesg looks like:

    image

  2. onomatopellan commented on Sep 26, 2020

    @onomatopellan

    I think this can be considered as fixed in insider builds.

  3. therealkenc commented on Sep 26, 2020

    @therealkenc

    /fixed 20190 (or thereabouts)

  4. ghost closed this as completedon Sep 26, 2020
  5. jeffsilverm commented on Aug 6, 2022

    @jeffsilverm

    I am still having this issue:

    $ dmesg -H -T -P
    [Fri Aug  5 15:52:51 2022]  Microsoft 4.4.0-19041.1237-Microsoft 4.4.35
    [Fri Aug  5 15:52:51 2022] <3>init: (1) ERROR: ConfigInitializeCommon:665: Failed to mount /usr/lib/wsl/drive
    [Fri Aug  5 15:52:51 2022] : 19
    [Fri Aug  5 15:52:51 2022] <3>init: (1) ERROR: ConfigInitializeCommon:665: Failed to mount /usr/lib/wsl/lib
    [Fri Aug  5 15:52:51 2022] 19
    chq-jeffsi@CHQ-JEFFSI-LX:~$ uptime
     17:46:45 up  1:53,  0 users,  load average: 0.52, 0.58, 0.59
    chq-jeffsi@CHQ-JEFFSI-LX:~$
    

    The mount command looks like:

    QQQQQQ@QQQQQQQQQ:~$ uptime
     17:46:45 up  1:53,  0 users,  load average: 0.52, 0.58, 0.59
    qqqq@@@@@@@:~$ sudo mount -t cifs //10.x.xx.xxx/mis_YYYY_YYYY\$ /mnt/q/  -o "username=QQQQ"
    Password for //10.x.xx.xxx/mis_YYYY_YYYY\$:
    mount error: cifs filesystem not supported by the system
    mount error(19): No such device
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
    $
    
  6. onomatopellan commented on Aug 7, 2022

    @onomatopellan

    Microsoft 4.4.0-19041.1237-Microsoft 4.4.35

    Jeff Silverman (@jeffsilverm) Your distro is WSL1. Try in a WSL2 distro and it should mount /usr/lib/wsl/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions