{"id":1622,"date":"2026-01-02T20:12:01","date_gmt":"2026-01-02T20:12:01","guid":{"rendered":"https:\/\/b2bhostingclub.com\/blog\/?p=1622"},"modified":"2026-02-04T14:14:36","modified_gmt":"2026-02-04T14:14:36","slug":"how-to-install-windows-subsystem-for-linux-wsl-on-windows-10","status":"publish","type":"post","link":"https:\/\/b2bhostingclub.com\/blog\/how-to-install-windows-subsystem-for-linux-wsl-on-windows-10\/","title":{"rendered":"How to Install Windows Subsystem for Linux (WSL) on Windows 10"},"content":{"rendered":"<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-left d-text-left d-title-inner\">\n<h2 id=\"what-is-wsl\" class=\"col col-md-10 d-h2 d-color-black core-title\">What is WSL?<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">WSL stands for Windows Subsystem for Linux. It is a compatibility layer developed by Microsoft that allows running a full-featured Linux environment directly on Windows operating systems. WSL enables users to execute Linux binaries and run Linux command-line tools and applications natively on Windows without the need for a separate virtual machine or dual-boot setup.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">There are currently two versions of WSL available:<\/p>\n<p><b>WSL 1:<\/b>\u00a0The initial version of WSL provides a compatibility layer to run native Linux binaries on Windows. It translates Linux system calls into Windows equivalents, allowing Linux command-line tools to run seamlessly. However, it does not provide a Linux kernel and has some limitations in terms of performance and compatibility with certain Linux applications.<br \/>\n<b>WSL 2:<\/b>\u00a0The newer version of WSL, WSL 2, introduced significant improvements. It includes a lightweight virtual machine that runs a full Linux kernel. This architecture provides improved compatibility, performance, and support for running various Linux distributions. WSL 2 also enables features like full system call compatibility, improved file system performance, and the ability to run Docker containers natively.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">With WSL, users can choose from a variety of Linux distributions available from the Microsoft Store, such as Ubuntu, Debian, Fedora, and more. Once installed, WSL integrates with the Windows command prompt, PowerShell, or other compatible terminals, allowing users to seamlessly switch between Windows and Linux environments.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">WSL has gained popularity among developers, system administrators, and enthusiasts, as it provides a convenient way to leverage Linux tools and workflows directly within the Windows ecosystem. It enables developers to have a consistent development environment across different platforms and facilitates tasks such as web development, scripting, system administration, and cloud operations.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-title pt-10 pb-0\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-left d-text-left d-title-inner\">\n<h2 id=\"steps-to-install-wsl2-on-windows-10\" class=\"col col-md-10 d-h2 d-color-black core-title\">Steps to Install WSL2 on Windows 10<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"windows\" class=\"d-paragraph-card pt-10 pb-0\" align=\"left\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<div class=\"col col-md-12 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">Prerequisites<\/div>\n<div class=\"col col-md-12 d-color-black d-fs-normal d-fw-500 d-fs-normal\">In this guide, we will install the latest version of WSL, namely WSL2. To proceed, make sure you are running Windows 10<br \/>\n(<b>For x64 systems:<\/b>\u00a0Version 1903 or later, with Build 18362.1049 or later.\u00a0<b>For ARM64 systems:<\/b>\u00a0Version 2004 or later, with Build 19041 or later.)<\/div>\n<div class=\"col\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">1. Enable WSL on your Device<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">By default, the WSL feature is disabled. So the first step, we will enable the feature. Open Windows PowerShell and run it as Administrator<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/3e0626e6c49046048d8f06ab0539b82d\/powershell.png\" alt=\"Open PowerShell\" \/><\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Then, issue the following command the enable the WSL feature.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<pre class=\"d-fs-normal d-lineheight-26 mb-0\">dism.exe \/online \/enable-feature \/featurename:Microsoft-Windows-Subsystem-Linux \/all \/norestart<\/pre>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/cea76c12b16646de86b576a38ac31ff8\/enable-wsl-feature.png\" alt=\"Enable WSL in PowerShell\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">2. Enable the Virtual Machine Platform optional feature<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">To enable the Windows Virtual Machine Platform, please issue the following command.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<pre class=\"d-fs-normal d-lineheight-26 mb-0\">dism.exe \/online \/enable-feature \/featurename:VirtualMachinePlatform \/all \/norestart<\/pre>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/508d9f0fb30e4021bc86b7d358860961\/enable-vmp-feature.png\" alt=\"Enable Virtual Machine Platform in PowerShell\" \/><\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\"><b>Important:<\/b>\u00a0After the above operations, you need to restart your PC so the enabled features can apply.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">3. Download and install the Linux kernel update package<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">After you computer restarts, click the link to download the\u00a0<a class=\"d-color-primary\" href=\"https:\/\/wslstorestorage.blob.core.windows.net\/wslblob\/wsl_update_x64.msi\" target=\"_blank\" rel=\"noopener\">Linux kernel update package<\/a>.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/3242139ed433444bb3313a0731460a04\/linux-kenel-update-downloaded.png\" alt=\"Linux kernel update package is downloaded\" \/><\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Next, open the file to install the package. Click Next to install Windows Subsystem for Linux Update on your computer.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/5eb9f901d5da4f95b881094821fd9737\/wsl-update-setup-1.png\" alt=\"Click Next to install Windows Subsystem for Linux Update on the computer\" \/><\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Once it completes, click Finish.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/b3071ad703e64682acea88f786ec6867\/wsl-update-setup-2.png\" alt=\"Installing Windows Subsystem for Linux Update finishes\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">4. Set WSL2 as default<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Open the PowerShell again the run the following command to set WSL2 as default.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<pre class=\"d-fs-normal d-lineheight-26 mb-0\">wsl --set-default-version 2<\/pre>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/caff6e75453c4a6ea01bed202026b56f\/set-wsl-as-default.png\" alt=\"Set WSL2 as default\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"d-paragraph-card\">\n<div class=\"container\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters pt-4 pb-1\">\n<h3 class=\"col col-md-12 d-h3 d-color-black d-fs-20 d-fw-600 d-lineheight-24 core-title\">5. Installing a Linux Distribution<\/h3>\n<div class=\"col\">\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">There are many Linux-distributions that are supported by WSL 2, such as Ubuntu, OpenSUSE, Kali, Debian, Fedora, and Pengwin. You can find different versions of the Linux distributions in Microsoft store. You can also click the link to open the Microsoft store page for a specific distribution:\u00a0<a class=\"d-color-primary\" href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/wsl\/install-manual#step-6---install-your-linux-distribution-of-choice\" target=\"_blank\" rel=\"noopener\">https:\/\/learn.microsoft.com\/en-us\/windows\/wsl\/install-manual#step-6\u2014install-your-linux-distribution-of-choice<\/a>. Open the Microsoft store and search for a Linux distribution you&#8217;d like to use and click get to install it.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/7c2112cff9ff45a1a489122692608a0d\/microsoft-store.png\" alt=\"Open Microsoft Store\" \/><\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/563958aca2354fcba348aa581008e18f\/download-ubuntu22.04-in-store.png\" alt=\"Click Get to install a Linux distribution\" width=\"800\" \/><\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">Once the distribution is downloaded, open it.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/0b56833d8411429a98fe91a6327f38f4\/Open-ubuntu22.04-in-store.png\" alt=\"Open your Linux distribution\" width=\"800\" \/><\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">You will be prompted to create a user for your Ubuntu instance, and a password for the user.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/8fbc5025765541cca38ac7fd3a9f5b57\/create-an-user-in-ubuntu22.04.png\" alt=\"Create a user\" width=\"800\" \/><\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\">\n<p class=\"mb-0\">After that, you can start using your Ubuntu.<\/p>\n<\/div>\n<\/div>\n<div class=\"row row-cols-1 justify-content-start d-text-start d-title-inner no-gutters\">\n<div class=\"col\"><img decoding=\"async\" class=\"d-img d-lazy-img\" src=\"https:\/\/images.cloudclusters.io\/7f0836623474485c9f1f2412e0f4ba7f\/start-using-ubuntu22.04.png\" alt=\"Start using Ubuntu\" width=\"800\" \/><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>What is WSL? WSL stands for Windows Subsystem for Linux. It is a compatibility layer developed by Microsoft that allows running a full-featured Linux environment directly on Windows operating systems. WSL enables users to execute Linux binaries and run Linux command-line tools and applications natively on Windows without the need for a separate virtual machine [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":1623,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1622","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-hosting"],"_links":{"self":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts\/1622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/comments?post=1622"}],"version-history":[{"count":2,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts\/1622\/revisions"}],"predecessor-version":[{"id":1625,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/posts\/1622\/revisions\/1625"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/media\/1623"}],"wp:attachment":[{"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/media?parent=1622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/categories?post=1622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b2bhostingclub.com\/blog\/wp-json\/wp\/v2\/tags?post=1622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}