Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing WSL 2 as one user results in other users' installations behaving like WSL 1 (despite both users reporting default version = 2) #8004

Closed
1 of 2 tasks
davebarkerxyz opened this issue Feb 1, 2022 · 1 comment

Comments

@davebarkerxyz
Copy link

Version

Microsoft Windows [Version 10.0.19043.1466]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.60.1

Distro Version

No response

Other Software

No response

Repro Steps

  • Login to Windows as User 1
  • Install WSL with wsl --install (rebooting as necessary)
  • Run wsl --status and confirm that "Default Version: 2" is indicated
  • Import a container image (e.g. wsl --import myorg-ubuntu myorg-ubuntu myorg-ubuntu-base.tar)
  • Check that a VHDX file has been created at the import location and that wsl.exe --list --all -v shows the container as being version 2
  • Reboot or sign out of Windows (the behaviour is the same in either case)
  • Login to Windows as User 2
  • Run wsl --status and confirm that "Default Version: 2" is indicated
  • Import a container image (e.g. wsl --import myorg-ubuntu myorg-ubuntu myorg-ubuntu-base.tar)

Expected Behavior

As User 2's wsl --status output indicated "Default Version: 2", User 2's import command should generate a VHDX file at the import location, and wsl --list --all -v should show a version 2 container listed (as it did for User 1).

Actual Behavior

Despite wsl --status indicating "Default Version: 2" for both User 1 and User 2, User 2's import command unpacks the tarball to the host filesystem, resulting in a rootfs folder at the import location. The container created is listed by wsl --list --all -v as version 1.

While logged in as User 2, unregistering the container with wsl --unregister myorg-ubuntu, running wsl --set-default-version 2 then re-importing the image creates a version 2 container (with VHDX storage). wsl --status still lists version 2 as the default, but now the behaviour matches the indicated version.

Diagnostic Logs

No response

@davebarkerxyz davebarkerxyz changed the title Installing WSL 2 as one user results in other user's installations behaving like WSL 1 (despite both users reporting default version = 2) Installing WSL 2 as one user results in other users' installations behaving like WSL 1 (despite both users reporting default version = 2) Feb 2, 2022
Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant