Home Featured How to install Windows Subsystem for Linux 2 on Windows 10

How to install Windows Subsystem for Linux 2 on Windows 10

by Total Drivers

On Windows 10 2004, Microsoft is introducing Windows Subsystem for Linux version 2 (WSL 2), which is a new version of the architecture that allows running Linux on Windows 10 natively (using lightweight virtual machines) and eventually replace WSL 1.

In the new version, this running Linux kernel will actually improve performance and application compatibility compared to the previous version, while maintaining the same experience as the first version.

In this tutorial, will guide you through the steps to install Windows Subsystem for Linux on Windows 10.

Install Windows Subsystem for Linux (WSL) with a single command

In the latest Windows Insider Preview builds, you can install everything you need to run WSL with a single command:

wsl.exe --install

Today, July 30, 2021, Microsoft announced that this functionality is now officially supported for Windows 10 version 2004 and later.

Microsoft says the previous WSL setup process was too complicated, involving enabling multiple settings and installing too many packages. The company has simplified the process down to just one order. Windows 10 users can now simply open a Command Prompt window with admin rights and run the command:

wsl.exe --install

After you press  Enter, the process automatically activates the necessary WSL optional features, installs the Ubuntu distribution by default, and installs the latest version of the WSL Linux kernel on the computer. Once the process is complete and you reboot your machine, the distro will start running, completing the installation.

Cài đặt Windows Subsystem for Linux (WSL) bằng một lệnh duy nhất

Install Windows Subsystem for Linux (WSL) with a single command

Alternatively, you can find the list of Linux distributions available for installation by entering the following command in  PowerShell or  Windows Command Prompt:

wsl --list --online

To install a distro that is not Ubuntu’s default option, use the following command:

wsl --install -d <DistroName>v

Replace  <DistroName>  with the name of the Linux distribution found in the previous  list  command. This install command can be used to install for the first time or to add additional distributions after you have installed WSL to the default Ubuntu distribution.

Additional Commands

Microsoft also includes some additional commands to help you manage your WSL instances.

You can use  wsl –update to update the WSL Linux kernel manually and  wsl –update rollback to restore to a previous WSL Linux kernel version.

Finally, you can use  wsl –status  to view general information about your WSL configuration, such as default distribution type, default distribution, and kernel version.

You can get this backport just by updating Windows as usual. To do this manually, open Windows Settings, go to Updates and Security and press Check for Updates.

This update is part of version  KB5004296. At the time of writing, when you click  “Check for Updates”, you may see an optional update available. Make sure the update has the number KB5004296, install it and you will have access to wsl –update.

How to install WSL2 on Windows 10 version 2004

Windows Subsystem for Linux 2 is built into Windows 10, but you need to follow a few steps to start using it, including enabling WSL1, Virtual Machine Platform, converting existing releases, and setting WSL2 as an option new defaults for future Linux installations.

Activate Windows Subsystem for Linux 1

If you are not using Linux on Windows 10, you must activate Windows Subsystem for Linux version 1 with the following steps:

1. Open  Start.

2. Search for  Turn Windows features on or off and click on the top result to open the experience.

3. Check the option  Windows Subsystem for Linux.

Tích vào tùy chọn Windows Subsystem for Linux
Tick the option Windows Subsystem for Linux

4. Click the  OK button.

5. Click the  Restart button.

Once you complete the steps, you need to enable the Virtual Machine Platform feature. According to Microsoft, this is an optional step, but without enabling virtualization, you cannot use the new architecture.

Enable Virtual Machine Platform

To enable Virtual Machine Platform on Windows 10, follow these steps:

Important Note: The motherboard and processor must support virtualization, and the option must be enabled on  BIOS/UEFI.

1. Open  Start.

2. Search for  PowerShell, right click on the top result and select the option  Run as administrator.

3. Type the following command to enable the Virtual Machine Platform feature and press  Enter:

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
Bật tính năng Virtual Machine Platform
Enable Virtual Machine Platform feature

4. Restart the computer.

After completing the steps, you can set up Windows Subsystem for Linux version 2 to the new default architecture and switch existing distros.

Activate Windows Subsystem for Linux 2

To start using WSL 2 or convert WSL 1 distributions to WSL 2, follow these steps:

1. Download this WSL 2 kernel update (required).

2. Double-click file wsl_update_x64.msi and apply the update.

3. Open  Start.

4. Open PowerShell with admin rights.

5. Type the following command to make Windows Subsystem for Linux 2 the default architecture for new releases you install and press  Enter:

wsl --set-default-version 2
Biến Windows Subsystem for Linux 2 thành kiến ​​trúc mặc định
Make Windows Subsystem for Linux 2 the default architecture

6. Type the following command to convert the distribution from WSL 1 to WSL 2 and press  Enter:

wsl --set-version Ubuntu 2
Chuyển đổi bản phân phối từ WSL 1 sang WSL 2
Convert distribution from WSL 1 to WSL 2

7. In the command, make sure to change Ubuntu to the name of the distribution you want to convert. If you don’t know the name, you can use the command wsl -l -v.

Once the steps are completed, your device will start using the new version of Windows Subsystem for Linux as the default architecture.

Verify the distribution platform

To confirm that your distributions are using Windows Subsystem for Linux 2, follow these steps:

1. Open  Start.

2. Open PowerShell with admin rights.

3. Type the following command to verify the version of the distribution and press  Enter:

wsl --list --verbose

4. Confirm the version of the distribution is set to  2 .

Xác minh nền tảng bản phân phối
Verify the distribution platform

After completing the steps, you will know if the progress was made successfully or if any steps need to be remedied.

 

You may also like

139 comments

prostitutk_ywMl November 12, 2023 - 7:37 pm

Наслаждайся – проститутки Москвы для твоего отдыха
услуги проституток [url=https://www.prostitutki-i-individualki-moskvy.top]https://www.prostitutki-i-individualki-moskvy.top[/url].

Reply
smartfon_tkSn November 12, 2023 - 6:13 am

Смартфон на две SIM-карты в ДНР: удобство и экономия
смартфон купить [url=https://www.kupit-smartfon-v-dnr.ru/]https://www.kupit-smartfon-v-dnr.ru/[/url].

Reply
yahty_bhSN November 9, 2023 - 7:36 pm

Аренда яхты – ваш путь к исключительному морскому приключению
аренда яхты [url=https://www.arenda-yaht-v-sochi01.ru]https://www.arenda-yaht-v-sochi01.ru[/url].

Reply
tualetnaya_vepi November 9, 2023 - 2:55 am

Запах свежести для вас с туалетной водой
купить парфюмерную воду [url=http://duhifragonard.ru/]http://duhifragonard.ru/[/url].

Reply
paneli_suSi November 8, 2023 - 10:43 am

Преобразите пространство в доме: Мягкие стеновые панели
мягкие стеновые панели с металлическими вставками [url=https://www.soft-wall-panels2.ru]https://www.soft-wall-panels2.ru[/url].

Reply
pechat_voEn November 7, 2023 - 9:33 am

Печать на футболках по индивидуальному заказу
нанесение логотипов на футболки москва [url=https://pechat-na-futbolkah-77.ru]https://pechat-na-futbolkah-77.ru[/url].

Reply
dokumentooborot_nnMt November 7, 2023 - 7:24 am

Быстрый поиск документов с инновационным электронным документооборотом
электронный документ системы электронного документооборота [url=ehlektronnyj-dokumentooborot.ru]ehlektronnyj-dokumentooborot.ru[/url].

Reply
loans_mlOl November 5, 2023 - 3:56 pm

Business Loans Unsecured: Your Bridge to Financial Freedom
unsecured business loans [url=fundkite12.com]fundkite12.com[/url].

Reply
casino_fqMt November 4, 2023 - 6:05 pm

Glory Casino – Be a Winner Play Now
glory casino bd [url=http://www.glorycasinogambling.com]http://www.glorycasinogambling.com[/url].

Reply
Buhgalterskie_qesr November 3, 2023 - 10:52 pm

Профессиональные бухгалтерские услуги для предприятий всех размеров
Бухгалтерия [url=http://www.buhcompany.site]http://www.buhcompany.site[/url].

Reply
casino_ncpt November 3, 2023 - 9:57 pm

Try Your Luck at Glory Casino – Where Big Wins Await You
glory casino online [url=https://glorycasinos.org/]https://glorycasinos.org/[/url].

Reply
casino_leea November 3, 2023 - 3:26 pm

Banger Casino: Welcome to the Fun-Filled World of Online Gambling
banger casino bonus [url=http://www.casinosbanger.com/]http://www.casinosbanger.com/[/url].

Reply
narkomaniy_arOr November 2, 2023 - 11:41 pm

Профессиональное лечение от наркомании в Алматы – первый шаг к здоровой жизни
лечение наркомана [url=lechenienarkomanii.kz]lechenienarkomanii.kz[/url].

Reply
casino_izPl November 2, 2023 - 10:08 am

Glory Casino: Spin, Win, and Relish the Glory
glory casino bd [url=glorycasinopoker.com]glorycasinopoker.com[/url].

Reply
casino_trMr November 2, 2023 - 4:59 am

Win Real Prizes with Glory Cash Casino
glorycash casino online [url=glorycashcasinos.com]glorycashcasinos.com[/url].

Reply
tualetnaya_uamn November 1, 2023 - 12:47 pm

Единственная настоящая туалетная вода
духи цена [url=parfumpin.ru]parfumpin.ru[/url].

Reply
tualetnaya_dpsl November 1, 2023 - 3:48 am

Почувствуйте себя уверенно с нашей туалетной водой
духи купить [url=https://parfumtel.ru/]https://parfumtel.ru/[/url].

Reply
uborka_paSr October 28, 2023 - 2:48 pm

Срочная уборка помещения после пожара
уборка квартир после пожара цены [url=https://www.uborka-posle-pojara.ru]https://www.uborka-posle-pojara.ru[/url].

Reply
prodvizhen_zhMi October 28, 2023 - 8:36 am

Продвижение сайтов: ключ к успеху вашего бизнеса
заказать продвижение сайта [url=http://www.seodesignbyanton.ru]http://www.seodesignbyanton.ru[/url].

Reply
1 5 6 7

Leave a Comment