XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Windows 11 WSL2 is not supported with your current machine configuration

    Scheduled Pinned Locked Moved Compute
    5 Posts 3 Posters 21 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      SethNY
      last edited by

      XCP-ng 8.3, XO from sources.
      Created Win11 from ISO using the built-in Windows 11 template
      Configured and turned into template for cloning.

      Trouble installing WSL on the cloned Win11:
      WSL2 is not supported with your current machine configuration

      This worked a couple years ago Win10 on XCP-ng 8.2, Ubuntu 22.04.

      From administrative powershell

      Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
      (Accept the reboot, back to administrative powersehll)
      wsl --install
      (fails)
      wsl --list --online
      wsl --install -d Ubuntu-24.04
      (fails again)
      

      I tried enabling Nested Virtualization for the VM without success
      Booted to (F2) BIOS and confirmed not virtualization options there to enable

      Has anyone got Win11/WSL/8.3 working? I'm hoping it's not due to not installing a Windows license key.

      S TeddyAstieT 2 Replies Last reply Reply Quote 0
      • S Offline
        SethNY @SethNY
        last edited by SethNY

        Error code: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED

        Additionally tried this:

        Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

        EDIT: Add Next steps tried
        Open the Turn Windows features on or off panel
        Turn these settings off: Hyper-V, Windows Subsystem for Linux, Virtual Machine Platform, click OK, and restart your computer.
        Turn these settings ON: Hyper-V, Windows Subsystem for Linux, Virtual Machine Platform, click OK, and restart your computer.

        EDIT2:
        dism.exe /online /get-features /format:table
        HypervisorPlatform was disabled
        Enable Windows Hypervisor Platform feature and rebooted.

        This did not fix the issue.

        EDIT3:
        It looks like WSL on Windows 11 might be unsupported on XGP-ng 8.3
        https://docs.xcp-ng.org/compute/#-nested-virtualization

        1 Reply Last reply Reply Quote 0
        • TeddyAstieT Online
          TeddyAstie Vates 🪐 XCP-ng Team Xen Guru @SethNY
          last edited by TeddyAstie

          @SethNY said in Windows 11 WSL2 is not supported with your current machine configuration:

          XCP-ng 8.3, XO from sources.
          Created Win11 from ISO using the built-in Windows 11 template
          Configured and turned into template for cloning.

          Trouble installing WSL on the cloned Win11:
          WSL2 is not supported with your current machine configuration

          This worked a couple years ago Win10 on XCP-ng 8.2, Ubuntu 22.04.

          From administrative powershell

          Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
          (Accept the reboot, back to administrative powersehll)
          wsl --install
          (fails)
          wsl --list --online
          wsl --install -d Ubuntu-24.04
          (fails again)
          

          I tried enabling Nested Virtualization for the VM without success
          Booted to (F2) BIOS and confirmed not virtualization options there to enable

          Has anyone got Win11/WSL/8.3 working? I'm hoping it's not due to not installing a Windows license key.

          You were probably using WSL 1 before, and now using WSL 2 (which requires Hyper-V thus nested virtualization). And I'm not aware of WSL 2 working on XCP-ng 8.2, I assume you were actually using WSL 1 previously.

          You can use WSL 1 by using

          wsl.exe --set-default-version 1
          

          and

          wsl.exe --set-version <Distro> 1
          
          S 1 Reply Last reply Reply Quote 1
          • S Offline
            SethNY @TeddyAstie
            last edited by

            @TeddyAstie you give me the answer and a valid workaround. You rock!

            Confirmed that solved my issue, as WSL 1 is fine for me to run Ansible.

            A 1 Reply Last reply Reply Quote 0
            • A Online
              acebmxer @SethNY
              last edited by acebmxer

              @SethNY

              Unless i am missing something here.

              xcp-ng host 8.3
              From windows 11 25h2 update. no license key installed yet.

              PS C:\Users\> wsl
              The Windows Subsystem for Linux is not installed. You can install by running 'wsl.exe --install'.
              For more information please visit https://aka.ms/wslinstall
              
              Press any key to install Windows Subsystem for Linux.
              Press CTRL-C or close this window to cancel.
              This prompt will time out in 60 seconds.
              The requested operation requires elevation.
              Downloading: Windows Subsystem for Linux 2.6.1
              Installing: Windows Subsystem for Linux 2.6.1
              Windows Subsystem for Linux 2.6.1 has been installed.
              Installing Windows optional component: VirtualMachinePlatform
              
              Deployment Image Servicing and Management tool
              Version: 10.0.26100.5074
              
              Image Version: 10.0.26200.7171
              
              Enabling feature(s)
              [==========================100.0%==========================]
              The operation completed successfully.
              The requested operation is successful. Changes will not be effective until the system is rebooted.
              Windows Subsystem for Linux has no installed distributions.
              You can resolve this by installing a distribution with the instructions below:
              
              Use 'wsl.exe --list --online' to list available distributions
              and 'wsl.exe --install <Distro>' to install.
              PS C:\Users\> wsl --version
              WSL version: 2.6.1.0
              Kernel version: 6.6.87.2-1
              WSLg version: 1.0.66
              MSRDC version: 1.2.6353
              Direct3D version: 1.611.1-81528511
              DXCore version: 10.0.26100.1-240331-1435.ge-release
              Windows version: 10.0.26200.7171
              PS C:\Users\> wsl --update
              Checking for updates.
              The most recent version of Windows Subsystem for Linux is already installed.
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post