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

Windows 11 and wsl2 import enable default user. #8

Open
kdcllc opened this issue Apr 1, 2022 · 0 comments
Open

Windows 11 and wsl2 import enable default user. #8

kdcllc opened this issue Apr 1, 2022 · 0 comments

Comments

@kdcllc
Copy link
Owner

kdcllc commented Apr 1, 2022

Starting point for the export/import : https://www.hanselman.com/blog/how-to-set-the-default-user-for-a-wsl-distro-that-has-been-manually-installed-with-wsl-import.

Step that worked for me: microsoft/WSL#4276 (comment)

Unfortunately, I wasn't successful with importing and enabling the default user.

Complete steps:

  # 1. export default or Ubuntu-20.04
  wsl --export Ubuntu c:\Temp\UbuntuBackup.tar

 # 2. copy the file to the new machine and import or Ubuntu-20.04
 wsl --import Ubuntu c:\Linux c:\Temp\UbuntuBackup.tar

 # 3. Configure user or Ubuntu2004.exe config --default-user {user}
 ubuntu.exe config --default-user {user}
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