Fix: WslRegisterDistribution failed with error: 0x80370102 and error 0x80070002

After struggling with this issue for days

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.

Press any key to continue...

including a re-installation of windows 10 (twice) and trying everything on the windows forums, like :

bcdedit /set hypervisorlaunchtype autodid

Setting and re-setting Virtual machine platform, Hyper – V and Windows Subsytem for Linux

image

Rebooting after each setting, and a myriad of other things, the problem turned out to be a setting in the BIOS.

No it had nothing to do with Intel Virtualisation being disabled in the BIOS as many forums suggest, this has been enabled since day one.

The problem was that I had  Limit CPUID Max enabled in the BIOS. This NEEDS TO BE DISABLED for the WSL 2 to work correctly, apparently. I have no clue why or how but this is what solved it for me !

On the other hand if you encounter error 0x80070002, The most likely culprits are either Docker for Desktop or some vpn software messing up network settings. Uninstalling Docker solved the issue for me.

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070002
Error: 0x80070002 The system cannot find the file specified.

Press any key to continue...

Please let me know in the comments below if this solves the issue for you too

Leave a reply:

Your email address will not be published.