Ansible Pilot

Ansible troubleshooting - Windows 10 Error 0x80370102 WSL: Windows Subsystem for Linux

How to troubleshoot the Windows 10 WSL: Windows Subsystem for Linux - Error: 0x80370102 The virtual machine could not be started because a required feature is not installed. How to verify the Windows Feature and workaround using the Windows Subsystem for Linux version 1.

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

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.

demo

The best way of talking about Ansible troubleshooting is to jump in a live demo to show you practically the error 0x80370102 Windows Subsystem for Linux and how to solve it! Live demo of Error 0x80370102 Windows Subsystem for Linux and fix on Windows version 10.0.19043 Build 19043.

error code

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>
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:

Windows Subsystem for Linux
Hyper-V Platform
Hyper-V Hypervisor

workaround


wsl --update
wsl --set-default-version 1
wsl --list -o
wsl --install -d Ubuntu

workaround execution

output

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            FRIENDLY NAME
Ubuntu          Ubuntu
Debian          Debian GNU/Linux
kali-linux      Kali Linux Rolling
openSUSE-42     openSUSE Leap 42
SLES-12         SUSE Linux Enterprise Server v12
Ubuntu-16.04    Ubuntu 16.04 LTS
Ubuntu-18.04    Ubuntu 18.04 LTS
Ubuntu-20.04    Ubuntu 20.04 LTS
PS C:\Users\user> wsl --install -d Ubuntu
Ubuntu is already installed.
Launching Ubuntu...
PS C:\Users\user>


Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: ansiblepilot
New password:
Retype new password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
Welcome to Ubuntu 20.04 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64)
* Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
System information as of Tue Oct 26 15:28:03 UTC 2021
System load:    0.52      Users logged in:       0
  Usage of /home: unknown   IPv4 address for eth0: 10.0.2.15
  Memory usage:   62%       IPv4 address for eth1: 169.254.149.103
  Swap usage:     1%        IPv4 address for eth1: 192.168.0.202
  Processes:      7
0 updates can be installed immediately.
0 of these updates are security updates.
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
This message is shown once once a day. To disable it please create the
/home/ansiblepilot/.hushlogin file.
ansiblepilot@demo:~$

code with ❤️ in GitHub

Recap

Now you know how to troubleshoot the Windows Subsystem for Linux error 0x80370102. Subscribe to the YouTube channel, Medium, Website and Twitter to not miss the next episode of the Ansible Pilot.

Academy

Learn the Ansible automation technology with some real-life examples in my

Want to keep this project going? Please donate

Trustpilot
Follow me

Subscribe not to miss any new releases

October 26, 2021

FREE Top 10 Best Practices

Top 10 Best Practices of Ansible Automation: save time, reduce errors and stress