When using VMs it's usually easy to just install a base distro and then "fork" that same distro into several branches, (e.g. "base 'DistroName 123 LTS' vm", "WebDevStack vm based on base", "Wild experiment 1 based on WebDevStack", "Wild experiment 2 ... etc.).
How is that accomplished with wsl? The Windows Store does not give a possibility to install a new copy of a distro if you've already installed it, just gives the opportunity to start the distro.
Note:
I did find a 3rd party tool, LxRunOffline, claiming to do this, but I would prefer there was some 1st party documentation and tools to accomplish this. (Found through this SO question which also presents another method citing WSL-DistroLauncher)
โ Do not edit this section. It is required for docs.microsoft.com โ GitHub issue linking.
This is now possible using wsl --import and wsl --export!
You can find my personal instructions on setting this up here: https://craigloewen-msft.github.io/WSLTipsAndTricks/tip/duplicate-distro.html
@craigloewen-msft ๐
Yeah,- thanks,- import/export has really been an excellent addition to wsl. Here is a lot of ๐ ๐ ๐ and a ๐ฅ to you devs from me.
Most helpful comment
@craigloewen-msft ๐
Yeah,- thanks,- import/export has really been an excellent addition to wsl. Here is a lot of ๐ ๐ ๐ and a ๐ฅ to you devs from me.