Repository navigation
Description
Windows Version
Microsoft Windows [Version 10.0.19044.3324]
WSL Version
WSL version: 3.0.1.0
Are you using WSL 1, WSL 2, or WSLC?
- WSL 2
- WSL 1
- WSLC
Kernel Version
No response
Distro Version
No response
Other Software
I am unable to install or launch any Linux distribution using Windows Subsystem for Linux (WSL2). When attempting to install Debian, WSL reports that virtualization is not enabled and fails with the error HCS_E_HYPERV_NOT_INSTALLED.
I have already tried enabling the Virtual Machine Platform component using the recommended WSL command, but the issue persists even after restarting the system.
Steps to Reproduce
Open PowerShell as Administrator.
Run:
powershell
wsl
WSL reports that no Linux distributions are installed.
Attempt to install Debian:
powershell
wsl --install -d debian
Installation fails with the virtualization error.
Run the recommended command:
powershell
wsl.exe --install --no-distribution
The command completes successfully.
Try installing Debian again:
powershell
wsl --install -d debian
Actual Behavior
The Debian installation fails with the following error:
text
WSL2 is unable to start since virtualization is not enabled on this machine.
Please ensure the "Virtual Machine Platform" optional component
is enabled and virtualization is turned on in your computer's
firmware settings.
Error code:
Wsl/InstallDistro/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED
Expected Behavior
WSL2 should successfully initialize its virtual machine and install the Debian Linux distribution after the required Windows components and virtualization settings are enabled.
Troubleshooting Already Attempted
Executed wsl.exe --install --no-distribution successfully.
Retried Debian installation multiple times.
Restarted and shut down the system.
Retried the installation after restarting.
Followed the troubleshooting instructions provided by WSL.
Unfortunately, none of these steps resolved the issue.
Impact
I cannot install or use Debian or other Linux distributions through WSL2, which prevents me from using my Linux development environment on Windows.
Error Details
Component: Windows Subsystem for Linux (WSL2)
Distribution: Debian GNU/Linux
Error code: HCS_E_HYPERV_NOT_INSTALLED
Failing operation: RegisterDistro/CreateVm
Request
Could you please investigate why WSL2 cannot initialize its virtual machine even after the recommended Windows component installation command completes successfully?
It would also be helpful to know whether this is related to Windows virtualization configuration, Hyper-V components, or a potential WSL2 initialization issue.
Repro Steps
I am unable to install or launch any Linux distribution using Windows Subsystem for Linux (WSL2). When attempting to install Debian, WSL reports that virtualization is not enabled and fails with the error HCS_E_HYPERV_NOT_INSTALLED.
I have already tried enabling the Virtual Machine Platform component using the recommended WSL command, but the issue persists even after restarting the system.
Steps to Reproduce
Open PowerShell as Administrator.
Run:
powershell
wsl
WSL reports that no Linux distributions are installed.
Attempt to install Debian:
powershell
wsl --install -d debian
Installation fails with the virtualization error.
Run the recommended command:
powershell
wsl.exe --install --no-distribution
The command completes successfully.
Try installing Debian again:
powershell
wsl --install -d debian
Actual Behavior
The Debian installation fails with the following error:
text
WSL2 is unable to start since virtualization is not enabled on this machine.
Please ensure the "Virtual Machine Platform" optional component
is enabled and virtualization is turned on in your computer's
firmware settings.
Error code:
Wsl/InstallDistro/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED
Expected Behavior
WSL2 should successfully initialize its virtual machine and install the Debian Linux distribution after the required Windows components and virtualization settings are enabled.
Troubleshooting Already Attempted
Executed wsl.exe --install --no-distribution successfully.
Retried Debian installation multiple times.
Restarted and shut down the system.
Retried the installation after restarting.
Followed the troubleshooting instructions provided by WSL.
Unfortunately, none of these steps resolved the issue.
Impact
I cannot install or use Debian or other Linux distributions through WSL2, which prevents me from using my Linux development environment on Windows.
Error Details
Component: Windows Subsystem for Linux (WSL2)
Distribution: Debian GNU/Linux
Error code: HCS_E_HYPERV_NOT_INSTALLED
Failing operation: RegisterDistro/CreateVm
Request
Could you please investigate why WSL2 cannot initialize its virtual machine even after the recommended Windows component installation command completes successfully?
It would also be helpful to know whether this is related to Windows virtualization configuration, Hyper-V components, or a potential WSL2 initialization issue.
Expected Behavior
WSL2 should successfully detect and initialize the required virtualization environment.
Running wsl.exe --install --no-distribution should ensure the required Windows components are enabled.
After restarting Windows, running wsl --install -d debian should successfully download, register, and install Debian.
The Debian distribution should launch successfully using wsl without reporting virtualization or Hyper-V errors.
If virtualization is disabled or unavailable, WSL should provide clear diagnostic information identifying the missing requirement rather than repeatedly failing with the same generic error.
Actual Behavior
Diagnostic Logs
No response
Activity
github-actions commentedon Nov 24, 2026
Logs are required for review from WSL team
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done.
If this is a networking issue, please use
.\collect-wsl-logs.ps1 -LogProfile networkinginstead, following the instructions in Collect WSL logs for networking issuesOnce completed please upload the output files to this GitHub issue.
See Collect WSL logs (recommended method).
If you choose to email these logs instead of attaching them to the bug, please send them to wsl-gh-logs@microsoft.com with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.
Anurag13075 commentedon Nov 24, 2026
can i work on the issue