I need two instants of wsl.
- wsl1 for cross-platform file system
- wsl2 for new features.
Create two instants of wsl.
>Solution :
According to M.Warren’s answer
The newer wsl command’s import/export feature can readily create copies of a distro without installing any additional tools or using RegEdit. For example
cd C:\Users\MattSlay
wsl --export Ubuntu ubuntu.tar
wsl --import UbuntuRuby .\UbuntuRuby ubuntu.tar
wsl --import UbuntuPython .\UbuntuPython ubuntu.tar
wsl --import UbuntuDotNet .\UbuntuDotNet ubuntu.tar
wsl -d UbuntuRuby
wsl -d launches the distro. If WSL 2 has been installed, then the distro can be converted between versions during –import using the –version option:
wsl --import UbuntuRuby .\UbuntuRuby ubuntu.tar --version 2
Or you can just use this gui tool instead