WslRegisterDistribution failed with error: 0x80370102 Error: 0x80370102 The virtual machine could not be started because a required feature is not installed code example

Example 1: Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.

Simple solution ,use wsl version 1 

Open powershell with admin and run :

wsl --set-default-version 1

Example 2: Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.

assuming you installed wsl2 correctly and still getting this error, 
possible solution: enable virtualization in BIOS