actions / runner-images

GitHub Actions runner images
MIT License
10.09k stars 3.04k forks source link

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

Open nishy2000 opened 4 hours ago

nishy2000 commented 4 hours ago

Description

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

Platforms affected

Runner images affected

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
subir0071 commented 3 hours ago

Hello @nishy2000 , Thanks for informing us about the issue. We will analyze the same and update.