How do I install WSL2 on Windows 10?
James Craig
Updated on April 30, 2026
- Open Start on Windows 10.
- Search for Turn Windows features on or off and click the top result to open the experience.
- Check the “Windows Subsystem for Linux†option. Enable WSL on Windows 10.
- Click the OK button.
- Click the Restart button.
In this regard, can you install WSL2 on Windows 10 home?
If you have Windows 10 May 2020 (2004) update (or later) installed you can install WSL with a single command. If you don't have the Windows 10 May 2020 (2004) update you'll need to walk through a couple of additional steps to get things set up. Your computer also needs to support Hyper-V Virtualization to run WSL 2.
Subsequently, question is, how do I configure WSL2? Setting up WSL2
- Open a PowerShell window as an admin, then run.
- Reboot when prompted.
- After the reboot, set WSL to default to WSL2.
- Now, you can install your Linux distro of choice by searching the Windows Store.
- Start up your distro with the shortcut added to the start menu.
People also ask, how do I know if WSL2 is installed?
“check if wsl 2 is installed†Code Answer's
- dism. exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart.
- dism. exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart.
- wsl --set-default-version 2.
How do I enable Ubuntu on Windows 10?
Install Ubuntu for Windows 10
Ubuntu can be installed from the Microsoft Store: Use the Start menu to launch the Microsoft Store application or click here. Search for Ubuntu and select the first result, 'Ubuntu', published by Canonical Group Limited. Click on the Install button.
Related Question Answers
Does WSL2 support GUI?
WSL 2 enables Linux GUI applications to feel native and natural to use on Windows. You can now integrate both Windows and Linux applications into your workflow for a seamless desktop experience.Where is WSL Ubuntu installed?
6 Answers. In earlier iterations of Windows Subsystem for Linux, the Ubuntu file system was at %localappdata%\Lxss (e.g., C:\Users\Username\AppData\Local\Lxss - replace the Username with your Username on Windows). See the WSL blog post on File System Support: The primary file system used by WSL is VolFs.Where is the WSL2 home directory?
Where are WSL files stored? WSL files are exposed through a network share \\wsl$\[distro name], for example my home directory is at \\wsl$\Ubuntu-20.04\home\pawelb. C:\Users\pawelb\AppData\Local\Packages\CanonicalGroupLimited.How do I run Docker on WSL2?
Install- Follow the usual installation instructions to install Docker Desktop.
- Start Docker Desktop from the Windows Start menu.
- From the Docker menu, select Settings > General.
- Select the Use WSL 2 based engine check box.
- Click Apply & Restart.
- Ensure the distribution runs in WSL 2 mode.
How do I enable the virtual machine platform Windows?
To enable VMs, you need to go to Control Panel>Programs>Turn Windows Features on or off. This will open a dialog box and you can scroll down to Virtual Machine and select the checkbox. Once done, click Okay and Windows will download some files and set up Virtual Machine.How do I know if WSL2 is installed Windows 10?
Verify that you are running WSL Version 2- Open Command Prompt from the Windows search bar.
- Run the following command: wsl -l -v.
- If your version states version 1, you might need to take an additional step to update Ubuntu. Enter the following command (replace Ubuntu-20.04 with the actual version you installed):
Is WSL2 better than VirtualBox?
While WSL 2 actually uses the Linux kernel running under Hyper-V, you won't have as much of a performance hit than with a VM because you aren't running most of the other processes that run on a Linux system. WSL also integrates much more fully into Windows than a regular VM in VirtualBox does.Should I use WSL2?
We recommend that you use WSL 2 as it offers faster performance and 100% system call compatibility. However, there are a few specific scenarios where you might prefer using WSL 1. Consider using WSL 1 if: Your project files must be stored in the Windows file system.How does WSL2 work?
The WSL 2 hypervisor is similar to that used by the Windows Sandbox, letting Windows and Linux share the same timers to avoid one OS dominating the other. That allows Linux files to be hosted in a virtual disk with a Linux native ext4 file system using the 9p protocol for interactions between Windows and Linux.How do I change WSL2 to wsl1?
2 Answers- First list your distribution. C:\WINDOWS\system32>wsl --list. Windows Subsystem for Linux Distributions: Ubuntu-18.04 (Default)
- And then set it to version 1. C:\Users\priv>wsl --set-version Ubuntu-18.04 1.
How do I stop WSL?
To terminate a Running WSL Linux Distro in Windows 10,- Open a new command prompt.
- Type the following command: wsl --terminate <DistributionName> . Alternatively, you can use this shorten syntax: wsl -t <DistributionName> .
- The WSL Distro is now terminated.
How do I use WSL on Windows?
To install WSL using Setting on Windows 10, use these steps:- Open Settings.
- Click on Apps.
- Under the "Related settings" section, click the Programs and Features option.
- Click the Turn Windows features on or off option from the left pane.
- Check the Windows Subsystem for Linux option.
- Click the OK button.
What can I do with WSL2?
WSL2 will revolutionize your web development. It makes it easy to write code using Windows tools then run it in a Linux environment. While it was previously possible with virtual machines and Samba folder shares, WSL2 offers a simpler, faster, and highly integrated experience.What is WSL1 and WSL2?
WSL1 enables Linux binaries to run on Windows using a compatibility layer which translates the Linux system calls into windows system calls. The WSL2 hypervisor lets windows and Linux share the same timers without dominating the other. That allows Linux files to be hosted in a virtual disk.How do I install WSL2 on Windows 11?
Install WSL on Windows 11- Open Start on Windows 11.
- Search for Command Prompt, right-click the top result, and select the Run as administrator option.
- Type the following command to install the WSL on Windows 11 and press Enter: wsl --install.
- Restart your computer to finish the WSL installation on Windows 11.
How do I run a Linux command in Windows?
You can install Linux alongside Windows in dual boot mode. This method allows you to choose either Linux or Windows when you start your computer.Using Linux commands inside Windows
- Use Linux Bash Shell on Windows 10.
- Use Git Bash to run Bash commands on Windows.
- Using Linux commands in Windows with Cygwin.
How do I get Ubuntu on Windows Terminal?
Open the start menu and search for “Turn Windows features on or offâ€, then click and open it. Now, Scroll to the bottom end and enable “Windows Subsystems for Linuxâ€. As soon as you click on the ok button, Windows downloads any necessary files and installs Linux subsystem.How do I install Linux virtual machine on Windows 10?
Creating a virtual machine- Open Start.
- Search for Hyper-V Manager and click the top result.
- Click on the Action menu.
- Select New and click on Virtual Machine.
- Click the Next button.
- Enter a descriptive name for your virtual machine (e.g., vm-ubuntu).
Is Ubuntu same as Linux?
Ubuntu is based on the Linux kernel, and it is one of the Linux distributions, a project started by South African Mark Shuttle worth. Ubuntu is the most used type of Linux based operating system in desktop installations. Linux operating system is based on this kernel which Linus Torvalds crafted.How do I install Ubuntu on my PC?
- Step 1: Download Ubuntu. Before you do anything, you have to download Ubuntu.
- Step 2: Create a live USB. Once you have downloaded Ubuntu's ISO file, the next step is to create a live USB of Ubuntu.
- Step 3: Boot from the live USB. Plug in your live Ubuntu USB disk to the system.
- Step 4: Install Ubuntu.
How do I activate Linux on Windows 10?
How to Enable the Linux Bash Shell in Windows 10- Navigate to Settings.
- Click Update & security.
- Navigate to the Control Panel (the old Windows control panel).
- Select Programs and Features.
- Toggle "Windows Subsystem for Linux" to on and click Ok.
- Click the Restart Now button.
How do I change my Windows OS to Linux?
Try Mint out- Download Mint. First, download the Mint ISO file.
- Burn the Mint ISO file to a DVD or USB drive. You're going to need an ISO burner program.
- Set up your PC for an alternative bootup.
- Boot up Linux Mint.
- Give Mint a try.
- Make sure your PC is plugged in.
- Set up a partition for Linux Mint from Windows.
- Boot into Linux.