Check the checkbox near the feature called “ Virtual Machine Platform“.Īfter restarting, open Powershell as Administrator and run the following command.To enable WSL 2 as the global default, we must enable one more additional feature in Windows Features. To set the version to WSL 2: wsl -set-version Įxample: wsl -set-version Ubuntu-20.04 2 For Global WSL for Windows If you don’t have any yet, follow the next section. To list out installed Linux distributions. Install the setup as same as you do for other apps. Run the following commands in Powershell Window.Īs the first step, Download WSL2 Kernel Update from Given Link. Now, Open Powershell as Administrator by following the method mentioned above. We can upgrade the version of a specific WSL Distro or the whole Distro at once. To switch your version of WSL to WSL 2, you have to tweak Windows with some Powershell commands. Related: 10 Best Lightweight Linux Distros to Revive Old Computer (2019) Upgrade to WSL 2 Now let’s see how to install your favorite Linux Distribution in Windows with WSL. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-LinuxĪfter completing the new feature update, your PC will be ready to run Linux on Windows. When prompted, run the following command in PowerShell (Admin) and restart the computer. Or you can use Powershell to enable the feature. Once the changes are applied, save your work and click on “ Restart.”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |