Skip to content

Instantly share code, notes, and snippets.

@MartinRGB
Created November 18, 2023 19:12
Show Gist options
  • Save MartinRGB/a6ed52f40ed27f5e9272b10371c9d725 to your computer and use it in GitHub Desktop.
Save MartinRGB/a6ed52f40ed27f5e9272b10371c9d725 to your computer and use it in GitHub Desktop.

Revisions

  1. MartinRGB created this gist Nov 18, 2023.
    30 changes: 30 additions & 0 deletions WSL_Docker_Win11_22H3.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    Reference:

    https://github.com/microsoft/WSL/issues/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](https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package)
    >
    > /* Set Default Version */ PowerShell: `wsl --set-default-version 2`
    >
    > PowerShell: `wsl --unregister Ubuntu` PowerShell: `wsl --install -d Ubuntu`

    by Romuelson