wsl --install
wsl --install
wsl --install
Installing: Virtual Machine Platform
Virtual Machine Platform has been installed.
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
Downloading: WSL Kernel
Installing: WSL Kernel
WSL Kernel has been installed.
Downloading: Ubuntu
The requested operation is successful.
Installing: Virtual Machine Platform
Virtual Machine Platform has been installed.
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
Downloading: WSL Kernel
Installing: WSL Kernel
WSL Kernel has been installed.
Downloading: Ubuntu
The requested operation is successful.
Installing: Virtual Machine Platform
Virtual Machine Platform has been installed.
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
Downloading: WSL Kernel
Installing: WSL Kernel
WSL Kernel has been installed.
Downloading: Ubuntu
The requested operation is successful.
Restart-Computer
Restart-Computer
Restart-Computer
Enter new UNIX username: localadmin
New password:
Retype new password:
passwd: password updated successfully
Enter new UNIX username: localadmin
New password:
Retype new password:
passwd: password updated successfully
Enter new UNIX username: localadmin
New password:
Retype new password:
passwd: password updated successfully
localadmin@MACHINE-NAME:~$
localadmin@MACHINE-NAME:~$
localadmin@MACHINE-NAME:~$
NAME STATE VERSION
* Ubuntu Running 2
NAME STATE VERSION
* Ubuntu Running 2
NAME STATE VERSION
* Ubuntu Running 2
sudo apt update && sudo apt upgrade -y
sudo apt update && sudo apt upgrade -y
sudo apt update && sudo apt upgrade -y
winget install Microsoft.WindowsTerminal
winget install Microsoft.WindowsTerminal
winget install Microsoft.WindowsTerminal
ls /mnt/c/Users/
ls /mnt/c/Users/
ls /mnt/c/Users/
\\wsl$\Ubuntu
\\wsl$\Ubuntu
\\wsl$\Ubuntu - Windows 11 (any edition — Home, Pro, Enterprise)
- A user account with Administrator privileges
- Internet connection for downloading the distro - Run wsl --update to make sure the kernel is current
- Then wsl --shutdown and try again - Open the Microsoft Store and check for pending updates — the Ubuntu app sometimes needs to finish installing from there - Reboot into BIOS/UEFI and enable Intel VT-x or AMD-V (virtualization)
- On most machines it's under Advanced → CPU Configuration - Set the default version: wsl --set-default-version 2
- Convert an existing distro: wsl --set-version Ubuntu 2 - Install a Debian instance alongside Ubuntu
- Set up Git with SSH keys in WSL2