This document guides on how to setup WSL2 on the latest versions of Windows 10, so that you can setup Ubuntu Command-Line environment.
System Requirements
The following hardware prerequisites are required to successfully setup WSL2.
- A 64-bit processor with Second Level Address Translation (SLAT) support.
- Look for Intel VT-x support or AMD-V support. Any of Intel or AMD Processors released after 2010 will have this.
- 4 GB system RAM.
- BIOS-level hardware virtualization support must be enabled in the BIOS settings.
- A 64-bit Windows 10, Version 1903 or higher, with Build 18363.1049 or higher.
- A 15 GB free space on C: Drive after the installation of all the recent Windows Updates.
To check your version and build number, select Windows logo key + R, type
If you are running an older version of Windows 10, open "Settings" from your Windows menu, navigate to "Update & Security" and select "Check for Updates". Install all available updates and feature updates. You may need to restart multiple times in the process.
Setup WSL
Enable WSL Feature
Open PowerShell as Administrator and run:
Enable Virtual Machine Feature
Enable the Virtual Machine Platform feature. Your system will require BIOS-level hardware virtualization support which must be enabled in the BIOS settings.
- You can check whether virtualization support is enabled by checking your Task Manager.
- Open PowerShell as Administrator and run:
- Restart your PC.
Download Kernel Package
- Download the latest WSL2 Linux kernel update package for x64 PCs
- Run the update package downloaded in the previous step. (Double-click to run - you will be prompted for elevated permissions, select ‘yes’ to approve this installation.)
Set WSL 2 as your default version
Open PowerShell and run this command to set WSL 2 as the default version.
Install Linux Distribution
- Install Ubuntu from Microsoft Store.
- Once the installation is complete, open "Ubuntu" from start-menu.
- Enter a new username and password for the WSL environment when prompted. (Remember them)