microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.29k stars 814 forks source link

Wsl Register Distribution failed with error: 0x80370114 at Certification Process #9835

Open D3vil0p3r opened 1 year ago

D3vil0p3r commented 1 year ago

Windows Version

Microsoft Windows [Version 10.0.22621.1265]

WSL Version

1.1.3.0

Are you using WSL 1 or WSL 2?

Kernel Version

Linux version 5.15.90.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220)

Distro Version

Arch Linux latest

Repro Steps

Hello, I'm trying to publish a WSL image on Microsoft Store. It is an Arch Linux based distribution made for pentesting and learning. After the installation of the image, the user can create its own user account for accessing to the operating system.

The product ID is 9N1M7Q4F1KQF.

My problem is that, during the certification process, on the Certification report, the publisher reported the following:

The product's primary functions are not useable. At launch the product displays a message:
'Wsl Register Distribution failed with error: 0x80370114
Error: 0x80370114 The operation could not be started because a required feature is not installed.'

The issue was observed on multiple devices running Windows build 22000.739.

Observed On: Microsoft Surface Go 3
Tested On: Microsoft Surface Go 3

Tested devices: Other(See Notes)

I built the uploaded msix file by the official Microsoft Distro Launcher program from https://github.com/microsoft/WSL-DistroLauncher and on my test machine it works well (Microsoft Windows [Version 10.0.22621.1265] - Win11). I created a msix package that has a Target Platform Min. Version = 10.0.16299.0.

I tried to investigate more online on Microsoft blogs and similar websites and I read that the error 0x80370114 that the publisher reported is not related to the WSL image itself, but to the settings of the host machine. Indeed, the error says "The operation could not be started because a required feature is not installed." by referring to Windows Features to be turned on in the host machine.

In particular, by referring to several links as: https://learn.microsoft.com/en-us/answers/questions/1187339/resolving-error-0x80370114-the-operation-could-not https://superuser.com/questions/1736443/wsl-2-installing-linux-failed-error-code-0x80370114 https://www.cyberithub.com/solved-wslregisterdistribution-failed-with-error-0x80370114/ https://github.com/microsoft/WSL/issues/8430 https://answers.microsoft.com/en-us/insider/forum/all/wsl-2-installing-linux-failed-error-code/bae391d1-4215-4d93-b0c4-3d96404a7c74

All these links say that the issue is specifically related to the fact that the user (in our case the Publisher) didn't enable all the needed Hyper-V features for WSL2, or some setting on Exploit Protection should be set.

Please, can you help me to understand how the certification process can go successfully? Is it an issue of WSL settings on the publisher host or on WSL image itself?

I'm available for additional information.

Thank you in advance.

Expected Behavior

Certification process successfully.

Actual Behavior

Wsl Register Distribution failed with error: 0x80370114
Error: 0x80370114 The operation could not be started because a required feature is not installed.

Diagnostic Logs

No response

RubTalha commented 7 months ago

https://stackoverflow.com/questions/77142368/wslregisterdistribution-failed-with-error-0x80370114-mojolang