-
Notifications
You must be signed in to change notification settings - Fork 27
install wsl
Olga Naumenko edited this page May 17, 2023
·
2 revisions
Before installing WSL1 or WSL2 on you Windows 10 or Windows 11 machine, make sure virtualization is enabled:
- Open Task manager (press Ctrl+Alt+Del), choose Performance and check if virtualization is enabled. If not, perform the following two steps.
- Find Turn Windows Features on or off in Windows settings and turn on Hyper-V features.
- Enable virtualization via BIOS.
To install WSL2 on you Windows 10 or Windows 11 machine:
- Create an empty WSL2 container with Ubuntu 18.04:
wsl --install -d Ubuntu-18.04
- 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.
- 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