WSL Windows subsystem for linux

install

manual

wsl --install Ubuntu-24.04 --name Number2

backup and restore

xda developers

commands from link:

# backup
wsl -l
wsl --export (distribution) (file path)

# remove
wsl -v
#-> uninstall dist form startmenu
wsl --unregister <distribution>

# restore
wsl --import (distribution) (install location) (file path)
wsl --distribution (distribution)

move / clone distribution

not tested !!!

wsl --export Debian C:\temp\Debian.tar
wsl --import MovedDebian C:\WSL\Debian C:\temp\Debian.tar --version 2
wsl --distribution MovedDebian

settings

Mirrored Mode WSL2 Networking

from superuser.com

Note: Requires Windows 11 23H2 or later

In Mirrored mode, localhost should "just work". To enable:

You should then be able to access services running in Windows via localhost.

Note that when running in Mirrored mode, mDNS will not work.

hosts configs:

edit C:\Windows\System32\drivers\etc\hosts in admin mode add:

127.0.0.1	shop.local

non mirrored wsl2 mode

TODO


Created 2025-02-06 15:43:28 UTC by Daniel Raab
Updated 2025-03-31 14:46:04 UTC by Daniel Raab