RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Fredoline Eruo
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
  1. >
  2. Home
  3. /Learn
  4. /Courses
  5. /Local AI on Windows
  6. /Ch. 12
Local AI on Windows

12. WSL2 Troubleshooting

Chapter 12 of 15 · 20 min
KEY INSIGHT

Most WSL2 failures resolve by shutting down WSL2 (`wsl --shutdown`), fixing the underlying issue, and restarting. WSL2 has no persistent state beyond the VHDX file—it is safe to restart.

WSL2 failures fall into four categories: installation failures, network failures, GPU failures, and storage failures. Here are the specific symptoms and fixes for each.

Installation failures:

Error: WslRegisterDistribution failed with error: 0x800701bc Fix: Update WSL2 kernel. In elevated PowerShell: wsl --update. If that fails, download the MSI manually from Microsoft's catalog and run msiexec /i wsl_update_x64.msi.

Error: The operation timed out Fix: WSL2 install fails on metered connections or VPNs. Disconnect VPN, set network to "Metered: No" in Settings, retry. Alternatively: wsl --install --web-download forces a different download method.

Network failures:

WSL2 loses internet access after resume from sleep or after wsl --shutdown and restart. Check with:

ping 8.8.8.8

If ping works but DNS fails:

ping google.com

If DNS fails, restart the WSL2 networking service:

sudo /etc/init.d/resolvconf restart

Or regenerate the DNS configuration:

echo "[network]" | sudo tee /etc/wsl.conf
echo "generateResolvConf = false" | sudo tee -a /etc/wsl.conf
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf

Rebuild the .wslconfig with wsl --shutdown and reopen.

GPU failures:

nvidia-smi works on Windows but not inside WSL2. Reinstall the WSL2-specific NVIDIA driver. The driver version for WSL2 (e.g., 536.67) differs from the Windows display driver (e.g., 552.22).

Storage failures:

Error: WSL2 has exhausted its maximum internal storage size Fix: Compact the WSL2 virtual disk:

wsl --shutdown
diskpart
# In diskpart:
select vdisk file="C:\Users\YOUR_USERNAME\AppData\Local\wsl\ext4.vhdx"
attach vdisk readonly
compact vdisk
detach vdisk
exit

Then expand the WSL2 filesystem inside Ubuntu:

sudo resize2fs /dev/sdb 50G

Local verification checkpoint

Run the smallest example from this chapter in a local workspace and record the package version, runtime, data path, and observed output. If the result depends on model size, vector count, CPU/GPU backend, or available memory, note that constraint beside the exercise so the lesson remains reproducible.

EXERCISE

Introduce a deliberate network failure inside WSL2 (sudo ip link delete eth0), confirm connectivity breaks, then restore it using the resolv.conf method above and verify with ping google.com.

← Chapter 11
Antivirus Considerations
Chapter 13 →
Performance Optimization