runner-images icon indicating copy to clipboard operation
runner-images copied to clipboard

[windows-2022] WSL fails to install distribution image in Azure DevOps Pipelines

Open nishy2000 opened this issue 4 months ago • 1 comments

Description

Running a pipeline which attempts to install a WSL distribution image on windows-2022 is seeing failures.

Platforms affected

  • [X] Azure DevOps
  • [ ] GitHub Actions - Standard Runners
  • [ ] GitHub Actions - Larger Runners

Runner images affected

  • [ ] Ubuntu 20.04
  • [ ] Ubuntu 22.04
  • [ ] Ubuntu 24.04
  • [ ] macOS 12
  • [ ] macOS 13
  • [ ] macOS 13 Arm64
  • [ ] macOS 14
  • [ ] macOS 14 Arm64
  • [ ] macOS 15
  • [ ] macOS 15 Arm64
  • [ ] Windows Server 2019
  • [X] Windows Server 2022

Image version and build link

20241015.1.0

Is it regression?

Yes, 20240310.1.0 is OK.

Expected behavior

Run a pipeline which attempts to install a WSL image like Ubuntu-22.04 on windows-2022

Actual behavior

Result of running wsl --install -d Ubuntu-22.04

wsl --install --distribution Ubuntu-22.04 --web-download --no-launch
Downloading: Ubuntu 22.04 LTS

Installing: Ubuntu 22.04 LTS

There are no more endpoints available from the endpoint mapper. 

Error code: Wsl/InstallDistro/0x800706d9

Repro steps

jobs:
  - job: TryWsl
    pool:
      name: Azure Pipelines
      vmImage: windows-2022

    steps:
      - pwsh: |
          $distribution = "Ubuntu-22.04"
          Write-Host "wsl --update --web-download" 
          $wslupd = wsl --update --web-download | Out-String
          $wslupd
          if ($wslupd) {
            Write-Host "wsl --version" 
            wsl --version
            Write-Host "wsl --status" 
            wsl --status 
            Write-Host "wsl --set-default-version 1" 
            wsl --set-default-version 1
            Write-Host "wsl --status" 
            wsl --status 
            Write-Host "wsl --install --distribution $distribution --web-download --no-launch" 
            wsl --install --distribution $distribution --web-download --no-launch
          }

        displayName: Install WSL

nishy2000 avatar Oct 22 '24 16:10 nishy2000