microsoft / microsoft/WSL

Error code: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/0x80072726

Open
#12,577 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

10.0.19045.5487

### WSL Version

2.4.10.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

5.15.167.4-1

### Distro Version

Ubuntu 22.04.5 LTS

### Other Software

_No response_

### Repro Steps

- Turn on Virtualization on BIOS
- Open Windows PowerShell (as Adminstrator)
- Turn all required features in Control Panel > Turn Windows Features on or off
- Run the following commands:
* dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
* dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
* wsl --set-default-version 2
* wsl --install
- The result is:
Downloading: Ubuntu
Installing: Ubuntu
An invalid argument was supplied.
Error code: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/0x80072726

It used to be very easy to install WSL before. But now I can't install it. I have tried many different ways before posting this issue here.

### Expected Behavior

Should install successfully

### Actual Behavior

PS C:\Windows\system32> wsl --set-default-version 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The operation completed successfully.
PS C:\Windows\system32> wsl --install
Downloading: Ubuntu
Installing: Ubuntu
An invalid argument was supplied.
Error code: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/0x80072726
PS C:\Windows\system32>

### Diagnostic Logs

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the documented Windows feature setup and `wsl --install` command, using the reported Windows, WSL, kernel, and Ubuntu versions. No source file, test, or diagnostic log is identified; done would require determining the cause of error 0x80072726 and documenting a verified installation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, ubuntu
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.