WSL 1 is not supported. Please upgrade to WSL 2 or above.
Could not determine Node.js install directory
WSL 1 is not supported. Please upgrade to WSL 2 or above.
Could not determine Node.js install directory
WSL 1 is not supported. Please upgrade to WSL 2 or above.
Could not determine Node.js install directory
The service did not respond to the start or control request in a timely fashion.
Error code: Wsl/0x8007041d
The service did not respond to the start or control request in a timely fashion.
Error code: Wsl/0x8007041d
The service did not respond to the start or control request in a timely fashion.
Error code: Wsl/0x8007041d
Get-Service LxssManager
Get-Service LxssManager
Get-Service LxssManager
Cannot find any service with service name 'LxssManager'.
Cannot find any service with service name 'LxssManager'.
Cannot find any service with service name 'LxssManager'.
WSL 1 is not supported. Please upgrade to WSL 2 or above.
Could not determine Node.js install directory
WSL 1 is not supported. Please upgrade to WSL 2 or above.
Could not determine Node.js install directory
WSL 1 is not supported. Please upgrade to WSL 2 or above.
Could not determine Node.js install directory
The service did not respond to the start or control request in a timely fashion.
Error code: Wsl/0x8007041d
The service did not respond to the start or control request in a timely fashion.
Error code: Wsl/0x8007041d
The service did not respond to the start or control request in a timely fashion.
Error code: Wsl/0x8007041d
The service did not respond to the start or control request in a timely fashion.
Error code: Wsl/0x8007041d
The service did not respond to the start or control request in a timely fashion.
Error code: Wsl/0x8007041d
The service did not respond to the start or control request in a timely fashion.
Error code: Wsl/0x8007041d
Get-Service LxssManager
Get-Service LxssManager
Get-Service LxssManager
Cannot find any service with service name 'LxssManager'.
Cannot find any service with service name 'LxssManager'.
Cannot find any service with service name 'LxssManager'.
WSL 1 is not supported. Please upgrade to WSL 2 or above.
Could not determine Node.js install directory
WSL 1 is not supported. Please upgrade to WSL 2 or above.
Could not determine Node.js install directory
WSL 1 is not supported. Please upgrade to WSL 2 or above.
Could not determine Node.js install directory
systeminfo | findstr /i virtualization
systeminfo | findstr /i virtualization
systeminfo | findstr /i virtualization
Virtualization Enabled In Firmware: Yes
Virtualization Enabled In Firmware: Yes
Virtualization Enabled In Firmware: Yes
DISM /Online /Cleanup-Image /RestoreHealth
DISM /Online /Cleanup-Image /RestoreHealth
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
sfc /scannow
sfc /scannow
dism /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart dism /online /disable-feature /featurename:VirtualMachinePlatform /norestart dism /online /disable-feature /featurename:HypervisorPlatform /norestart
dism /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart dism /online /disable-feature /featurename:VirtualMachinePlatform /norestart dism /online /disable-feature /featurename:HypervisorPlatform /norestart
dism /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart dism /online /disable-feature /featurename:VirtualMachinePlatform /norestart dism /online /disable-feature /featurename:HypervisorPlatform /norestart
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart dism /online /enable-feature /featurename:HypervisorPlatform /all /norestart
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart dism /online /enable-feature /featurename:HypervisorPlatform /all /norestart
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart dism /online /enable-feature /featurename:HypervisorPlatform /all /norestart
bcdedit /set hypervisorlaunchtype auto
bcdedit /set hypervisorlaunchtype auto
bcdedit /set hypervisorlaunchtype auto
Settings → Windows Update → Check for updates
Settings → Windows Update → Check for updates
Settings → Windows Update → Check for updates
Get-Service LxssManager
Get-Service LxssManager
Get-Service LxssManager
Status Name DisplayName
------ ---- -----------
Running LxssManager LxssManager
Status Name DisplayName
------ ---- -----------
Running LxssManager LxssManager
Status Name DisplayName
------ ---- -----------
Running LxssManager LxssManager
Keep personal files and apps
Keep personal files and apps
Keep personal files and apps
NAME STATE VERSION
Ubuntu Running 1
NAME STATE VERSION
Ubuntu Running 1
NAME STATE VERSION
Ubuntu Running 1
wsl --set-default-version 2
wsl --set-default-version 2
wsl --set-default-version 2
wsl --set-version Ubuntu 2
wsl --set-version Ubuntu 2
wsl --set-version Ubuntu 2
VERSION = 2
VERSION = 2
VERSION = 2
node -v
npm -v
node -v
npm -v
node -v
npm -v
NAME STATE VERSION
* Ubuntu Running 2
NAME STATE VERSION
* Ubuntu Running 2
NAME STATE VERSION
* Ubuntu Running 2
wsl --shutdown
wsl --shutdown
wsl --shutdown
wsl --unregister Ubuntu
wsl --unregister Ubuntu
wsl --unregister Ubuntu
wsl --unregister Ubuntu-22.04
wsl --unregister Ubuntu-22.04
wsl --unregister Ubuntu-22.04
Settings → Apps → Installed apps
Settings → Apps → Installed apps
Settings → Apps → Installed apps
wsl --install -d Ubuntu
wsl --install -d Ubuntu
wsl --install -d Ubuntu
wsl --version
wsl --version
wsl --version
wsl --shutdown
wsl --shutdown
wsl --shutdown
Optimize-VHD -Path "$env:LOCALAPPDATA\Packages\<DISTRO_PACKAGE>\LocalState\ext4.vhdx" -Mode Full
Optimize-VHD -Path "$env:LOCALAPPDATA\Packages\<DISTRO_PACKAGE>\LocalState\ext4.vhdx" -Mode Full
Optimize-VHD -Path "$env:LOCALAPPDATA\Packages\<DISTRO_PACKAGE>\LocalState\ext4.vhdx" -Mode Full
wsl --manage <distro-name> --set-sparse true
wsl --manage <distro-name> --set-sparse true
wsl --manage <distro-name> --set-sparse true
wsl --manage Ubuntu --set-sparse true
wsl --manage Ubuntu --set-sparse true
wsl --manage Ubuntu --set-sparse true - The WSL service stack on Windows was partially broken.
- The Linux distro was still running on WSL1 instead of WSL2. - Docker Desktop
- VS Code Remote WSL
- Kubernetes tooling - Interrupted Windows updates
- Corrupted optional Windows features
- Broken Docker Desktop installation/removal
- Hyper-V or virtualization issues
- Debloating scripts or registry cleaners
- Failed WSL upgrades - Enter BIOS/UEFI
- Enable Intel VT-x or AMD-V/SVM
- Save and reboot - Cumulative updates
- Optional updates
- Feature updates
- Servicing stack updates - Missing system services
- Broken Hyper-V registrations
- Corrupted WSL components
- Windows component store issues - A real Linux kernel
- Better filesystem performance
- Docker compatibility
- Improved networking
- Better Node.js compatibility
- Proper Linux syscall support - Install Node.js using nvm
- Use Docker Desktop with WSL2 integration
- Store projects inside the Linux filesystem (~/projects)
- Use VS Code Remote WSL extension
- Keep Windows and WSL updated regularly - Linux files
- /home directory
- Installed packages
- User configuration - a broken WSL service stack on Windows
- combined with an outdated WSL1 distro