Back to posts

WSL2 Installation Guide
Aryan Kanojia / March 15, 2025
Install Windows Subsystem for Linux (WSL)
1. Enable Windows Subsystem for Linux (WSL)
Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
2. Enable Virtual Machine Platform
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
3. Install WSL
wsl --install
4. Set WSL to Version 2
wsl --set-default-version 2
5. Install Ubuntu 24.04 LTS
Download and install Ubuntu 24.04 LTS from the Microsoft Store or run:
wsl --install -d Ubuntu-24.04
6. Verify Installation
wsl --list --verbose
7. Start Ubuntu
Launch Ubuntu from the Start Menu or run:
wsl
Now, Ubuntu 24.04 LTS is installed and running on WSL 2! 🚀