Skip to content

Arch wsl


See See



  • Run Command Prompt (hit then enter "cmd") as an administrator, then execute the following commands:

    # dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
    # dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  • Download the latest Linux kernel update package and install it

  • Now restart Windows.

  • Set WSL 2 as the default WSL version (after running Command Prompt as an administrator):

    # wsl --set-default-version 2
  • Then follow the ArchWSL documentation, i.e.:

    • Download the file in the assests of the lastest release
    • Extract the into a "Arch" directory: that directory must be located somewhere you have write permissions (whitout being asked for administrator privileges), e.g. not C:\Program Files\Arch but rather C:\Users\YourUserName\Arch.
    • Inside C:\Users\YourUserName\Arch, run Arch.exe .


  • After running Arch.exe for the first time, run the following commands:

    # passwd # set a root password
    # echo "%wheel ALL=(ALL) ALL" > /etc/sudoers.d/wheel # allow all Arch users to run commands as root
    # useradd -m -G wheel -s /bin/bash your-user-name # create your user
    # passwd your-user-name # set your user password
    # exit
  • Run ArchWSL with your newly created user by default (after running Command Prompt as an administrator):

    # Arch.exe config --default-user your-user-name