Today we're going to talk about Ansible troubleshooting, specifically about Windows Subsystem for Linux error 0x80370102.
I'm Luca Berton and welcome to today's episode of Ansible Pilot.
Windows Subsystem for Linux - Ubuntu distribution
``PowerShell
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...
`
This is the full error message that you might encounter whether you run the Windows Subsystem for Linux - Ubuntu distribution.
## Playbook
The best way of talking about Ansible troubleshooting is to jump in a live Playbook to show you practically the error 0x80370102 Windows Subsystem for Linux and how to solve it!
Live Playbook of Error 0x80370102 Windows Subsystem for Linux and fix on Windows version 10.0.19043 Build 19043.
error code
- error reproducer WSL installation
`PowerShell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\user> wsl --install
Installing: Virtual Machine Platform
Virtual Machine Platform has been installed.
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
Downloading: WSL Kernel
Installing: WSL Kernel
WSL Kernel has been installed.
Downloading: Ubuntu
The requested operation is successful. Changes will not be effective until the system is rebooted.
PS C:\Users\user>
`
- error reproducer Ubuntu WSL
`PowerShell
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...
`
Windows Subsystem for Linux version 2 need enabled Windows features:
`bash
Windows Subsystem for Linux
Hyper-V Platform
Hyper-V Hypervisor
`
workaround
- workaround for unsupported CPU or Virtualization environment
`PowerShell
wsl --update
wsl --set-default-version 1
wsl --list -o
wsl --install -d Ubuntu
`
workaround execution
output
``PowerShell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\user> wsl --set-default-version 1
The operation completed successfully.
PS C:\Users\user> wsl --update
Checking for updates...
The Windows Subsystem for Linux kernel can be manually updated with 'wsl --update', but automatic updates cannot occur due to your system settings.
To receive automatic kernel updates, please enable the Windows Update setting: 'Receive updates for other Microsoft products when you update Windows'.
For more information please visit https://aka.ms/wsl2kernel.
PS C:\Users\user> wsl --list -o
The following is a list of valid distributions that can be installed.
Install using 'wsl --install -d <Distro>'.
NAME