Clone WSL distribution

From Luniwiki
Jump to: navigation, search

Export distro

wsl --export <distribution name> <export file name>

Example:

wsl --export Ubuntu ubuntu.tar

Import clone distro

wsl --import <new distribution name> <install location> <export file name>

Example

wsl --import UbuntuDev1 C:\Users\username\AppData\Local\Packages\CanonicalUbuntuDev1 ubuntu.tar

References

Daniel Simao 22:13, 11 April 2023 (EDT)