Skip to content

Instantly share code, notes, and snippets.

@MartinRGB
Created November 18, 2023 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinRGB/a6ed52f40ed27f5e9272b10371c9d725 to your computer and use it in GitHub Desktop.
Save MartinRGB/a6ed52f40ed27f5e9272b10371c9d725 to your computer and use it in GitHub Desktop.
wsl issue on windows 11 22H3

Reference:

microsoft/WSL#4084

Check in Windows Security -> App & Browser Control -> Exploit Protection Settings:

System Settings, Control Flow Guard (CFG): Use default (On)

Program Settings, there should be entries for:

  • C:\Windows\System32\vmcompute.exe
  • C:\Windows\System32\vmwp.exe

Both should have Control Flow Guard set to:

  • Override System Settings > On > Use Strict CFG

/* Enable Virtual Machine */ PowerShell: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

/* Enable Windows Subsystem for Linux */ PowerShell: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

/* Install WSL v2 */ Download

/* Set Default Version */ PowerShell: wsl --set-default-version 2

PowerShell: wsl --unregister Ubuntu PowerShell: wsl --install -d Ubuntu

by Romuelson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment