install wsl2 windows 10 pro
wsl --install
Source: pureinfotech.com
switch installed linx to wsl2
wsl.exe --set-version Ubuntu 2
how to WSL2
Enable Windows Subsystem for linux: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart Enable Virtual Machine Platform: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart Download WSL2 kernel: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi Set default WSL verison: wsl --set-default-version 2
WSL 2 installation
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Source: ubuntu.com
WSL2 .wslconfig Windows
# turn off all wsl instances such as docker-desktop wsl --shutdown notepad "$env:USERPROFILE/.wslconfig" # .wslconfig [wsl2] memory=3GB # Limits VM memory in WSL 2 up to 3GB processors=4 # Makes the WSL 2 VM use two virtual processors
Source: itnext.io