---
title: "Fix WSL errors: 0x8007019e, 0x80370102 and other codes · CloudSat"
description: "Fix common WSL errors on Windows 11 and 10: missing optional components, virtualization off, outdated WSL, broken DNS on VPNs, and full or read-only disks."
url: https://cloudsat.io/learn/fix-common-wsl-errors
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Linux](https://cloudsat.io/learn/topic/linux)

# Fix WSL errors: 0x8007019e, 0x80370102 and other codes

Fix common WSL errors on Windows 11 and 10: missing optional components, virtualization off, outdated WSL, broken DNS on VPNs, and full or read-only disks.

CloudSat team November 18, 2026 7 min read

Most errors from the Windows Subsystem for Linux come from one of five layers: a Windows feature that is not enabled, hardware virtualization that is off, an outdated WSL package, a broken distribution install, or the network between Linux and Windows. The hexadecimal code in the message usually tells you which layer failed, so read it before reinstalling anything. Reinstalling is rarely needed, and it destroys data if you remove a distribution without exporting it first.

Start every investigation with three commands in PowerShell:

```powershell
wsl --version      # WSL package version; an error here means old or missing WSL
wsl --status       # default distribution and version
wsl -l -v          # installed distributions, their state and WSL version
```

## Match the error to its cause

| Code or message | Layer | Go to |
| --- | --- | --- |
| `0x8007019e`, "optional component is not enabled" | Windows feature | Enable the Windows features |
| `0x80040154` right after a Windows update | Windows feature | Enable the Windows features |
| "The term 'wsl' is not recognized" | Windows feature | Enable the Windows features |
| `0x80370102`, "a required feature is not installed" | Virtualization | Turn virtualization on |
| `0x80070003` | Virtualization, or install location | Both sections below |
| `0x800701bc` or `0x1bc`, "requires an update to its kernel component" | WSL package | Update or repair WSL |
| `0x8000FFFF`, "catastrophic failure" or "unexpected failure" | WSL package or Windows | Update or repair WSL |
| "mounted read-only as a fallback", "no space left on device" | Distribution disk | Disk full or read-only |
| No DNS or no internet once a VPN connects | Network | Networking on VPNs |

## Enable the Windows features

WSL 2 relies on two optional Windows features: **Windows Subsystem for Linux** first, then **Virtual Machine Platform**. `0x8007019e` means the first one is missing. A Windows feature update can also switch it off, which is when `0x80040154` appears on a system that worked yesterday.

The quickest fix is to let WSL install what it needs, without adding a distribution, from PowerShell run as administrator:

```powershell
wsl --install --no-distribution
```

If that fails, enable both features directly and restart:

```powershell
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart-Computer
```

On an ARM64 device, Windows PowerShell can report that `wsl` is not recognized even when the features are on. Microsoft's advice is to run `wsl.exe` from PowerShell 7 or from Command Prompt instead.

## Turn virtualization on

`0x80370102` reads "The virtual machine could not be started because a required feature is not installed." WSL 2 runs a small virtual machine, so the processor's virtualization extensions must be enabled and Windows must launch its hypervisor at boot. Check these in order:

1. **Firmware.** Task Manager, **Performance**, **CPU** shows "Virtualization: Enabled" or "Disabled". If disabled, enable Intel VT-x or AMD-V (often labeled SVM Mode) in the UEFI or BIOS setup, then boot again.
2. **The CPU itself.** WSL 2 requires Second Level Address Translation. Processors from before Intel's first Core i generation, such as the Core 2 Duo, cannot run WSL 2 at all.
3. **The boot configuration.** In an administrator prompt, run `bcdedit /enum | findstr -i hypervisorlaunchtype`. If it says `Off`, fix it with `bcdedit /set hypervisorlaunchtype Auto` and restart.
4. **Other hypervisors.** Older VMware Workstation and VirtualBox releases conflict with the Windows hypervisor. Update them (VMware Workstation 15.5.5 or later, VirtualBox 6 or later) or uninstall them.

### Running WSL inside a virtual machine

A Windows VM can only run WSL 2 if its host exposes virtualization extensions to the guest, which is called nested virtualization. On a Hyper-V host, enable it per VM while the VM is off:

```powershell
Set-VMProcessor -VMName "dev-vm" -ExposeVirtualizationExtensions $true
```

On a cloud server, the provider has to offer it. CloudSat provides [nested virtualization](https://cloudsat.io/nested-virtualization) on plans with 8 GB of memory or more, which lets a Windows server run WSL 2, Hyper-V or Docker Desktop.

If virtualization is impossible on a machine, WSL 1 still works, because it translates system calls instead of running a VM. Convert a distribution with `wsl --set-version Ubuntu 1`, and accept that Docker and some kernel features will not work there.

## Update or repair WSL

`0x800701bc` (shown as `0x1bc` by `wsl --set-default-version 2`) means WSL 2's kernel component is missing. On a current system, one command installs or refreshes it along with the rest of WSL:

```powershell
wsl --update
wsl --shutdown
```

When the Microsoft Store is blocked by policy, `wsl --update --web-download` fetches the release from GitHub instead.

For `0x8000FFFF` and other unexpected failures, update WSL and Windows first. If the error survives, repair the Windows image, then the system files:

```powershell
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
```

If it still fails, the WSL repository on GitHub documents how to collect detailed logs, which is what maintainers ask for in an issue.

## Distribution install problems

- **`0x80070003` during install.** Distributions installed from the Store must live on the system drive. In **Settings**, **System**, **Storage**, **Advanced storage settings**, set **Where new content is saved** back to `C:`. To keep a distribution on another drive, install it with `wsl --install -d Debian --location D:\WSL\Debian`, or move an existing one with `wsl --export` and `wsl --import`.
- **"Virtual hard disk files must be uncompressed and unencrypted."** Windows file compression or EFS is set on the distribution's folder. Open the distribution's `LocalState` folder under `%LocalAppData%\Packages`, choose **Properties**, **Advanced**, and clear both compression and encryption for that folder.
- **"Windows Subsystem for Linux has no installed distributions"** although you installed one. You are probably running as the built-in Administrator account, which has its own separate list, or from a 32-bit process. Use your normal account, with **Run as administrator** where a step needs it.
- **The install hangs at 0.0%.** Add `--web-download` to download the distribution directly instead of through the Store.

## Disk full or read-only

Each WSL 2 distribution lives in a virtual disk, `ext4.vhdx`, that grows as needed up to a maximum of 1 TB by default. Check usage from PowerShell:

```powershell
wsl.exe --system -d Ubuntu df -h /mnt/wslg/distro
```

If Linux reports "no space left on device" while Windows has room, raise the limit. On WSL 2.5 and later:

```powershell
wsl --shutdown
wsl --manage Ubuntu --resize 2TB
```

The disk grows but never shrinks on its own. The experimental `sparseVhd=true` setting, under `[experimental]` in `%UserProfile%\.wslconfig`, makes newly created disks return freed space to Windows.

After a crash or power loss, WSL may mount a damaged disk read-only and say so at startup. Repair it with `e2fsck`, which needs a second, working distribution to run from. In PowerShell as administrator, run `wsl --shutdown`, attach the disk without mounting it using `wsl --mount <path-to-ext4.vhdx> --vhd --bare`, find its device name with `wsl lsblk`, run `wsl sudo e2fsck -f /dev/sdX`, then `wsl --unmount`.

## Networking on VPNs and corporate networks

VPN clients often replace DNS servers and routes in ways that the default NAT network does not follow. On Windows 11 22H2 or later, mirrored networking shares the Windows interfaces with Linux and fixes many VPN cases. Add it to `.wslconfig`, then run `wsl --shutdown`:

```ini
[wsl2]
networkingMode=mirrored
dnsTunneling=true
autoProxy=true
```

DNS tunneling, which answers Linux DNS queries through Windows, is already on by default; listing it makes the intent explicit. If DNS still fails, take control of it: set `generateResolvConf=false` under `[network]` in `/etc/wsl.conf`, restart WSL, replace the `/etc/resolv.conf` symlink with a regular file, and list your VPN's DNS servers in it (`ipconfig.exe /all` shows them).

Some third-party firewalls and endpoint security suites also block WSL traffic. Test with the suite paused before you rewrite network settings. Use `curl -I https://example.com` rather than `ping` for the test, because ICMP may be blocked when TCP works.

## FAQ

### Should I reinstall WSL to fix an error?

Only as a last resort, and export your distributions first with `wsl --export Ubuntu D:\backup\ubuntu.tar`. `wsl --unregister` deletes a distribution and every file in it, and most errors above are fixed without it.

### Why did WSL break after a Windows update?

A Windows update can switch the WSL optional component off, which shows up as `0x80040154`. Check both optional features and the `hypervisorlaunchtype` boot setting first, then run `wsl --update`.

### Does WSL work on Windows Server?

Yes. Windows Server 2022 and 2025 support WSL 2, with the same commands and the same requirement for virtualization. On a virtual server, that means nested virtualization must be available from the host.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Linux](https://cloudsat.io/learn/topic/linux)

- [Remote Docker builds over SSH: use a VPS as your engine](https://cloudsat.io/learn/remote-docker-builds-over-ssh): DevOps Remote Docker builds over SSH: use a VPS as your engine 7 min read
- [QEMU, KVM and libvirt: how they fit and how to run a VM](https://cloudsat.io/learn/qemu-kvm-and-libvirt-explained): Linux QEMU, KVM and libvirt: how they fit and how to run a VM 7 min read
- [SSH clients for Windows compared: what to use in 2026](https://cloudsat.io/learn/ssh-clients-for-windows-compared): DevOps SSH clients for Windows compared: what to use in 2026 6 min read
- [Install WSL 2 on Windows 11 and 10, then set it up right](https://cloudsat.io/learn/set-up-wsl-2-on-windows): Linux Install WSL 2 on Windows 11 and 10, then set it up right 6 min read
