By
Vineel Sai
![]()
WSL is a feature in Windows 10 and later versions that allows users to run Linux programs natively on Windows, without the need for a virtual machine or a dual-boot setup. With WSL, users can install a Linux distribution of their choice, and access the Linux command-line interface directly from the Windows terminal. This allows for easier integration between the two operating systems, making it possible to develop and test Linux applications on a Windows machine. WSL has become increasingly popular among developers, as it provides a convenient and efficient way to use both Windows and Linux tools and workflows simultaneously.
wsl --import <Distro> <InstallLocation> <FileName>
Here <Distro> is the name of the distro you want to import it can be anything you want, <InstallLocation> is the path where ext4.vhdx which contains your linux file system, <FileName> is the tar export of distro you want to use as WSL.
Then you can simply import the tar file to get your own Arch WSL
wsl --import Arch $HOME\Arch\ rootfs.tar
# Here is a example with Arch Linux docker create --name arch arch:latest docker export -o rootfs.tar arch docker rm -f arch
wsl --export Arch $HOME\Downloads\rootfs.tar
wsl --unregister Arch