Now your computer is ready to accept the latest Ubuntu version to be installed. ![]() ![]() After restarting your system, open your Powershell as admin (click run as administrator) and run this command to set it as default - wsl -set-default-version 2 To enable wsl 2 as default, run this command on your windows PowerShell or command line - Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestartĪnd restart your system to make sure it is up and running correctly. As we might want to use more Linux native support apps to take full advantage of Linux environments without having to wait for updates from the WSL team, we will use wsl2 here. As a result, wls1 is optimized for accessing windows file from Linux faster, while with wsl 2 support faster performance on native Linux apps. On the other hand, wsl 2 has an upgrade on Linux own kernel for full system calls functionalities. Since Linux binary use system call for file system management, the wsl1 uses translation layers built by the WSL team to manage file systems on both Linux and Windows files but slower or potentially incompatible with some crucial Linux native apps unless there support updates are released by wsl team. ![]() What is the difference between wsl1 and wsl2 and which one should we use? According to Microsoft documentation wsl1 was, obviously, the first wsl released and wsl 2 has an update after wsl 1 in the system call compatibility.
0 Comments
Leave a Reply. |