Dup Goto 📝

InstallingMultipleInstances

PT2/aw/os/windows 07-31 13:46:42
To Pop
13 lines, 65 words, 545 chars Monday 2023-07-31 13:46:42

First install an instance the normal way.

Then grab the image from here -- the file is called ubuntu-jammy-wsl-amd64-wsl.rootfs.tar.gz

Then

wsl --import <Distribution Name> <Installation Folder> <Ubuntu WSL2 Image Tarball path>

e.g.

wsl --import ubuntu2204c C:\Users\mrflibble\wsl\ubuntu2204c ubuntu-jammy-wsl-amd64-wsl.rootfs.tar.gz

This also works fine in cmd or cygwin, though with cygwin you need to ensure the paths are Windows paths (use cygpath -w /nix/path)