Skip to content
daniel@cosenza:~/blog

tag

#wsl2

32 posts

WSLHow-To August 23, 2026 3 min read

How to Back Up and Restore a WSL Distro

A complete walkthrough exporting a WSL distro's entire state to a portable file, and restoring it later — on the same machine after a problem, or on an entirely different machine.

#howto#wsl2#backup
Read more
WSLHow-To August 21, 2026 2 min read

How to Set Up Docker with the WSL2 Backend

A complete walkthrough getting Docker Desktop configured to use WSL2 as its backend, integrating specific distros, and verifying containers actually run using WSL2's real Linux kernel rather than a separate VM.

#howto#docker#wsl2
Read more
WSLHow-To August 20, 2026 2 min read

How to Enable systemd in WSL2

A complete walkthrough turning on systemd support in a WSL2 distro — configuration, the required restart, and verifying services actually manage correctly afterward.

#howto#wsl2#systemd
Read more
WSLHow-To August 18, 2026 2 min read

How to Set Up GPU-Accelerated CUDA Workloads in WSL2

A complete walkthrough getting an NVIDIA GPU working for CUDA-accelerated machine learning workloads inside WSL2 — driver setup, verification, and running an actual PyTorch or TensorFlow workload against it.

#howto#wsl2#cuda
Read more
WSLHow-To August 17, 2026 2 min read

How to Access Files Between Windows and WSL Correctly

A complete walkthrough of both directions of file access — reaching Windows files from Linux, and Linux files from Windows — plus the performance-driven rule for deciding where a given project's files should actually live.

#howto#wsl2#filesystem
Read more
WSLDeep Dive August 11, 2026 2 min read

How WSL Actually Packages and Distributes Linux Distros

Installing Ubuntu via the Microsoft Store feels like installing any other app. Underneath, WSL distros are root filesystem tarballs registered with a small platform layer — and that model is what makes import/export and custom distros possible.

#deep-dive#wsl2#distros
Read more
WSLDeep Dive August 10, 2026 2 min read

How WSL2 Actually Manages Memory (and Why vmmem Grows)

WSL2's lightweight VM claims memory dynamically as Linux processes need it — but historically gave that memory back to Windows only reluctantly. Here's what's actually happening, and what you control via .wslconfig.

#deep-dive#wsl2#memory
Read more
WSLNews August 8, 2026 1 min read

GPU Compute Comes to WSL2, Enabling Real ML Workloads

Microsoft announced GPU-accelerated compute support for WSL2 at Build 2020, followed by an NVIDIA CUDA preview that let machine learning frameworks like PyTorch and TensorFlow use a physical GPU from inside WSL2.

#news#wsl2#gpu
Read more
WSLFix August 7, 2026 3 min read

Fixing WSL2 Clock Drift After Sleep or Hibernation

The system clock inside WSL2 falls behind Windows' own clock, especially noticeably after your laptop sleeps and resumes. Here's why the VM's clock actually drifts, and how to force it back in sync.

#fix#wsl2#clock
Read more
WSLDeep Dive August 7, 2026 2 min read

WSL2's Networking Modes: NAT and Mirrored, Explained

WSL2's original networking design put it behind its own virtual network, invisible to the rest of your LAN by default. Mirrored networking mode, added later, takes a fundamentally different approach — and each has real tradeoffs.

#deep-dive#wsl2#networking
Read more
WSLDeep Dive August 6, 2026 2 min read

How WSL Bridges Two Completely Different Filesystems

Linux and Windows filesystems handle permissions, case sensitivity, and paths in fundamentally different ways. WSL's cross-OS file access works by translating between them at the protocol level — and that translation has real performance costs.

#deep-dive#wsl2#filesystem
Read more
WSLFix August 6, 2026 2 min read

Fixing WSL2 Networking and DNS Resolution Failures

Ping works, but domain names won't resolve inside WSL2 — or the reverse. Here's how to actually diagnose whether the problem is DNS configuration, VPN interference, or the networking mode itself.

#fix#wsl2#networking
Read more
WSLFix August 5, 2026 3 min read

Fixing High vmmem Memory Usage in WSL2

Task Manager shows vmmem consuming several gigabytes of RAM, even when you're not actively using WSL. Here's how to actually diagnose what's holding that memory, and how to cap it properly.

#fix#wsl2#memory
Read more
WSLDeep Dive August 5, 2026 2 min read

The Linux Kernel Microsoft Actually Maintains for WSL2

WSL2 doesn't borrow a distro's kernel — Microsoft maintains its own fork, patched specifically for the virtualized environment WSL2 runs in, and ships it independently of both Windows and any Linux distro's own kernel.

#deep-dive#wsl2#kernel
Read more