ArchWSL icon indicating copy to clipboard operation
ArchWSL copied to clipboard

ArchWSL v21.8.28.0 -- installs as WSL 1 even if WSL 2 set as default

Open jamincollins opened this issue 3 years ago • 7 comments

Describe the issue ArchWSL v21.8.28.0 -- installs as WSL 1 even if WSL 2 set as default

To Reproduce Verify that your system is set to WSL 2 as default:

> wsl --status
Default Version: 2

Windows Subsystem for Linux was last updated on 1/21/2022
WSL automatic updates are on.

Kernel version: 5.10.60.1

Install ArchWSL:

> .\Arch.exe install
Using: rootfs.tar.gz
Installing...
Installation complete

Check the installed state:

> wsl -l -v
  NAME    STATE           VERSION
* Arch    Stopped         1

Expected behavior If the system is set to WSL 2 as a default, I would expect that ArchWSL would install as WSL 2.

Screenshots N/A -- see console output above

Enviroment:

  • Windows build number: Microsoft Windows [Version 10.0.19044.1469]
  • Security Software: Microsoft Defender
  • WSL version 1/2: WSL 2 (see above)
  • ArchWSL version 21.8.28.0
  • ArchWSL Installer type zip/appx/other clean/update: fresh zip extraction
  • Launcher version: wsldl2, version 21082800 (amd64)

Additional context None

jamincollins avatar Jan 21 '22 17:01 jamincollins

A subsequent upgrade/conversion to WSL 2 does work.

> wsl --set-version Arch 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Conversion complete.

> wsl -l -v
  NAME    STATE           VERSION
* Arch    Stopped         2

jamincollins avatar Jan 21 '22 17:01 jamincollins

Why does this have a label of need-repro? I've provided the reproduction steps in the initial report.

jamincollins avatar Feb 10 '22 19:02 jamincollins

I'm sorry, I mistakenly tagged it.

yuk7 avatar Feb 11 '22 12:02 yuk7

I have the same question and I attemp a lot of command. Finally .\Arch.exe config --wsl-version 2 solve my problem. Run the command in your Archwsl directory.

siuoly avatar Feb 25 '22 12:02 siuoly

Thailand 49140 [email protected]

ariyawongkraso avatar Apr 06 '22 01:04 ariyawongkraso

@jamincollins not sure if this changes anything, but have test latest version 22.3.18.0 ?

rffontenelle avatar May 22 '22 01:05 rffontenelle

This still appears to be a problem with new builds installed on Windows 10. Regardless of the WSL default, Arch is installed as WSL version 1.

Under Windows 11, Arch installs as WSL version 2. Presumably because that's all that is available under Windows 11.

jamincollins avatar May 29 '22 02:05 jamincollins