WSL: Ubuntu installation stuck on WSL (Windows 10 Pro Insider Preview)

Identified Workarounds (Added by WSL maintainers)

Fix App and browser control

  1. Open “Window Security”
  2. Open “App & Browser control”
  3. Click “Exploit protection settings” at the bottom
  4. Switch to “Program settings” tab
  5. Add/Locate “C:\WINDOWS\System32\vmcompute.exe” in the list and expand it
  6. Click “Edit”
  7. Scroll down to “Code flow guard (CFG)” and uncheck/check “Override system settings” (CFG must be ON for this app!)
  8. Reboot

https://github.com/microsoft/WSL/issues/6405#issuecomment-1297311116 Thank you to: @shtormish !!

Press ctrl+c

https://github.com/microsoft/WSL/issues/6405#issuecomment-1054803355 Thank you @sparcbr

Original issue content (End of content added by WSL maintainers)

Environment

Windows build number: 21277
Your Distribution version: Ubuntu 20.04
Whether the issue is on WSL 2 and/or WSL 1: 2

Steps to reproduce

  1. Install the latest build of Windows Insider Preview (Dev Channel)
  2. Set up Windows
  3. Enable Hyper-V, Hypervisor Platform, Containers
  4. In cmd.exe (Admin): wsl --install
  5. Reboot
  6. Ubuntu window opens, says “Installing, this may take a few minutes” for several hours.

WSL logs:

Expected behavior

Ubuntu should install and ask me to configure my user account.

Actual behavior

Hangs on “installing” with no errors.

Edit 2024: Workarounds

Workaround 1 @sparcbr Workaround 2 @shtormish

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 25
  • Comments: 56

Most upvoted comments

I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password

I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password

weird but its actually worked 😂

UPD Have found fix that worked for me here https://github.com/microsoft/WSL/issues/7505

It seems that vmcompute.exe must be strictly Code flow guard (CFG) enabled, otherwise it will not work.

Here is reproduce of workaround ===>

  1. Open “Window Security”
  2. Open “App & Browser control”
  3. Click “Exploit protection settings” at the bottom
  4. Switch to “Program settings” tab
  5. Add/Locate “C:\WINDOWS\System32\vmcompute.exe” in the list and expand it
  6. Click “Edit”
  7. Scroll down to “Code flow guard (CFG)” and uncheck/check “Override system settings” (CFG must be ON for this app!)
  8. Reboot

In cmd.exe (Admin): wsl --install

That command needs a parameter, it would look like wsl.exe --install -d Ubuntu. Before you do that, do:

C:\> wsl --set-default-version 2

If either of those fail or hang, please collect WSL logs and post the backlink to the feedback item here. You don’t need to let it run for hours while collecting the logs, just 30 seconds or so will do, then close the window.

I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password

Had the same issue and this solved it.

I am running Windows 10 Pro version 21H1.

@oidrissi

I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password

This just makes me quit the install

yup, same for me.

what worked for me is running, wsl --install Ubuntu --web-download

source: https://github.com/microsoft/WSL/issues/9390#issuecomment-1363478259

UPD Have found fix that worked for me here #7505

It seems that vmcompute.exe must be strictly Code flow guard (CFG) enabled, otherwise it will not work.

Here is reproduce of workaround ===>

1. Open "Window Security"

2. Open "App & Browser control"

3. Click "Exploit protection settings" at the bottom

4. Switch to "Program settings" tab

5. Add/Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it

6. Click "Edit"

7. Scroll down to "Code flow guard (CFG)" and uncheck/check "Override system settings" **(CFG must be ON for this app!)**

8. Reboot

It works! saved my day!!!

The --install feature is only available on Insiders, as of 20211.

I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password

weird but its actually worked 😂

Could anyone somehow pin this? or actually author @djrranga of this post could edit his issue description with the workaround? 😃

Done! Surprised this is still open 3 years later 😉

UPD Have found fix that worked for me here #7505

It seems that vmcompute.exe must be strictly Code flow guard (CFG) enabled, otherwise it will not work.

Here is reproduce of workaround ===>

1. Open "Window Security"

2. Open "App & Browser control"

3. Click "Exploit protection settings" at the bottom

4. Switch to "Program settings" tab

5. Add/Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it

6. Click "Edit"

7. Scroll down to "Code flow guard (CFG)" and uncheck/check "Override system settings" **(CFG must be ON for this app!)**

8. Reboot

Confirming this works form me as well (Win10, 22H2), thanks a lot!

Just to note, “Override system settings” was already checked (as well as “On” and “User strict CFG”), but after unchecking and checking again, clicking Apply, and restarting I was finally able to install via wsl.

UPD Have found fix that worked for me here #7505

It seems that vmcompute.exe must be strictly Code flow guard (CFG) enabled, otherwise it will not work.

Here is reproduce of workaround ===>

  1. Open “Window Security”
  2. Open “App & Browser control”
  3. Click “Exploit protection settings” at the bottom
  4. Switch to “Program settings” tab
  5. Add/Locate “C:\WINDOWS\System32\vmcompute.exe” in the list and expand it
  6. Click “Edit”
  7. Scroll down to “Code flow guard (CFG)” and uncheck/check “Override system settings” (CFG must be ON for this app!)
  8. Reboot

##This worked. You saved my life

UPD Have found fix that worked for me here #7505

It seems that vmcompute.exe must be strictly Code flow guard (CFG) enabled, otherwise it will not work.

Here is reproduce of workaround ===>

1. Open "Window Security"

2. Open "App & Browser control"

3. Click "Exploit protection settings" at the bottom

4. Switch to "Program settings" tab

5. Add/Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it

6. Click "Edit"

7. Scroll down to "Code flow guard (CFG)" and uncheck/check "Override system settings" **(CFG must be ON for this app!)**

8. Reboot

This actually worked for me. It’s wild, how enabling exploit protection can solve an issue insted of creating one. 😮

I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password

Incredible that this worked.

I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password

2023/12/12 - still works like a charm

I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password

This just makes me quit the install

Open PowerShell as an Admin then run

wsl --install Ubuntu --web-download

I had the same issue by trying to run Ubuntu by clicking on the icon…

Thank you. this worked for me. The --web-download was also useful in updating wsl. For Windows 11

I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password

This just makes me quit the install

Have same trouble. Tried install Ubunty and debian, each time cmd window opens, says “Installing, this may take a few minutes” for several hours. Nothing helped(

  • Check bios settings – all VT functions checked
  • Reinstall virtual machine platform and WSL – success
  • Check system via sfc and dism – success
  • Enable nested virtualization – done
  • Update system – success
  • Tried ctrl+c as supposet earlier - it just closes window with cmd((
  • None VM installed
System:
WSL version: 0.70.5.0
Kernel version: 5.15.68.1
WSLg version: 1.0.45
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22623.875

Here is logs taken with recommended tool from MS WslLogs-2022-10-31_02-44-26.zip WslLogs-2022-10-31_02-36-29.zip WslLogs-2022-10-31_02-46-07.zip

I got the same issue, but found a workaround: you just have to use ctrl+c and then it will continue and ask you for a username and password

9/23/2022, this is still the best solution