AnsiblePilot — Master Ansible Automation
AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.
Popular Topics
About Luca Berton
Luca Berton is an Ansible automation expert, author of 8 Ansible books published by Apress and Leanpub including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.
Ansible troubleshooting - Windows 10 Error 0x80370102 WSL: Windows Subsystem for Linux — Video Tutorial
How to troubleshoot the Windows 10 WSL: Windows Subsystem for Linux - Error: 0x80370102 The virtual machine could not be started because a required feature.
What You'll Learn
- Windows Subsystem for Linux - Ubuntu distribution
- error code
- workaround
- workaround execution
- Conclusion
- Related Articles
- Root Cause
- Fix Steps
- Step 1: Enable Virtualization in BIOS
- Step 2: Enable Windows Features
Full Tutorial Content
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 '.
NAME FRIENDLY NA
About This Tutorial
- Author: Luca Berton
- Difficulty: Beginner
- Read time: 5 min
- Category: installation
Read the full written article: Ansible troubleshooting - Windows 10 Error 0x80370102 WSL: Windows Subsystem for Linux