2

As mentioned in the GitHub issue I went to Windows Security but both vmvp.exe and vmcompute.exe didn't have any overrides, also there is no override called Code Flow Guard, but two overrides called Code Integrity Guard and Control Flow Guard ( I suspect this is due to Windows 11 ).

overrides for vmcomputeCFG unchecked

I still get this error so if anyone could clarify it would be greatly appreciated ubuntu wsl2 error

Other Info:

  • OS: Windows 11 Home
  • AMD CPU

Output of Get-WindowsOptionalFeature -Online | Where-Object { $_.State -eq "Enabled" } | Select-Object FeatureName | clip

FeatureName                                
-----------                                
Windows-Defender-Default-Definitions       
Printing-PrintToPDFServices-Features       
Printing-XPSServices-Features              
SearchEngine-Client-Package                
WorkFolders-Client                         
Printing-Foundation-Features               
Printing-Foundation-InternetPrinting-Client
MSRDC-Infrastructure                       
MicrosoftWindowsPowerShellV2Root           
MicrosoftWindowsPowerShellV2               
NetFx4-AdvSrvs                             
WCF-Services45                             
WCF-TCP-PortSharing45                      
SMB1Protocol                               
SMB1Protocol-Client                        
SMB1Protocol-Deprecation                   
MediaPlayback                              
WindowsMediaPlayer                         
Microsoft-Windows-Subsystem-Linux

      

Related Links:

13
  • 5
    A Windows problem not Ubuntu.
    – David DE
    Commented Oct 18, 2021 at 12:02
  • 6
    @David WSL questions regarding Ubuntu are on-topic here. It may be a Windows problem, but it is preventing the use of an official Canonical release of Ubuntu. Commented Oct 18, 2021 at 12:47
  • 2
    WSL2 Ubuntu won't launch is an Ubuntu problem too, therefore this question is on topic at Ask Ubuntu.
    – karel
    Commented Oct 19, 2021 at 4:38
  • 1
    @ArchismanPanigrahi While WSL questions may often be better suited for another site like Super User, we don't and can't expect the user to know whether their problem is something that is going to require Windows or Ubuntu expertise (or both!) in advance. Also, please see this Meta answer from Zanna (mod) -- "WSL is Ubuntu and questions about running it are on topic. We should not close questions just because they smell ... Windowsy." Also the referenced Is WSL on-topic meta question and answer. Commented Oct 19, 2021 at 12:45
  • 1
    @Jytesh "VirtualMachinePlatform" is missing from your list. This is the main component that is needed for WSL2. Can you try dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart (also from an Administrator PowerShell)? I'm guessing you are going to get an error there, but knowing what it is might get us one step closer. If it does work, then restart Windows and try the Ubuntu install again. Thanks! Commented Oct 20, 2021 at 19:13

1 Answer 1

2

As user @NotTheDr01ds noted, VirtualMachinePlatform was disabled, but even after enabling it the issue persisted, I needed to enable Hyper-V to make it work, Hyper-V is not installed in Windows Home versions so I followed this tutorial to install it, after that I disabled WSL , restarted enabled it and restarted again to make it work.

Hyper-V in Home installation : https://www.how2shout.com/how-to/download-and-install-hyper-v-on-windows-10-home.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .