The error you're encountering:
Error code: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/HCS/HCS_E_SERVICE_NOT_AVAILABLE
typically means that required Windows features for WSL are not enabled or the service is not running properly.
Here’s a step-by-step guide to resolve this issue:
✅ Step 1: Enable Required Windows Features
Open PowerShell as Administrator and run the following commands:
# Enable WSL feature
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
# Enable Virtual Machine Platform feature
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Then restart your computer.
✅ Step 2: Update WSL Kernel
Even after enabling the required components, you might need to update the WSL kernel:
-
Download the latest WSL kernel update from Microsoft:
-
Install the .msi package and follow the instructions.
✅ Step 3: Set WSL Default Version to 2
After rebooting, run this in PowerShell (as admin):
wsl --set-default-version 2
✅ Step 4: Reinstall or Repair Ubuntu
If it still doesn’t work, try installing from the Microsoft Store:
Or install via command line:
wsl --install -d Ubuntu
✅ Step 5: Check Hyper-V Services
Make sure the Hyper-V services are running:
- Press
Win + R, type services.msc, and hit Enter.
- Scroll down and check if these services exist and are running:
- Hyper-V Host Compute Service (HCS)
- Hyper-V Virtual Machine Management
If they’re missing or disabled, you may need to re-enable WSL or repair Windows features.
✅ Step 6: BIOS Settings – Virtualization Enabled?
Ensure that hardware virtualization (Intel VT-x or AMD-V) is enabled in your BIOS/UEFI settings. This is necessary for WSL2 to function.
✅ Step 7: Windows Version Check
WSL2 requires a relatively recent version of Windows:
- Windows 10 Version 2004 (Build 19041) or higher, or
- Windows 11
Check your build number with:
winver
If outdated, update Windows using Windows Update or download the latest updates from Microsoft.
✅ Step 8: Reset or Reinstall WSL
If all else fails:
# Unregister current Ubuntu instance (BE CAREFUL – this deletes your data!)
wsl --unregister Ubuntu
# Then reinstall
wsl --install -d Ubuntu
Or reset WSL entirely:
# Shutdown WSL
wsl --shutdown
# List installed distros
wsl --list --verbose
# Remove and reinstall any problematic distro
wsl --unregister <distro-name>
wsl --install -d <distro-name>
Summary Checklist
| Task | Status |
|---|
| ✅ Enable WSL Feature | ✔️ |
| ✅ Enable VM Platform | ✔️ |
| ✅ Restart PC | ✔️ |
| ✅ Install WSL Kernel Update | ✔️ |
| ✅ Set Default Version to 2 | ✔️ |
| ✅ BIOS Virtualization Enabled | ✔️ |
| ✅ Up-to-date Windows Version | ✔️ |
Let me know if you want help checking or fixing a specific step!