Cannot install WSL on 1ES agents
- Dominant language
- C#
- Stars
- 135
- Forks
- 260
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 115
Description
Installing WSL on 1ES agents fails, which means any pipeline needing to use WSL must use DevOps agents. Example: https://github.com/Azure/azure-sdk-for-cpp/pull/4363
On a DevOps agent with image `windows-2022` version `20230206.1`, we are able to install and use WSL correctly:
```
Image: windows-2022
Version: 20230206.1
> wsl --update --web-download
Downloading: Windows Subsystem for Linux
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
> wsl --version
WSL version: 1.0.3.0
```
https://dev.azure.com/azure-sdk/public/_build/results?buildId=2190474&view=logs&j=62f96420-69e0-55c5-87e4-47c3c06a1c78&t=569ea126-27b5-5a23-71c4-ce1c427a6ea6&l=12
However, on a 1ES agent with image `MMS2022Compliant` version `20230129.1`, the same commands fail:
```
Image: MMS2022Compliant
Image Version: 50.0.0
Current image version: '20230129.1'
> wsl --update --web-download
Downloading: Windows Subsystem for Linux
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
> wsl --version
The file cannot be accessed by the system.
```
https://dev.azure.com/azure-sdk/public/_build/results?buildId=2192324&view=logs&j=62f96420-69e0-55c5-87e4-47c3c06a1c78&t=569ea126-27b5-5a23-71c4-ce1c427a6ea6&l=12
Contributor guide
Assessment
This issue has not been assessed yet.