Install and Enable WSL (Windows Sub System For Linux) on Windows 2022 Server

Install and Enable WSL on Windows 2022 Server

1) Execute All the below commands in PowerShell as Administrator


dism.exe /online /enable-feature /featurename:Microsoft-Hyper-V /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Hyper-V-Management-Clients /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Hyper-V-Management-PowerShell /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
    

2) Reboot the Server


shutdown /r /t 0
    

3) Once the server reboot is complete, execute the below command


wsl --install -d Ubuntu
    

Note: It will ask to reboot the server


shutdown /r /t 0
    

4) After reboot, It will throw error, then execute the below command


wsl --update
wsl --set-default-version 1
    

5) Again execute the below command


wsl --install -d Ubuntu
    

Installation and Enabling of WSL on Windows 2022 Server is complete!!!

Comments

Popular posts from this blog

MongoDB Installation Ubuntu 22.04 LTS