Skip to content

install wsl

github-actions[bot] edited this page Sep 22, 2023 · 2 revisions

Install Windows Subsystem for Linux (WSL)

Before installing WSL1 or WSL2 on you Windows 10 or Windows 11 machine, make sure virtualization is enabled:

  1. Open Task manager (press Ctrl+Alt+Del), choose Performance and check if virtualization is enabled. If not, perform the following two steps.
  2. Find Turn Windows Features on or off in Windows settings and turn on Hyper-V features.
  3. Enable virtualization via BIOS.

To install WSL2 on you Windows 10 or Windows 11 machine:

  1. Create an empty WSL2 container with Ubuntu 18.04:
wsl --install -d Ubuntu-18.04
  1. Perform the initial setup for WSL2 user (in this example, we use "utbot"):
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: utbot
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
  1. Check if installation is successful: the new WSL2 container is called Ubuntu-18.04 by default:
  C:\Users\user> wsl --list --verbose
  NAME                   STATE           VERSION
  Ubuntu-18.04           Running         2      <---------- Newly installed WSL2 container   
Clone this wiki locally