Linux Tutorials

Install CachyOS on WSL: Tested Step-by-Step

Installing CachyOS on WSL takes one command Microsoft has not made official yet, and a wrong turn costs you a 157 MiB download and a failed registration. The distro is not in wsl --list --online, so every wsl --install cachyos snippet you have seen posted online fails.

Original content from computingforgeeks.com - post 186226

This guide covers the whole path. It starts with checking your WSL build, then downloading and hash-checking the image, installing it with wsl --install --from-file, and reading what the first setup actually does before you trust it. I checked every step in November 2026 on a Windows 11 lab VM running WSL 3.0.3.0, and every prompt and output below comes from that run.

What Is the CachyOS WSL Image?

It is a monthly root filesystem packaged for WSL, built in the CachyOS/cachyos-wsl GitHub repo and documented on the CachyOS WSL wiki page. The image itself is generic x86-64 so it boots on any CPU, and the first setup probes what your processor supports, then switches pacman to the matching optimized repositories: znver4, v4 or v3. You also get systemd enabled out of the box, fish as the default shell, and a sudo user created during setup.

Each release ships three files: the .wsl image, a .wsl.bundle Cosign signature bundle for verifying the image, and a .SHA256 sidecar. The November image is 164,944,804 bytes, about 157 MiB. The sidecar matters later, because WSL imports whatever bytes you hand it and does no verification of its own.

Why CachyOS Is Missing from wsl –list –online

Run wsl --list --online and you get 24 distributions from Ubuntu to SUSE, Oracle among them, and no CachyOS anywhere in the list:

wsl --list --online output showing 24 distributions with no CachyOS entry

That gap is deliberate, and you will see it echoed in the wrong places. Reddit threads and even Google’s own search summary still say Microsoft added CachyOS to wsl –install, and that there is no official image to download. Both were wrong as of 4 November 2026, because the PR that would have done it, PR #42133, was closed unmerged: Microsoft wants a distribution to join the oss-security distros mailing list and publish its security announcements through it before it ships through wsl --install. Until CachyOS clears that bar, the official image exists but --from-file is the supported path to it, which is exactly what this guide uses.

If you only need a Linux userspace on Windows and the CachyOS tuning is not the point, the built-in list already covers you; our guide to running RHEL and Fedora on WSL shows the one-command route. The rest of this guide is for people who want the v3-optimized packages.

What Do You Need Before You Start?

Four things, and you probably have all of them already:

  • Windows 11 or Windows 10 22H2 with WSL enabled. We tested on Windows 11 (build 26100). If WSL was never enabled, run wsl --install --no-distribution from an administrator PowerShell, reboot, then come back; that is the documented way to add the platform without pulling an unwanted distro.
  • WSL 2.4.4 or newer. That is the floor CachyOS documents for double-click installs of the .wsl file. Update with wsl --update if you are behind; anything current also has --from-file.
  • A PowerShell window. The download and install commands run fine as a normal user.
  • A few GB of disk. The image is 157 MiB compressed, and the extracted rootfs is several times that once the first setup pulls its package set.

Check the WSL side first, because the first line of that output decides which install path you can take. Anything older than 2.4.4 cannot read a .wsl file, so the version is what separates this guide from the older import route.

wsl --version

Each component versions separately, so an outdated WSLg does not always mean an outdated WSL. On the lab VM it read:

WSL version: 3.0.3.0
Kernel version: 6.18.54.1-1
WSLg version: 1.0.79
MSRDC version: 1.2.7391
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.9457

The first line is the one that matters. Anything at 2.4.4 or higher takes the straightforward path in this guide; on an older build, run wsl --update first. If you cannot update, the cachyos-wsl README documents an import route that we did not test.

How Do You Install CachyOS on WSL?

Three moves: download the release and its sidecar, compare the hash, then hand the file to wsl --install --from-file. Nothing here needs the Windows Store or a Microsoft account, and none of it touches your existing distros, because --from-file only registers what you point it at. Keep the order anyway, because the hash step is the one that catches a corrupted download.

Download the Image and Check Its Hash

Pull the latest release tag from the GitHub API and download both files with it, so the commands keep working after the next monthly image ships. The same two requests also grab the checksum sidecar, because you will want it before anything touches WSL.

$tag = (Invoke-RestMethod https://api.github.com/repos/CachyOS/cachyos-wsl/releases/latest).tag_name
$dir = "C:\cachyos"
mkdir $dir -Force
Invoke-WebRequest -UseBasicParsing "https://github.com/CachyOS/cachyos-wsl/releases/download/$tag/cachyos-$tag.wsl" -OutFile "$dir\cachyos-$tag.wsl"
Invoke-WebRequest -UseBasicParsing "https://github.com/CachyOS/cachyos-wsl/releases/download/$tag/cachyos-$tag.wsl.SHA256" -OutFile "$dir\cachyos-$tag.wsl.SHA256"

The tag resolves to 2026.11.05.5 today, which is the image we tested. The -UseBasicParsing flag is not optional on Windows PowerShell 5.1; without it the cmdlet tries to load an IE engine that no longer exists and dies before downloading anything. Keep both files for the next step.

Now compare what you downloaded against what CachyOS published, as one boolean so there is no eyeballing hex strings. One command is worth the discipline, because a corrupted 157 MiB download is exactly the failure that looks like a CachyOS bug later:

(Get-FileHash "$dir\cachyos-$tag.wsl" -Algorithm SHA256).Hash -eq (Get-Content "$dir\cachyos-$tag.wsl.SHA256").Split()[0].ToUpper()

A matching pair answers with one word, True, because Get-FileHash prints uppercase while the sidecar ships lowercase and the comparison folds that away. The lab capture shows both digests exactly as they were checked:

PowerShell Get-FileHash output matching the SHA256 sidecar published with the CachyOS WSL release

On our download, Get-FileHash produced CC407090CE32F8D55092A669039D65CA1CBFBD3D630FF4E567A517175A79F8A0 and the sidecar carried the same digest in lowercase, so the case-insensitive comparison prints True. The sidecar format is deliberately simple, hash, two spaces, filename, so any tool can read it. Skip it and you are trusting whatever the mirror between you and GitHub handed over; a corrupted image fails later with import errors that point nowhere near the real cause.

Install from the File

One command registers the image:

wsl --install --from-file "$dir\cachyos-$tag.wsl"

WSL unpacks the rootfs, registers the distro under the name cachyos, and returns you to the prompt. Nothing boots until you start it, which is why the distro shows as Stopped right after install. Confirm the registration before moving on, because a typo in the file path fails here rather than later:

wsl -l -v

The registration is quiet about everything except the essentials, which is what you want to see, because a registration that prints warnings almost always means a version mismatch upstream of you. On the lab VM it read:

  NAME      STATE           VERSION
* cachyos   Stopped         2

Stopped is the expected state right after install, and VERSION 2 confirms it runs on the WSL2 VM rather than the abandoned WSL1 translator. A version 1 entry would mean the distro boots without systemd, so stop and fix the WSL install before continuing if you ever see one. Everything downstream, from the v3 repo check to GUI apps, depends on that number being 2.

Error code: Wsl/Service/RegisterDistro/ERROR_ALREADY_EXISTS

Run the same --from-file command twice and the second attempt fails with this:

A distribution with the supplied name already exists. Use --name to choose a different name.

Error code: Wsl/Service/RegisterDistro/ERROR_ALREADY_EXISTS

We hit it by re-running the install on a machine that already had the distro, and it is harmless. The first copy is still there and nothing was damaged, because the second attempt aborts before it writes anything. You have three ways out:

  • Keep using the distro that is already registered; nothing needs repeating.
  • Add --name cachyos-test to register a second, parallel copy from the same file.
  • Remove the old one first with wsl --unregister cachyos, which deletes it permanently.

Pick the first unless you actually need two copies, since every copy you register takes several GB of disk. Whatever you choose, do not delete the .wsl file yet, because the last section of this guide shows why you will want it back.

What Happens on the First Launch?

wsl -d cachyos starts the distro, and the first setup runs before you see a shell. Budget a few minutes and do not close the window, because it does five things in order:

  • Initializes the pacman keyring and trusts the CachyOS and Arch signing keys.
  • Ranks the mirrors and enables the optimized repository set for your CPU.
  • Installs the base package set from those mirrors.
  • Asks for a username and password, creating a sudo user with fish as the shell.
  • Finishes with a full system upgrade so the rootfs is current.

Launch the distro from PowerShell and the whole setup runs unattended until it reaches the user prompt. Let it finish on its own, because a partially assembled rootfs will not register cleanly if you close the window halfway:

wsl -d cachyos

The version check below comes from the lab VM after the first setup had finished, so it shows the distro Running rather than Stopped. That is the state you are headed for:

wsl --version showing WSL 3.0.3.0 and wsl -l -v listing the cachyos distro on version 2

The early screens are the usual package-manager noise, and they are worth one glance each to know what normal looks like, because you need that baseline when something goes wrong on a later launch. First the keyring and mirror work:

First CachyOS WSL launch initializing the pacman keyring and ranking mirrors

Then the base package install from the freshly ranked mirrors, which is the slowest screen of the five. None of it needs your input, so this is the moment to watch the mirror names scroll past and confirm nothing times out. A mirror that times out here would leave the rootfs half built, and the fix is re-registering rather than waiting it out.

CachyOS WSL first setup installing base packages

Next comes the part you actually type into. The setup asks for a username, then a password, and the password is confirmed twice in the usual UNIX way. Everything before this point was the distro assembling itself; everything after it is yours.

CachyOS WSL first setup prompting for a new UNIX username

The username lands first, then the password, and the two screens that follow are where the account is actually created:

CachyOS WSL first setup asking for and verifying the password for the new user

Pick a username you will not mind typing every day; we used harrison. The password you set here is what every sudo command will ask for from now on, and there is no root account to fall back on. The setup then runs the system upgrade it opened with, and it is the same pacman -Syu you will be running by hand from now on:

CachyOS WSL first setup finishing with a full pacman -Syu system upgrade

After that you land at a fish prompt. From here on, keep the system current the Arch way, sudo pacman -Syu, whenever you come back to the distro; the monthly image is a snapshot, not a subscription to updates. For what to enable next, from AUR helpers to developer tooling, our things to do after installing CachyOS guide picks up right here.

Check That You Landed on the v3 Repos

This is the part that makes CachyOS worth the extra step, so verify it instead of assuming. The v3 packages only speed anything up when the loader both supports and searches for them, which is why the probe below answers two questions in one line. First ask the CPU what it supports:

/lib/ld-linux-x86-64.so.2 --help | grep x86-64

One line answers, and supported, searched is the strongest answer the loader gives, because it means the dynamic linker actively prefers v3 libraries. On the lab VM it printed:

  x86-64-v3 (supported, searched)

x86-64-v3 (supported, searched) means the loader hunts for v3-optimized libraries, which is exactly what the first setup enabled in pacman. Look at the top of the config and you can see the order it will resolve in:

head -n 32 /etc/pacman.conf

The config reads exactly as its own comment promises, with the three v3 repositories listed above the generic ones so pacman takes a v3 build whenever one exists. The probe and the config, as the lab captured them side by side:

x86-64-v3 support probe and the top of /etc/pacman.conf showing cachyos-v3 repos above the generic ones

pacman reads repositories top to bottom and takes the first hit, so the three v3 repos shadow their generic counterparts for every package that has a v3 build. If your CPU only supports v2 or the probe prints nothing about v3, you will see [cachyos] and the plain Arch repos here instead, which is fine; you simply get the generic packages.

Two more checks confirm the rest of the setup landed: systemd should answer running, and fish should be the shell the setup gave you. If either one fails, the first setup did not finish its work, and the clean recovery is unregistering and starting again from the .wsl file:

systemctl is-system-running
fish --version

Both answers should be boring. Running means systemd got all the way through initialization, and the fish version confirms the shell the setup promised; degraded also appears on healthy WSL installs when one optional unit fails, so treat only absence of a shell or fish as a real failure:

running
fish, version 4.9.3

The prompt you land on is fish, and it greets like any CachyOS install once you run fastfetch. The lab console looked like this:

fish shell with fastfetch running in CachyOS on WSL after first setup

With systemd running inside the distro, regular services behave the way they would on a real Arch box, so systemctl, timers and sockets all work without workarounds. That is a direct consequence of the v3 image booting systemd as PID 1, which older WSL distros could not do. If containers are the end goal, our guide to WSL containers covers what changes when the runtime lives inside a WSL distro.

Can You Install AUR Packages with paru?

Yes, and the flow is the standard Arch one: paru is not in any repo, so you build it with makepkg and install the result with pacman. Start with the build tools:

sudo pacman -S --needed --noconfirm base-devel git

That pulls the full base-devel group from the v3 repos, and --needed keeps it from reinstalling anything you already have. Then clone paru from the AUR and hand it to makepkg. The clone lands in ~/paru, which is where the next command expects to find it:

git clone https://aur.archlinux.org/paru.git

The clone itself takes seconds. What it really sets up is the next command’s working directory, because makepkg refuses to run from anywhere but the PKGBUILD’s folder:

cd ~/paru && time makepkg -s --noconfirm

On the lab VM this ran for twenty-four and a half minutes, and the timer at the end of the capture shows the exact split between real, user and sys time. That user time nearly double the wall clock is the four vCPUs earning their keep, so the capture is the honest baseline for any AUR build you plan here:

makepkg building paru from the AUR inside CachyOS on WSL, finishing in 24 minutes

That is the honest price of compiling paru’s Rust code on the four vCPUs our lab VM passes through from a Core i7-6700, and it scales the way it would on real hardware of the same core count, no more and no less. AUR builds are the one place WSL gives you nothing for free. Install the package that fell out of the build:

sudo pacman -U --noconfirm ~/paru/paru-2.2.0-1-x86_64.pkg.tar.zst
paru --version

The install itself is quick, because the expensive part already happened in makepkg, and pacman takes the finished package without ever touching the AUR again. pacman reports the package size, arms its usual hooks, and the version check prints the pair that proves the toolchain is current:

paru         2.2.0-1        8.28 MiB

:: Processing package changes...
installing paru...
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
paru v2.2.0 - libalpm v16.0.1

paru 2.2.0 against libalpm 16, which is current, confirms the toolchain inside the distro is a normal up-to-date Arch one. A quick AUR round trip proves the helper end to end:

paru -S --needed --noconfirm hello
pacman -Q hello

On a first run, paru prints the AUR lookup, validates the source tarball and builds. Our capture came from a re-run, so the build step shows as skipped and you can read the flow cleanly:

paru installing the hello package from the AUR and pacman -Q confirming version 2.12.3

We had built hello earlier in the session, so paru reports it up to date and reinstalls rather than recompiling; on a first run you will see the same steps plus a short build. The takeaway stands: from the reader’s side, the AUR under WSL is indistinguishable from the AUR on bare metal, and the v3 repos answered first for the toolchain the whole way. The only difference you will feel is build time on the big packages, and that is the CPU doing it, not WSL.

What Do You Give Up Without the CachyOS Kernel?

The kernel, and everything that hangs off it. WSL2 always boots Microsoft’s kernel, so uname -r reads the same string on CachyOS as it does on Ubuntu:

uname -r

There is no CachyOS branding in the string anywhere, and that is the point, because the distro never chooses its kernel under WSL. The lab VM printed 6.18.54.1-microsoft-standard-WSL2, and the capture below pairs it with the proof that the kernel extras are missing:

uname -r showing the Microsoft WSL2 kernel while linux-cachyos sits unused in the v3 repo, with sched_ext, chwd and zram absent

The v3 repository even offers linux-cachyos, and installing it would succeed, but it would be dead weight, because nothing ever boots it. The same goes for the tooling built around the kernel:

ComponentBare-metal CachyOSCachyOS on WSL
Kernellinux-cachyos with BORE/EEVDF patchesMicrosoft kernel 6.18.x WSL2
sched-ext schedulersAvailable, loaded at bootAbsent, no /sys/kernel/sched_ext
chwd driver installerPresentNot shipped
zram swapEnabled by defaultNone, zramctl prints nothing
Optimized v3 userspaceYesYes, same packages

What you keep is the userspace, which is where most of CachyOS’s published benchmark gains come from anyway. The compilers, libraries and packages you run are built for your CPU generation, and pacman resolves them in v3 first. Where the kernel gap actually bites is scheduler tuning, and that is the territory of our CachyOS kernel manager performance tuning guide, none of which applies under WSL.

One kernel-adjacent habit does transfer. When a pacman transaction says “reboot recommended”, the WSL equivalent is wsl --terminate cachyos, which forces every process to reload the new libraries on next start. Run it from PowerShell, not from inside the distro.

If any row of that table bothers you, the honest answer is a real install. Our CachyOS install guide walks the same distro onto bare metal or a VM, where the kernel manager and zram come along for free. Keep this WSL copy anyway for quick tests, because the two coexist without any conflict.

Do GUI Apps and GPU Acceleration Work?

GUI apps work out of the image with no extra setup, because WSLg ships as part of WSL itself. The distro gets Wayland and X11 sockets on first boot, so any X or Wayland window you launch appears on the Windows desktop like a native app. Install the usual test suspects:

sudo pacman -S --needed --noconfirm glxinfo xorg-xeyes

Even a two-provider choice goes through the repo priority, because mesa-utils exists in both cachyos-extra-v3 and extra. pacman offers the default, and the lab took it:

:: There are 2 providers available for glxinfo:
:: Repository cachyos-extra-v3
   1) mesa-utils
:: Repository extra
   2) mesa-utils

Enter a number (default=1):
looking for conflicting packages...
:: Processing package changes...
installing mesa...

Take the default, option 1, and pacman installs mesa-utils from the v3 repo rather than the generic Arch one; that is the repo priority from the last section doing its job. Same package name, different build, and the v3 build wins without you configuring anything. Then launch something with a window:

xeyes

No display variables to export, no X server to install, no config file, because WSLg wires the sockets up before your shell starts. The window simply opens on the Windows desktop, which the lab capture shows:

xeyes running from CachyOS inside WSL and opening on the Windows 11 desktop through WSLg

The fish shell window behaves the same way, so this is not a quirk of one toolkit. Any graphical tool you install from the repos, be it a file manager, an editor or a browser, lands on the desktop the same way:

A fish shell window from CachyOS on WSL rendered on the Windows 11 desktop next to xeyes

Both windows render on the Windows 11 desktop with no X server to install and no VcXsrv configuration, which is the whole point of WSLg. They also resize and close like native windows, because WSLg bridges them into the Windows shell. If you have used VcXsrv on older setups, the difference is that nothing here runs on the Windows side, so there is no tray process to forget at the next reboot. glxinfo -B tells you what is doing the drawing:

glxinfo -B

The lines to read are the renderer string and the Accelerated flag, because they tell you whether drawing happens on a GPU or in software. The lab VM, which exposes no GPU to WSL at all, reported the llvmpipe software renderer with Accelerated: no, as the capture shows:

glxinfo -B inside CachyOS on WSL reporting the llvmpipe software renderer with Accelerated: no on a VM without a GPU

llvmpipe with Accelerated: no is software rendering, and that is what our lab VM gets because it exposes no GPU to WSL at all; windows still open, they just draw on the CPU. On physical hardware, read the same renderer string, which should name your actual GPU. If it does not, the problem is the Windows graphics driver, not the distro. Microsoft’s WSLg documentation covers the GPU path and its driver requirements.

How Do You Tune Memory and Swap?

By default, WSL2 hands the distro half the host’s RAM, and on our 10 GB lab machine that meant 4.8 GiB inside CachyOS with a 2 GiB swap file. The control is a per-user config file on the Windows side, not anything inside the distro:

notepad "$env:USERPROFILE\.wslconfig"

The file does not exist until you create it, which notepad offers to do. Give it a [wsl2] section with the cap you actually care about, and nothing else, because every key you add here applies to all distros:

[wsl2]
memory=4GB

Config changes only apply when the WSL2 VM restarts, so shut it all the way down, then check what the distro sees:

wsl --shutdown
wsl -d cachyos -- free -h

After the shutdown and a fresh start, free -h reports the new ceiling instead of the host’s default. The lab pair shows total memory at 4.8 GiB before the limit and 3.8 GiB after:

free -h inside CachyOS on WSL showing memory dropping from 4.8 GiB to 3.8 GiB after a .wslconfig limit

The limit went from 4.8 GiB to 3.8 GiB, and it applies to every distro on the machine because there is one shared WSL2 VM, not one per distro. That is worth knowing before you blame the distro for a memory number it cannot change, since CachyOS never sees the host’s real size. The same file takes the other caps you are likely to want:

  • processors=2 caps how many CPU cores the WSL2 VM can claim.
  • swap=2GB sizes the swap file WSL keeps next to the distro’s virtual disk.
  • processors and swap apply the same way across distros, since the VM is shared.

Save your work elsewhere before you apply any of them, because wsl --shutdown closes every distro at once, not just CachyOS. A shutdown also drops anything running in memory on the Linux side, so treat it as the reboot it effectively is. Unless you have a reason to stay up, run these edits with the distro already idle, because nothing on the Linux side survives the restart.

If the first setup could not reach the mirrors, it may have skipped the repository optimization, and the symptom is generic Arch packages where v3 ones should be. Re-run it by hand at any time:

sudo /usr/lib/wsl/optimize-repos

The command is idempotent, so on a machine that already optimized it says so and changes nothing. That is the one-line answer the lab got:

The optimized repositories are already enabled

That line on our run means the first setup had already done the work; on a machine where it did not, the same command ranks mirrors and rewrites /etc/pacman.conf, so it is the retry to reach for whenever the v3 repos are missing. One warning before you close this section. wsl --unregister cachyos deletes the distro and its entire filesystem with no confirmation prompt. The recovery is the .wsl image you kept, so re-registering costs you five minutes and one first-setup run.

Your First-Session Checklist

We tested every line below on WSL 3.0.3.0, and each one has a right answer you can check:

  1. wsl --version reports 2.4.4 or newer; ours read 3.0.3.0.
  2. The Get-FileHash comparison printed True against the release sidecar.
  3. wsl -l -v lists cachyos on VERSION 2, initially Stopped.
  4. The first setup created your sudo user with fish, and systemctl is-system-running prints running.
  5. /etc/pacman.conf lists the v3 repos above the generic ones after the x86-64-v3 probe passed.
  6. sudo pacman -Syu completes with no key errors.
  7. xeyes opens a window on the Windows desktop through WSLg.

For most people, the remaining gap versus bare metal is the kernel, and that gap does not close under WSL no matter what you install. When you outgrow the memory cap or want sched-ext schedulers, that is the moment to move to a bare-metal or full VM install. Check the list top to bottom whenever a new monthly image lands, because the release notes occasionally change what the first setup does.

Keep reading

Create a Bootable Windows 11 USB and Install Windows 11 Windows Create a Bootable Windows 11 USB and Install Windows 11 Set Up a Samba Share on Windows 11 and Access It from Linux Networking Set Up a Samba Share on Windows 11 and Access It from Linux Create Disk Partitions in Windows Using diskpart Windows Create Disk Partitions in Windows Using diskpart CompTIA A+ Practice Questions for 220-1201 and 220-1202 Networking CompTIA A+ Practice Questions for 220-1201 and 220-1202 Windows Event IDs Cheat Sheet: Security and System Logs (PDF) Cheat Sheets Windows Event IDs Cheat Sheet: Security and System Logs (PDF) How to run Linux on Windows Server 2019 with WSL Tips & Tricks How to run Linux on Windows Server 2019 with WSL

Leave a Comment

Press ESC to close