Based on the information linked below, I set up to use WSL2 on Windows 10 and installed Ubuntu to create an environment where I can type Linux commands. [WSL2 Installation Guide for Win10] (https://docs.microsoft.com/en-us/windows/wsl/install-win10)
Unlike WSL1, WSL2 seems to have an architecture that runs the Linux kernel, and I thought it could be used as an environment for studying Linux on Windows. See the link below for the differences between WLS1 and WSL2. Differences between WSL1 and WSL2
Edition | version | OS build | Processor |
---|---|---|---|
Windows 10 Pro | 2004 | 19041.508 | x64 (AMD Ryzen7 3700X) |
>wsl --set-default-version 2
I got the following error in my environment.
>wsl --set-default-version 2
error: 0x1bc
For the main differences from WSL 2, https://aka.ms/See wsl2
After updating the WSL2 kernel based on the information linked below, when I execute the command again, the error disappears. Kernel update
$ cal
September 2020
Su Mo Tu We Th Fr Sa
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
Now you have an environment where you can type Linux commands on Windows 10. I thought that it would be easier to create a Linux environment than creating an environment by preparing a virtual environment (Virtual BOX or Hyper-V) and installing Linux from scratch. In the future, I would like to introduce Docker in this environment and prepare the program development environment.
Windows Subsystem for Linux Documentation
Recommended Posts