Skip to content

Install Mesopod on Windows (WSL2)

Mesopod runs on a Windows 11 PC inside WSL2. WSL2 is the Windows feature that runs Linux. The console gives you a single PowerShell command. The command sets WSL up as a server. It installs Mesopod in a Linux distro of its own, and it keeps that distro active across restarts.

Microsoft built WSL2 as a shell for developers, not as a server. Most of this page explains the changes that the install command makes to turn WSL2 into a server. For each change, the page says where the change lives, how to check it, and how to undo it. After that come the parts of a server on Windows that are different from other machines: memory, storage, VPN clients, and remote access.

The page also lists the problems that you are likely to meet. Some things work the same on every machine, for example how to make app names resolve at home. Those are in install.md.

The commands on this page use the production console, console.mesopod.cloud. If you use a non-production Mesopod, use the origin from your own install command instead.

What you need

  • Windows 11, version 22H2 or newer, that is build 22621 or later, on x64 or arm64. The networking mode that the cluster depends on is not available before 22H2. On an older build, the installer stops and says so.
  • An administrator account on the PC. The installer asks Windows for permission once. The rest runs as you.
  • WSL 2.4.4 or newer. You do not have to install WSL yourself. The installer installs WSL on a PC that has none, and updates an older one. Mirrored networking itself works from WSL 2.0. The installer must have 2.4.4 to create its distro by name.
  • Outbound HTTPS. The PC must reach console.mesopod.cloud:443 and bridge.mesopod.cloud:443. During the install, it must also reach WSL's own downloads and get.k3s.io. Port forwarding on your router and a public IP are not necessary. Nothing on the internet connects in.
  • Docker Desktop, if you have it, can stay. If its Kubernetes is on, turn that Kubernetes off. Mesopod runs its own Kubernetes. Make sure that nothing that Docker Desktop runs is published on port 80 or 443. The cluster must have those 2 ports.

Use a PC that you leave on. Your apps are available only while the PC is on.

Install: one line

In the console, open Clusters. Click Add cluster, as step 1 of install.md describes. Select the Windows tab at the top of the page. The directory hints and the install command both follow the tab. The command carries your directory answers:

$env:MESOPOD_CLUSTER='basement-nuc'; $env:MESOPOD_CLAIM='mpc_…'; $env:MESOPOD_DATA_DIR='~/Mesopod'; $env:MESOPOD_SHARED_DIRS=('D:\Media' -join "`n"); irm 'https://console.mesopod.cloud/api/v1/install.ps1?cluster=…' | iex

Paste the command into an ordinary PowerShell window. Do not use an administrator window or a Linux shell. Windows asks for permission once. The install continues in a new window. At the end, that window waits for Enter, so that you can read the output.

What the installer does, in order, with each step skipped when it is already done:

  1. WSL. If the PC has none, the installer installs it. If WSL is present but the Virtual Machine Platform feature is off, the installer turns the feature on. In both cases the installer then says to restart Windows and paste the same line again. Nothing was spent, and the command is still valid. If WSL is older than 2.4.4, the installer updates it. The installer also sets WSL's default version to 2.
  2. %UserProfile%\.wslconfig gains 2 lines. networkingMode=mirrored lets other devices reach the distro at the PC's address. hostAddressLoopback=true lets the PC itself reach it. When you run the saved installer with -Memory, it also writes memory=<cap> under [wsl2] (Memory). The installer keeps every other line in the file.
  3. A distro of its own, named mesopod, Ubuntu 24.04, set up as a server. That is systemd on, root as its user, and no first-run wizard. The installer does not touch an Ubuntu that you already have.
  4. The Hyper-V firewall opens 80 and 443 to the WSL VM and turns on host loopback. There is 1 VM for every distro on the PC, so the ports open to any other distro's listener also.
  5. Your directories, from the line. The line sets MESOPOD_DATA_DIR and MESOPOD_SHARED_DIRS. The installer carries both into the distro across the permission prompt, and it asks no directory question. The installer refuses a Windows drive as the data directory before the prompt. App databases there are slow and lose Linux ownership. The default ~/Mesopod is \\wsl.localhost\mesopod\root\Mesopod in Explorer. A directory of yours on a Windows drive, for example D:\Media, is fine.
  6. The Linux install runs inside the distro. It is the same script that a Linux machine runs. See How the install works. It runs its WSL2 checks, the port hold, k3s, the claim exchange and the outpost. It prints the address that the console must show as the cluster's DNS target. Under mirrored networking, that is the PC's own address.
  7. A startup task, "Mesopod WSL", keeps the distro up across reboots without your password stored. If Task Scheduler cannot start WSL that way on your PC, the installer asks for the password. It stores the password there instead.

The rest of this page goes through each step. If you prefer to set up the distro by hand, the Linux script's WSL2 checks name every step above as they meet it. The script inside the distro must have sudo, a WSL distro with systemd and mirrored networking on, and something that holds ports 80/443. The script provides the port hold itself.

On a PC where WSL is not set up yet, the first run turns WSL on and stops:

Restart required. Restart Windows, then run the install command again.
The install command is still valid.

Restart Windows. Then paste the same command again. The install continues. The claim is not spent. The install exchanges the claim later, inside the distro, and the claim is valid for 24 hours.

A first install that completes ends with this output, with your own address and paths:

+ outpost installed and dialling home
> return to the console — the cluster row walks: waiting for your server -> setting up -> ready
> WSL2: the Windows installer handles the startup task, the Hyper-V firewall rule and hostAddressLoopback
> the console should show this cluster's DNS target as 192.168.1.40 (this PC's address) — if it shows another address, set the DNS target to 192.168.1.40 from the cluster's row
+ firewall rule 'Mesopod' enabled (TCP 80, 443 inbound; applies to all WSL distros)
> registering startup task 'Mesopod WSL'...
> testing startup task...
+ startup task 'Mesopod WSL' registered

+ done. Return to the console to watch the cluster come online.
  installed:  WSL distro 'mesopod', startup task 'Mesopod WSL', firewall rule 'Mesopod' (TCP 80, 443)
  repair:     run the install command again
  uninstall:  & 'C:\Users\you\AppData\Local\Mesopod\install.ps1' -Uninstall
  if the cluster is offline after a restart:  & 'C:\Users\you\AppData\Local\Mesopod\install.ps1' -StartupTaskPassword

The run ends at the + done. line. The lines after it give the repair command, the uninstall command, and the command for a cluster that is offline after a restart. In the console, the row moves to setting up and then to provisioned, as on any machine.

Then make the check that the install asks for. The cluster's row shows dns → and an address. That address must be the one that the install printed, that is the PC's own address on your network. If the row shows a different address, open the cluster's page. Under Addresses, click Change beside the DNS target. VPN clients explains the usual cause.

What a server needs from WSL2

WSL2 runs Linux in a lightweight virtual machine. The virtual machine starts when you open a terminal in a distro, and stops shortly after the last terminal closes. By default, WSL runs systemd only in a distro that asks for it. It gives Linux an address that nothing else on your network can reach. It starts nothing when the PC boots. The installer changes 6 things to make WSL a server:

What Why the cluster must have it Where it lives
systemd k3s, the Kubernetes that Mesopod installs, is a systemd service. WSL starts a distro without systemd if the distro does not ask for it /etc/wsl.conf in the distro
Mirrored networking Under WSL's default networking, the distro's address is private to the PC %UserProfile%\.wslconfig
The port hold Windows passes a port to Linux only while a Linux process is bound to it mesopod-wsl-ports.socket in the distro, and 1 mesopod-wsl-exposed-<port>-<proto>.socket per port that an app exposes
The Hyper-V firewall rule The firewall in front of WSL blocks inbound connections if no rule lets them in rule Mesopod
Host loopback Without it, the PC cannot reach the apps at its own address %UserProfile%\.wslconfig
The startup task WSL does not start a distro at boot, and stops a distro that nobody uses task Mesopod WSL

A quick check

Run these commands in an administrator PowerShell window. To open one, search the Start menu for PowerShell. Then select Run as administrator. Run the first command before the others. The wsl -d mesopod commands start the distro if it was stopped.

wsl --list --running
wsl -d mesopod systemctl is-system-running
wsl -d mesopod wslinfo --networking-mode
wsl -d mesopod systemctl is-active mesopod-wsl-ports.socket k3s
Get-NetFirewallHyperVRule -Name Mesopod
Get-ScheduledTask -TaskName 'Mesopod WSL'

A healthy PC gives these answers:

  • mesopod is among the distros that wsl --list --running lists.
  • running or degraded. Both mean that systemd booted.
  • mirrored.
  • active, twice.
  • The rule, with Enabled True.
  • The task, with State Running.

The sections below say what each answer means, and how to correct a wrong one.

systemd

k3s runs as a systemd service. WSL starts a distro without systemd if the distro's /etc/wsl.conf does not ask for it. The installer merges these lines into the mesopod distro's /etc/wsl.conf. It keeps everything else in the file:

[boot]
systemd=true

[user]
default=root

The [user] setting makes root the distro's user. Nobody logs in to this distro, and wsl -d mesopod opens a root shell. The installer also turns off Ubuntu's first-run wizard. Without that, the wizard would ask the first person who opens a shell there to create a user.

Check: wsl -d mesopod systemctl is-system-running prints running or degraded. offline means that something other than systemd started the distro, or that WSL did not restart after the lines went into the file. Run wsl --shutdown, then start the cluster again.

If the lines are missing from /etc/wsl.conf, run the installer again. It merges the lines back and restarts WSL. The installer does not restart WSL when the lines are already present. In that case it stops with systemd is not running in distro '…' … run 'wsl --shutdown', then run the install command again.

Mirrored networking

WSL's default networking puts Linux behind NAT. The distro gets a private address. That address changes when WSL restarts, and no other device can reach it. Mirrored mode instead gives the distro the PC's own network interfaces and addresses. Your apps then answer at the PC's address on your network. That is the address that the console points your app names at.

The installer adds these lines to %UserProfile%\.wslconfig, WSL's settings file. It keeps every other line in the file:

[wsl2]
networkingMode=mirrored

[experimental]
hostAddressLoopback=true

The second setting is host loopback. .wslconfig applies to every WSL distro on the PC, not only to mesopod. Your other distros also get mirrored networking. When you remove Mesopod, the file stays as it is.

Check: wsl -d mesopod wslinfo --networking-mode prints mirrored. If the command prints nat, the setting is missing, or WSL did not restart after the setting went into the file. Run wsl --shutdown, then start the cluster again. If the setting is missing from .wslconfig, run the installer again. The installer does not restart WSL when the setting is already present. In that case it stops with WSL networking mode is 'nat' … run 'wsl --shutdown', then run the install command again.

The port hold

In mirrored mode, Windows hands an incoming connection to Linux only if a Linux process is bound to that port. k3s publishes your apps on ports 80 and 443 through packet-rewriting rules. No process is bound behind those rules. Without help, Windows never passes those ports on, and the apps answer only inside the distro.

The Linux half of the install adds a systemd socket unit, mesopod-wsl-ports.socket, that binds both ports. The unit exists only to claim the ports. The k3s rules rewrite real connections to Traefik, k3s's router, before the socket sees them.

Mirrored mode shares a single set of ports between Windows and Linux. The hold fails if something already listens on port 80 or 443, in the distro or on Windows. The install then stops with could not hold ports 80/443 in this distro. It names the program when it can.

On the Windows side, netstat -ano | findstr ":443 " finds the program. Use ":80 " for the other port. The last column is the process ID. Get-Process -Id <PID> names the process.

Check: wsl -d mesopod systemctl is-active mesopod-wsl-ports.socket prints active. To restore the hold, run the installer again.

The Hyper-V firewall rule

Mirrored mode puts the distro behind the Hyper-V firewall. That is the firewall that Windows keeps in front of WSL. It blocks inbound connections if no rule lets them in.

The installer adds a single rule, Mesopod, shown as "Mesopod 80/443". The rule lets inbound TCP in on ports 80 and 443. The installer creates the rule disabled. It enables the rule only after the Linux install succeeds, so that the ports never open before Mesopod holds them.

Every WSL distro on the PC runs in the same virtual machine, and the rule applies to that machine. A service that another distro runs on port 80 or 443 also becomes reachable from your network. wsl -l -v lists your distros. Microsoft's documentation also shows how to let every inbound connection into WSL. The installer opens only the 2 ports.

Check: In an administrator PowerShell, Get-NetFirewallHyperVRule -Name Mesopod shows the rule with Enabled True and Action Allow. If the rule is missing, changed or disabled, run the installer again. The installer corrects a rule of that name in place, and does not delete it. To turn the rule back on by hand, run Enable-NetFirewallHyperVRule -Name Mesopod.

Host loopback

In mirrored mode, Windows passes a connection to one of the PC's own addresses on to Linux only if .wslconfig sets hostAddressLoopback=true under [experimental]. Microsoft's default is off. Your app names resolve to the PC's address. Without this setting, every app opens from your phone, but not in a browser on the PC itself.

The installer sets it. The installer also makes sure that the Hyper-V firewall's own loopback setting for WSL is on. WSL turns that one on by default.

Check: The [experimental] lines are in .wslconfig. In an administrator PowerShell, this command shows LoopbackEnabled True:

Get-NetFirewallHyperVVMSetting -PolicyStore ActiveStore -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}'

If you add the lines to .wslconfig yourself, run wsl --shutdown. Then start the cluster again.

The startup task

WSL does not start a distro when Windows boots. It stops a distro shortly after the last terminal in it closes. Without help, every restart would leave the PC on and the cluster off. That includes the restarts that Windows Update makes. The installer therefore registers a Task Scheduler task, Mesopod WSL. The task runs at startup and holds the distro open with a process that never exits:

wsl.exe -d mesopod -u root --exec sleep infinity

The task runs as you, before anyone logs on, and does not store your password. In Task Scheduler, the task shows "Run whether user is logged on or not", with "Do not store password" selected. The task has no time limit. Task Scheduler's default would stop it after 3 days. Terminals that you open and close in the distro do not affect the task.

The installer tests the task before the install finishes. It stops the distro, starts the task, and waits up to 30 seconds for the distro to run again. On some PCs, Task Scheduler cannot start WSL without a stored password. The installer then asks for your Windows password and registers the task with that password. Task Scheduler keeps the password. Mesopod does not.

In that case the installer prints startup task 'Mesopod WSL' registered (with stored password).

Sleep is not a restart. When the PC wakes, the distro still runs, and no action is necessary. Your apps are not reachable while the PC sleeps. If the apps must be available at all times, set Windows not to sleep.

Check: Get-ScheduledTask -TaskName 'Mesopod WSL' shows State Running, and wsl --list --running lists mesopod. If the task is registered but mesopod does not run after a restart, the cause is most likely the password. Task Scheduler cannot start WSL without your password on this PC. Register the task with the password, in a new PowerShell window:

& "$env:LOCALAPPDATA\Mesopod\install.ps1" -StartupTaskPassword

Then restart Windows to confirm the task, or start the cluster now.

Start the cluster without a restart

The task runs only at startup. Something that stops WSL while Windows stays on ends the task's hold. The cluster then stays off until the next restart. This happens with wsl --shutdown, which stops every distro. It also happens with a run of the installer that printed restarting WSL.... When you register the task with your password, that does not start the task either.

To start the cluster now, run this in an administrator PowerShell:

Start-ScheduledTask -TaskName 'Mesopod WSL'
wsl --list --running

After mesopod is in the list, k3s and the outpost start. The console then shows the cluster connected again.

Run the installer again

The repair for everything above is to run the installer again. The installer merges its settings back into .wslconfig and /etc/wsl.conf. It corrects and enables the firewall rule. It runs the Linux install again, which puts the port hold back and reads the outpost token from the cluster's own Secret. It registers the startup task if the task is missing. It leaves a registered task alone.

Which command to run depends on whether your install command's claim is spent. The claim is spent after a run printed + token kept at /etc/mesopod/pending/… until the install applies it to the cluster.

  • Not spent yet: paste the same command from the console again.
  • Spent: run the cluster's command without the claim. A failed run prints it:

    $env:MESOPOD_CLAIM=''; $env:MESOPOD_CLUSTER='<your-slug>'; irm https://console.mesopod.cloud/api/v1/install.ps1 | iex

    <your-slug> is the cluster's name in its app addresses, for example basement-nuc.

    The installer finds the mesopod distro, asks for permission as before, and continues the install. A claim works once, so the full command now stops with HTTP 410. If the first run stopped before it finished, that message ends with this command.

    The command starts with $env:MESOPOD_CLAIM='' for the same reason. The window where you pasted the full command still holds the spent claim. The command clears it, so that the installer does not pass it on. Any PowerShell window works. The directory variables that the full command set can stay. A run without a claim passes neither on.

A command with a new claim installs over whatever the distro already holds. Examples are a reissued command, or a cluster that you removed in the console and added again. The install asks nothing first. 1 PC runs 1 cluster. A command with no claim for a different cluster stops before it changes anything, and names both clusters.

Caution: Back up your data before you run -Uninstall. The command removes the distro and its disk, your data directory included.

If you want a clean start instead, run -Uninstall, as Remove Mesopod describes. Then paste the new command.

The installer also keeps a copy of itself at %LOCALAPPDATA%\Mesopod\install.ps1. That copy takes switches. Run it the same way, in a new window:

& "$env:LOCALAPPDATA\Mesopod\install.ps1" -StartupTaskPassword
& "$env:LOCALAPPDATA\Mesopod\install.ps1" -Memory 8GB
& "$env:LOCALAPPDATA\Mesopod\install.ps1" -Uninstall

-StartupTaskPassword registers the startup task with your Windows password, as the startup task describes. -Memory caps WSL's memory, as Memory describes. -Uninstall removes Mesopod, as Remove Mesopod describes. The first 2 switches are also full repair runs.

When a run changes .wslconfig or /etc/wsl.conf, the run restarts WSL and prints restarting WSL.... Afterwards, start the cluster again.

Memory

All WSL distros share a single virtual machine. By default, WSL lets that virtual machine use up to half of the PC's memory. The cluster and every app that you deploy live inside that allowance, together with everything else that you run in WSL. To set a cap, run this in a new PowerShell window:

& "$env:LOCALAPPDATA\Mesopod\install.ps1" -Memory 8GB

This writes memory=8GB under [wsl2] in .wslconfig. It restarts WSL, so that the setting takes effect. Afterwards, start the cluster again. Sizes take GB or MB.

You can also edit the file yourself. Then run wsl --shutdown. Start the cluster again in the same way.

4 GB is a sufficient minimum for a few apps, as on a Linux server.

Storage

Your data directory

The Add-cluster page asks where to keep your data. The Windows tab's command carries the answer. The data directory stays on the Linux side. The default ~/Mesopod is /root/Mesopod inside the distro. Explorer reaches it at \\wsl.localhost\mesopod\root\Mesopod. App volumes land in volumes\<cluster-slug> under the data directory, 1 directory per volume.

The volume's page in the console names the exact directory. The setting is cluster-wide. A workload that you add to this cluster's k3s yourself also lands there.

The installer makes nothing else for you. A directory of your own that you name is registered for apps at its Linux location. A Windows path, for example D:\Media, is fine. The Linux location of that path is /mnt/d/Media.

The page and the installer both refuse a Windows drive as the data directory itself. The reasons are under Windows drives below. App databases there are slow and lose Linux ownership. Shared directories can live on a Windows drive. The data directory cannot.

The distro's own disk

Volumes that Mesopod provisions for your apps live inside the distro, under your data directory. On an install from before the data directory existed, they live under /var/lib/rancher/k3s/storage/. Both places are on WSL's own virtual disk. The disk is an ext4 file system. It is fast, and it keeps Linux file ownership in the way that apps expect. That makes it the place for everything that an app writes heavily or checks the ownership of: databases, photo libraries and app state.

The disk is a single file, ext4.vhdx. By default, WSL keeps the file under your Windows user profile, in %LOCALAPPDATA%. The file grows as apps write, up to WSL's default limit of 1 TB. The free space on that drive is the free space that your apps have. This command prints where the file is:

(Get-ChildItem -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss | Where-Object { $_.GetValue("DistributionName") -eq 'mesopod' }).GetValue("BasePath") + "\ext4.vhdx"

Microsoft advises you not to modify, move or open that file with Windows tools. Explorer reaches the distro's files safely at \\wsl$\mesopod\.

Remove Mesopod deletes all of this data.

Caution: Back up before either step of the removal. Removal of the cluster in the console deletes its volumes, and -Uninstall deletes the disk, your data directory included.

snapshots.md works as written inside the distro. wsl -d mesopod opens a root shell there. Explorer can copy the archive out of \\wsl$\mesopod\.

Windows drives

WSL mounts each fixed Windows drive in the distro under /mnt/. D:\Media is /mnt/d/Media. Apps can use a directory there through a Node Directory, with 2 limits:

  • Slower. Microsoft recommends that the files that a Linux program works on stay in the Linux file system, for speed.
  • No Linux ownership. WSL has a metadata mount option, which the distro's /etc/wsl.conf can turn on. It is off by default, and the installer leaves it alone. Without it, every file on a Windows drive shows the same owner. The file's permission bits come from your Windows account's rights to the file. Linux cannot change who owns the file. Apps that set ownership or permissions on their data, as databases do, can fail there.

So a Windows drive suits files that apps mostly read, for example a media library for Plex or Jellyfin. It is not the place for an app's own data. That means a database, or a library that an app writes to and indexes, for example Immich's photos. Keep those on the distro's own disk.

Use a directory from the PC

Mesopod mounts a directory that already exists on the machine into apps through a Node Directory. The other guides call this a host directory volume. Here the machine is the distro. The path is a Linux path inside the distro, /mnt/d/Media for D:\Media, and never a Windows path.

  1. In the console, open Volumes → Create volume. Select Node Directory and this PC's cluster. Type the Linux path under Directory on your server. Click Create volume.
  2. The directory's page shows the install command under Confirmed on cluster. The line that starts with Windows: is the one for this PC. Run that command in a PowerShell window, as Run the installer again describes:

    $env:MESOPOD_CLAIM=''; $env:MESOPOD_CLUSTER='<your-slug>'; irm https://console.mesopod.cloud/api/v1/install.ps1 | iex

    The run registers every directory on the cluster's list, together with the rest of the install.

    The page also shows a kubectl command, under "Or, with kubectl:". That command is the alternative. Open a shell in the distro with wsl -d mesopod. Run the command there. Put sudo before bash if the console's command does not have it:

    curl -fsSL https://console.mesopod.cloud/api/v1/register-roots.sh | sudo bash -s -- --cluster-id … --cluster … --root '/mnt/d/Media'

    The script applies the registration with kubectl. On a cluster that the Linux install built, kubectl reads k3s's own credentials, which only root can read. In the mesopod distro you are root already, so sudo changes nothing there. If any other user runs the command without sudo, the command fails with kubectl cannot read this machine's k3s kubeconfig: k3s keeps /etc/rancher/k3s/k3s.yaml readable by root only …. 3. The console confirms the directory within seconds. Or click I've run it — verify now. If the verification fails, the remedy line under the chip says why. See troubleshooting.md.

A second drive

A second internal drive can serve the cluster in 2 ways.

As a Windows drive, unchanged. It appears under /mnt/ in the same way as any other drive, with the limits above. That suits a media library.

Reformatted as ext4 and attached to WSL with wsl --mount. The drive then behaves in the same way as the distro's own disk, fast and with Linux ownership. This has 3 disadvantages:

  • The reformat erases the drive. Afterwards, Windows cannot read an ext4 drive.
  • You must run wsl --mount with administrator rights. It attaches the whole disk. It refuses a disk that Windows uses, and the disk that Windows runs from. USB drives are not supported.
  • The attachment does not survive a stop of WSL. wsl --shutdown and every restart detach the disk. You must attach the disk again at every boot, before the cluster uses it.

The installer does not set this up, and its startup task cannot do it. The task runs without administrator rights. The installer re-registers the task with -StartupTaskPassword and removes it with -Uninstall, so do not add to the task. To attach the drive at boot, you must have a startup task of your own that runs with highest privileges. Mesopod did not test this setup.

After you format the drive, attach it in an administrator PowerShell. Use the DeviceID that Get-CimInstance -Query "SELECT * from Win32_DiskDrive" lists for the drive:

wsl --mount \\.\PHYSICALDRIVE2 --partition 1 --name media

The disk then appears in every distro under /mnt/wsl/media. Register directories there as above. Microsoft's guide, Mount a Linux disk in WSL 2, has the details. To format the drive, attach it with --bare instead, and format it from inside WSL. lsblk there lists WSL's own virtual disks next to the new drive. Check the size before you format anything.

VPN clients

Under mirrored networking, the distro shares the PC's network connections. A VPN client on Windows therefore shapes the traffic of the cluster and of Windows alike. Mesopod must have 2 things from the network, and a VPN can take either away:

  • The outpost's connection out, to bridge.mesopod.cloud:443. A kill switch blocks traffic that does not go through the tunnel, and can cut this connection. The console then shows the cluster last bridge: … ago instead of connected.
  • Connections in from your network, on ports 80 and 443. Some VPN clients block the local network if their settings do not let it through.

The simplest correction is to not run the VPN on this PC. Otherwise, turn on local network access in the client's settings, and turn off its kill switch. Or keep the cluster's traffic out of the tunnel with the client's split-tunnel settings, if it has them. Mesopod is not tested with any particular VPN client. With the VPN connected, check that the console shows the cluster connected. Also check that an app opens from your phone on your home network.

A VPN that carries all traffic can also move the cluster's DNS target. Under mirrored networking, the node address that the cluster reports can be the VPN's interface address, not the address of your Wi-Fi or Ethernet adapter. The address that the install printed comes from the PC's default route.

Check the cluster's row in the console. After dns →, the row must show the PC's address on your network. ipconfig lists that address under your Wi-Fi or Ethernet adapter. If the row shows a different address, open the cluster's page. Under Addresses, click Change beside the DNS target. Then set the correct address.

An address that you set this way does not follow the PC if the PC's address changes. Give the PC a fixed address on your router, that is a DHCP reservation.

Reach your apps from outside your home

remote-access-tailscale.md explains the approach. You run a Tailscale subnet router on your home network. A device away from home can then reach the private address that your app names point at. Here, that address is the PC's own address. Mirrored networking is what makes the apps answer there. Under WSL's default networking, the apps answer only inside the PC, and no route reaches them.

Run the subnet router on another Linux machine on the same network. That machine must be always on, for example a Raspberry Pi or a spare mini PC. The guide's steps apply to that machine unchanged, IP forwarding included. Traffic that arrives through the route reaches this PC in the same way as a phone on your Wi-Fi.

The subnet to advertise is the PC's subnet. ipconfig shows the PC's address and subnet mask. 255.255.255.0 is a /24. Test from a phone on mobile data with Tailscale connected.

A subnet router on this PC itself, with Tailscale's Windows client, is not covered yet. Tailscale's subnet router documentation says that Windows must have IP forwarding turned on before it advertises routes. The documentation does not give the steps, and Mesopod did not test that setup.

Troubleshooting

The installer names its own correction at every stop. troubleshooting.md lists the Windows cases that are not stops. The problems below are the ones that appear later.

The cluster is offline after a restart

The console's row shows last bridge: … ago, and the PC is on. In PowerShell, run:

wsl --list --running
  • mesopod is not in the list: the startup task did not start the distro. Start the task to start the cluster again. If the cluster is down after every restart, register the task with your password, as the startup task describes.
  • mesopod is in the list: WSL is up, and the problem is inside WSL. wsl -d mesopod systemctl is-active k3s must print active. After that, the checks in troubleshooting.md apply. Run them inside the distro, with wsl -d mesopod, where <kube> is sudo k3s kubectl. A VPN client can also cut the connection.

An app opens on this PC but not from your phone

Check these in order:

  1. The firewall rule. In an administrator PowerShell, Get-NetFirewallHyperVRule -Name Mesopod shows Enabled True. See the rule.
  2. The DNS target. The cluster's row shows the PC's address on your network after dns →. VPN clients covers a wrong address.
  3. The phone's network. The phone is on the same network as the PC, and the name resolves there. See below.
  4. A VPN client on the PC that blocks the local network. See VPN clients.

An app opens from your phone but not on this PC

Host loopback is off. Check that .wslconfig still has hostAddressLoopback=true under [experimental]. If you add the setting back, run wsl --shutdown, then start the cluster again. See host loopback.

An app's name does not resolve

Ask your own resolver and a public one, in PowerShell:

Resolve-DnsName photos.basement-nuc.mesopod.app
Resolve-DnsName photos.basement-nuc.mesopod.app -Server 8.8.8.8

If the public resolver answers with the PC's address and your resolver does not, your router's DNS rebind protection drops the private answer. The correction, by router, is in install.md.

An app is slow, or does not start, on a Windows drive

If the app keeps its library or its database in a directory under /mnt/, that directory is on a Windows drive. Windows drives describes the limits. Move the data onto a volume that Mesopod provisions. Such a volume lives on the distro's own disk. snapshots.md covers how to copy data out and restore it into another app instance.

The install line fails with HTTP 410 when you run it again

The command still carries a claim that was already used. Run the command without the claim, as Run the installer again describes. That command clears the spent claim from the window. If that run prints restarting WSL..., start the cluster again when the run finishes.

Remove Mesopod

Caution: Back up first, while your apps still exist. Removal of the cluster in the console removes every app on the cluster and deletes every volume that Mesopod provisioned there.

snapshots.md works inside the distro.

  1. Remove the cluster in the console. Wait until the cluster leaves the Clusters list. Until then, its row shows the progress of the removal: removing apps, …, then deleting volumes, …, then decommissioning outpost. That work runs on this PC, so the outpost must stay up until the work is done. If the cluster goes offline, start it again. The removal then continues.

    If the removal stops for good instead, do not wait for it. The row then shows decommission failed, outpost went quiet after acknowledging decommission, or a message that the outpost never connected. Click Force remove on the row. The button appears after the outpost disconnects, or when the removal is 10 minutes old. Mesopod then forgets the cluster. Whatever the removal leaves on the PC goes in the next step. 2. Then, in a new PowerShell window, run:

    & "$env:LOCALAPPDATA\Mesopod\install.ps1" -Uninstall

    The command removes the startup task, the firewall rule, the mesopod distro, and the installer's own files under %LOCALAPPDATA%\Mesopod. Removal of the distro deletes its disk and everything still on it. Directories on Windows drives, and a second drive that you attached, are not touched. .wslconfig stays as it is, because its settings apply to every distro, and you can keep them.

    The installer never removes a distro named mesopod that it did not create. In that case the installer stops with distro 'mesopod' was not created by this installer; left in place. Startup task and firewall rule removed. It stops before it deletes %LOCALAPPDATA%\Mesopod, so in that case the installer's own files stay on the PC.

If you ran -Uninstall before the removal finished, the cluster stays at removing in the console. Nothing is left on the PC to finish the removal. Click Force remove in the same way.

Next