{"id":18377,"date":"2022-01-11T18:47:04","date_gmt":"2022-01-11T17:47:04","guid":{"rendered":"https:\/\/ekiwi-blog.de\/?p=18377"},"modified":"2022-01-11T21:42:45","modified_gmt":"2022-01-11T20:42:45","slug":"install-linux-subsystem-in-windows-11-wsl2","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/18377\/install-linux-subsystem-in-windows-11-wsl2\/","title":{"rendered":"Install Linux subsystem in Windows 11 (WSL2)"},"content":{"rendered":"<p>How to install the Linux Subsystem in Windows 11.<\/p>\n<p><!--more--><\/p>\n<p>Microsoft allows using Linux in Windows, for example you can use Ubuntu, Debian, Suse and other Linux distributions directly in Windows. This is possible since Windows 10. The process has changed slightly in Windows 11.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi-blog.de\/en\/18377\/install-linux-subsystem-in-windows-11-wsl2\/#Video_tutorial\" >Video tutorial<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi-blog.de\/en\/18377\/install-linux-subsystem-in-windows-11-wsl2\/#Install_Linux_from_the_Microsoft_store\" >Install Linux from the Microsoft store<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi-blog.de\/en\/18377\/install-linux-subsystem-in-windows-11-wsl2\/#Install_optional_components_for_the_Linux_subsystem\" >Install optional components for the Linux subsystem<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Video_tutorial\"><\/span>Video tutorial<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/zenX7QT7Poc\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Install_Linux_from_the_Microsoft_store\"><\/span>Install Linux from the Microsoft store<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The first step is to install the Linux distribution of your choice from the Microsoft store. If you can not use the store, for example in a company environment, you can use the <a href=\"https:\/\/ekiwi-blog.de\/en\/17814\/windows-11-install-linux-subsystem-without-microsoft-store\/\" target=\"_blank\" rel=\"noopener\">manual installation method<\/a>.<\/p>\n<p><a href=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_1.png\" alt=\"\" width=\"1076\" height=\"328\" class=\"aligncenter size-full wp-image-18378\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_1.png 1076w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_1-300x91.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_1-1024x312.png 1024w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_1-768x234.png 768w\" sizes=\"auto, (max-width: 1076px) 100vw, 1076px\" \/><\/a><\/p>\n<p>In most cases, the installation will fail with an error message.<\/p>\n<p><a href=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_2.png\" alt=\"\" width=\"1109\" height=\"296\" class=\"aligncenter size-full wp-image-18380\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_2.png 1109w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_2-300x80.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_2-1024x273.png 1024w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_2-768x205.png 768w\" sizes=\"auto, (max-width: 1109px) 100vw, 1109px\" \/><\/a><\/p>\n<pre>\r\nWslRegisterDistribution failed with error: 0x8007019e\r\nThe Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.\r\nSee https:\/\/aka.ms\/wslinstall for details.\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Install_optional_components_for_the_Linux_subsystem\"><\/span>Install optional components for the Linux subsystem<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In the settings app, go to apps and optional features. Scroll down until you find &#8220;More Windows features&#8221;.<\/p>\n<p><a href=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_3.png\" alt=\"\" width=\"600\" height=\"469\" class=\"aligncenter size-full wp-image-18382\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_3.png 600w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_3-300x235.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_3-80x64.png 80w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Thie will open a window where we have to select &#8220;Windows Subsystem for Linux&#8221;. You have to also install Hyper-V, otherwise we will get another error messag. We will get to that.<\/p>\n<p><a href=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_4.png\" alt=\"\" width=\"415\" height=\"368\" class=\"aligncenter size-full wp-image-18384\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_4.png 415w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_4-300x266.png 300w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><\/a><\/p>\n<p>A restart is required, after that we can start Linux again from the start menu. We will now get another error message.<\/p>\n<p><a href=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_5.png\" alt=\"\" width=\"995\" height=\"176\" class=\"aligncenter size-full wp-image-18386\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_5.png 995w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_5-300x53.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_5-768x136.png 768w\" sizes=\"auto, (max-width: 995px) 100vw, 995px\" \/><\/a><\/p>\n<pre>\r\nWslRegisterDistribution failed with error: 0x800701bc\r\nError: 0x800701bc WSL 2 requires an update to its kernel component. For information please visit \r\n<\/pre>\n<p>We have to <a href=\"https:\/\/aka.ms\/wsl2kernel\" target=\"_blank\" rel=\"noopener\">download another optional component<\/a>. Just download the installer and install it.<\/p>\n<p><a href=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_6.png\" alt=\"\" width=\"643\" height=\"571\" class=\"aligncenter size-full wp-image-18388\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_6.png 643w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_6-300x266.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><\/p>\n<p>Once we have installed the package, we can try again and start Linux. If we have installed Hyper-V this should work, otherwise we get the following error message.<\/p>\n<p><a href=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_7.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_7.png\" alt=\"\" width=\"1004\" height=\"131\" class=\"aligncenter size-full wp-image-18390\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_7.png 1004w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_7-300x39.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_7-768x100.png 768w\" sizes=\"auto, (max-width: 1004px) 100vw, 1004px\" \/><\/a><\/p>\n<pre>\r\nWslRegisterDistribution failed with error: 0x80370102\r\nError: 0x80370102 The virtual machine could not be started because a required feature is not installed.\r\n<\/pre>\n<p>In that case we have to install &#8220;Hyper-V Platform&#8221; in the optional features window.<\/p>\n<p><a href=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_8.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_8.png\" alt=\"\" width=\"415\" height=\"368\" class=\"aligncenter size-full wp-image-18392\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_8.png 415w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_8-300x266.png 300w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><\/a><\/p>\n<p>Another restart is required. After that the Linux system should run and we are now able to configure username and password.<\/p>\n<p><a href=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_9.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_9.png\" alt=\"\" width=\"894\" height=\"157\" class=\"aligncenter size-full wp-image-18394\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_9.png 894w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_9-300x53.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2022\/01\/wsl_en_9-768x135.png 768w\" sizes=\"auto, (max-width: 894px) 100vw, 894px\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>How to install the Linux Subsystem in Windows 11.<\/p>\n","protected":false},"author":1,"featured_media":14881,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[1682,1559,1558],"class_list":["post-18377","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-linux-en","tag-tutorial-en","tag-windows-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/18377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=18377"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/18377\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/14881"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=18377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=18377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=18377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}