Exporting
In PowerShell:
wsl --export Ubuntu Ubuntu-01.tar
where Ubuntu
is the distro name.
Importing
wsl --import UbuntuA C:\Users\dmitriano\wsl\UbuntuA Ubuntu-24.01.tar
probably the folder C:\Users\dmitriano\wsl\UbuntuA
should exist.
The following files are created:
ext4.vhdx
shortcut.ico
Listing
wsl --list
Windows Subsystem for Linux Distributions:
Ubuntu (Default)
UbuntuA
Ubuntu-22.04
Running
wsl -d UbuntuA