WSL icon indicating copy to clipboard operation
WSL copied to clipboard

The user has not been granted the requested logon type at this computer

Open nd368park opened this issue 6 years ago • 127 comments

Fails to start any WSL distro with the error:

Logon failure: the user has not been granted the requested logon type at this computer

Environment

Windows 10 x64 10.0.19041.264 wsl2 Ubuntu 18.04 Windows Terminal 1.0 AD joined machine

Steps to reproduce

  1. Follow the standard instructions to install WSL2 and distro
  2. Run WSL2 distro - everything works
  3. Close terminal Window
  4. wsl --shutdown
  5. gpupdate /force
  6. Try and run distro again = error

Expected behavior

Distro runs under wsl2

Actual behavior

Can't run any distro under wsl2

The question is what Group Policy, account privileges are required in order for wsl2 to run successfully?

nd368park avatar Jun 13 '20 13:06 nd368park

etl trace indicates an exception was thrown from

onecore\wsl\lxss\wsl\main.cpp(380) = 0x80070569

nd368park avatar Jun 13 '20 14:06 nd368park

Could you give us a link to the traces that you took? Thank you! :)

craigloewen-msft avatar Jun 16 '20 21:06 craigloewen-msft

I got same issue here. Windows version 2004

wsl --shutdown wsl Logon failure: the user has not been granted the requested logon type at this computer.

fangxy avatar Jun 17 '20 12:06 fangxy

Did you contact your IT admin or someone in your corp. about this issue?

Biswa96 avatar Jun 17 '20 13:06 Biswa96

Did you contact your IT admin or someone in your corp. about this issue?

I tried but IT has no idea.

fangxy avatar Jun 17 '20 15:06 fangxy

Could you give us a link to the traces that you took? Thank you! :)

Sorry company policy prevents that but here are the events as viewed in WPA

lxcore_service

Microsoft.Windows.LxssManager

  • CreateInstanceBegin
  • CreateInstanceEnd
  • CreateVmBegin
  • Error -VerboseLog

lxcore_kernel = empty

lxcore_user

Microsoft.Windows.Subsystem.Lxss

  • LxssException

There is no additional information in any other column displayed in WPA (apart from threadid, processid) even when all are turned on.

nd368park avatar Jun 18 '20 14:06 nd368park

Started to get the same error. Also an AD connected machine. Tried to reintall Ubuntu and now i get this error: Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80070569 Error: 0x80070569 Logon failure: the user has not been granted the requested logon type at this computer.

Chuli2k avatar Jun 19 '20 13:06 Chuli2k

I started to get the same issue after upgrading to Win10 2004. Since my workstation is also connected to AD and I am certain that my user rights have not been changed I tried to reload our group policy

gpupdate /force

That immediately solved the problem for me.

ksalm avatar Jun 23 '20 06:06 ksalm

I can reproduce the issue with WSL2 on Windows 10 Version 2004 with Ubuntu 20.04.

It appears when a background group policy refresh runs you're unable to launch WSL2 again, if you leave it running everything works until a relaunch.

Have tried granting the special user "VIRTUAL MACHINE\Virtual Machines" logon as a service role via a Group Policy and it hasn't made any difference.

p-obrien avatar Aug 01 '20 04:08 p-obrien

Same as @piobrien. I work for Microsoft on the gaming side so happy to provide any debug info if it's helpful.

darrenmonahan avatar Aug 01 '20 18:08 darrenmonahan

Same as @piobrien. The Solution from @ksalm doesnt work for me.

Stat-Kaya avatar Aug 03 '20 06:08 Stat-Kaya

The solution from @ksalm also did not work for me. But I installed HyperV and now it seems to be working...

Chuli2k avatar Aug 03 '20 07:08 Chuli2k

@Chuli2k I already had HyperV installed but the problem still occured. I also noticed that when I reboot my system I am no longer able to run WSL2 distros as before. My proposed "gpupdate" still solves the issue for me though - until the next reboot that is.

ksalm avatar Aug 03 '20 08:08 ksalm

@ksalm I also installed "Platform for hypervisor" and "Platform for virtual computers" if that made any difference. Note: I translated the names to english, so the names can be a bit different.

Chuli2k avatar Aug 07 '20 05:08 Chuli2k

@Chuli2k I think its "Hyper-V Platform" and "Virtual Machine Platform" and I also have them both activated. Though the issue is still not entirely resolved for me. My workaround doesn't take to much time, so I keep forcing a group policy update for the time beeing. It's kind of annoying but I can live with it.

ksalm avatar Aug 07 '20 06:08 ksalm

Heylow all, this note just say that I have the same error from time to time.

I do "hibernate" the computer every evenings instead of doing a complete shutdown. This issue does appear sometimes after a computer wake up.
The gpupdate /force does not fix. OTOH, a complete reboot does.

alaincao avatar Aug 21 '20 10:08 alaincao

If this error occurs

Logon failure: the user has not been granted the requested logon type at this computer.
Press any key to continue...

I restart Hyper-V Virtual Machine Management (vmms) service. Then it works again until next hibernate. powershell restart-service vmms

bjmi avatar Aug 28 '20 06:08 bjmi

Hey, the restarting Hyper-V trick works for me, many thanks!
Except the name of the service to restart for me is "Hyper-V Host Compute Service (vmcompute)"

alaincao avatar Aug 28 '20 11:08 alaincao

Same issue, AD joined machine, restarting "Hyper-V Host Compute Service (vmcompute)" resolved.

crosbyja avatar Sep 03 '20 15:09 crosbyja

Same issue, AD joined machine, restarting "Hyper-V Host Compute Service (vmcompute)" resolved.

This also worked for me too. I have this issue since Windows 10 2004 update. This is the first command that worked that didnt required me to reboot my system. Thanks guys. Hope this issue is fixed soon.

GutierrezDev avatar Sep 11 '20 22:09 GutierrezDev