WSL: Wsl/Service/RPC_S_CALL_FAILED at first boot of RHEL9 distro

Windows Version

Microsoft Windows [version 10.0.22631.5039]

WSL Version

Version WSL : 2.4.13.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Version du noyau : 5.15.167.4-1

Distro Version

RHEL 9.5

Other Software

No response

Repro Steps

  1. Create a free Red Hat Developer account: https://developers.redhat.com/articles/faqs-no-cost-red-hat-enterprise-linux
  2. Create a WSL RHEL 9 image following these instructions: https://developers.redhat.com/articles/2023/11/15/create-customized-rhel-images-wsl-environment
  3. Download and import the image as mentioned in the above article (I named the WSL distro rhel9)
  4. Boot the distro for the first time: wsl -d rhel9

Expected Behavior

The distro boots correctly.

Actual Behavior

The WSL service fails and all running distros are killed:

PS C:\Users\me\WSL> wsl -d rhel9
Échec de l’appel de procédure distante.
Code d’erreur : Wsl/Service/RPC_S_CALL_FAILED

Diagnostic Logs

Logs will be sent by email.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16

Most upvoted comments

So I did the following:

# in PowerShell running as Admin
PS C:\Users\me> Remove-ItemProperty -Path "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\Plugins" -Name intune-plugin
PS C:\Users\me> get-service "wsl*"

Status   Name               DisplayName
------   ----               -----------
Running  WSLService         WSL Service

PS C:\Users\me> restart-service WSLService
# in regular PowerShell (running as my user)
PS C:\Users\me> wsl -d rhel9

and the distro booted properly. Thank you !!