microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.42k stars 822 forks source link

WslRegisterDistribution failed with error: 0x80004005 #5440

Open jitterdev opened 4 years ago

jitterdev commented 4 years ago

Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80004005 Error: 0x80004005 Unspecified error

Press any key to continue...

This happens on Ubuntu, Ubuntu 1804, and 2004. I haven't tested any other repos I have Windows Subsystem for Linux on and I can't find anything online about this error I downloaded all repos I used from Windows Store Sorry if this is stupid, I'm inexperienced with WSL and Linux

therealkenc commented 4 years ago

Possibly #4003.

Please post the output of the following from powershell:

PS> [System.Environment]::OSVersion
PS> Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntivirusProduct
Erik-Sovereign commented 4 years ago

@JitterDev Did you activate the "Virtual Machine Platform" Windows feature? When I didn't, I recieved the same error.

jitterdev commented 4 years ago

@Erik-Sovereign Yes, still get the error @therealkenc This is what I get when I type that:

PS C:\Users\xdc20> [System.Environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0

PS C:\Users\xdc20> Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntivirusProduct

displayName              : Windows Defender
instanceGuid             : {D68DDC3A-831F-4fae-9E44-DA132C1ACF46}
pathToSignedProductExe   : windowsdefender://
pathToSignedReportingExe : %ProgramFiles%\Windows Defender\MsMpeng.exe
productState             : 397568
timestamp                : Sat, 20 Jun 2020 17:14:46 GMT
PSComputerName           :
lygstate commented 4 years ago

Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80004005 Error: 0x80004005 ??????

Press any key to continue...

so is me

therealkenc commented 4 years ago

Please collect WSL logs and post the backlink to the feedback item here. Also please identify any third-party networking software that has been installed on Windows.

tmknight commented 3 years ago

https://aka.ms/AAaaqz1

Ubuntu 18.04 was installed and working as intended prior to move to Insiders

Platform ServicePack Version VersionString


Win32NT 10.0.20251.0 Microsoft Windows NT 10.0.20251.0

**NOTE:** I have removed the orphaned Norton entry as the product was no longer installed prior to upgrade to Insiders DEV displayName : Norton Security Online instanceGuid : {1122B19A-E671-38EC-8EAC-87048FD4528D} pathToSignedProductExe : C:\Program Files\Norton Security\Engine\22.20.2.57\WSCStub.exe pathToSignedReportingExe : C:\Program Files\Norton Security\Engine\22.20.2.57\nsWscSvc.exe productState : 331776 timestamp : Tue, 27 Oct 2020 01:58:09 GMT PSComputerName :

**NOTE:** I also removed/uninstalled the Kaspersky product to no avail - it was installed prior to Insiders DEV displayName : Kaspersky Security Cloud instanceGuid : {0AB30972-4BAC-7BEE-CBCA-B8F9E68797D8} pathToSignedProductExe : C:\Program Files (x86)\Kaspersky Lab\Kaspersky Security Cloud 21.1\wmiav.exe pathToSignedReportingExe : C:\Program Files (x86)\Kaspersky Lab\Kaspersky Security Cloud 21.1\avp.exe productState : 266240 timestamp : Wed, 11 Nov 2020 14:07:21 GMT

**NOTE:** Defender is now the only remaining AV product displayName : Windows Defender instanceGuid : {D68DDC3A-831F-4fae-9E44-DA132C1ACF46} pathToSignedProductExe : windowsdefender:// pathToSignedReportingExe : %ProgramFiles%\Windows Defender\MsMpeng.exe productState : 393472 timestamp : Wed, 11 Nov 2020 01:14:58 GMT PSComputerName :

jitterdev commented 3 years ago

Magically started working again. I don't know why, how, or when.

Windows is weird, man.

tmknight commented 3 years ago

Still an issue for me. On latest (as of this post) Build 20257

maxsharov commented 3 years ago

Also check if there is enough of free space on your system drive.

lygstate commented 3 years ago

I am using AMD CPU 3950x and windows are running inside qemu-kvm with nested vm enabled. But still doesn't working.

tmknight commented 3 years ago

@maxsharov, bare/base Linux shouldn't require more than (a very generous) 8GB when installing all the server components. Ubuntu states 2.5GB minimum for server. The WSL VHD is set to 256GB (dynamic), though, typical install for Ubuntu is less than 2GB. Do you have a MS recommended minimum?

haharooted commented 3 years ago

I am using AMD CPU 3950x and windows are running inside qemu-kvm with nested vm enabled. But still doesn't working.

This error is usually caused by not having enough disk space. In my experience you need quite a bit more than the recommended minimum

keitarobr commented 3 years ago

I'm having the same error here.

Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80004005

No events registered in Windows Logs and Virtualization is possible (if I enable and run hyper-V, I'm able to create a VM with Ubuntu 20.04 and run it).

Microsoft Windows 10.0.21313.1000

keitarobr commented 3 years ago

I'm having the same error here.

Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80004005

No events registered in Windows Logs and Virtualization is possible (if I enable and run hyper-V, I'm able to create a VM with Ubuntu 20.04 and run it).

Microsoft Windows 10.0.21313.1000

I "fixed" my system creating a .wslconfig and disabling nested virtualization:

[wsl2] nestedVirtualization=false

tmknight commented 3 years ago

AMD processor; the following allowed WSL2 with AMD processor. Seems nestedVirtualization is broken with AMD processors (https://github.com/microsoft/WSL/issues/5440#issuecomment-778660156)

%userprofile%.wslconfig

[wsl2]
nestedVirtualization=false
lygstate commented 3 years ago

AMD processor; the following resolved (#5440 (comment))

%userprofile%.wslconfig

[wsl2]
nestedVirtualization=false

well。we want nest virtualization

tmknight commented 3 years ago

Agreed; not saying the larger issue is resolved. However, until that is fixed, you will have to use that config to use WSL2 on AMD processors.

biniam-eyakem commented 3 years ago

I got same error 0x80004005, restart the same process but with Administrative privilege and installation run successfully.

jbciardi commented 3 years ago

This happens to me too where it wont install the distro. But it will only happen when I try to install a distro under WSL2. When default version is set to WSL1, it will install fine. I don't know what's happening to cause this nonsense.

kotenok2000 commented 2 years ago

wsl.etl.zip I have uploaded etl logs using wsl.wprp

kotenok2000 commented 2 years ago

I have decided to reinstall wsl component and when i deselected it in windows components and restarted I was not able to reinstall it. here is my cbs.log CBS.log.zip

dragonkali commented 2 years ago

finally the problem error 0x8004005 is solved you have to run as administrator your kali linux app i found this article https://windowsreport.com/unspecified-error-windows-10/ this article about need priviledge app

rifaterdemsahin commented 2 years ago

I am there mate > testing your kali linux now image Here is the try but i have the same error image image

rifaterdemsahin commented 2 years ago

Does not work on my end image even unblocked image

rifaterdemsahin commented 2 years ago

also tried deleting this folder no help image

dragonkali commented 2 years ago

Are using app or vm version my kali using app not vm usb live

Pada tanggal Rab, 22 Jun 2022 17:20, Erdem @.***> menulis:

rifaterdemsahin commented 2 years ago

Are using app or vm version my kali using app not vm usb live

I installed windows server 2022 on a vmware workstation using 3995x amd chip

And i tried all in the wsl list none of them worked image

image

dragonkali commented 2 years ago

try using run as administrator

rifaterdemsahin commented 2 years ago

when i moved to 1 it worked...I need the 2 to run the docker on this box image

rifaterdemsahin commented 2 years ago

try using run as administrator

i always run as admin

dragonkali commented 2 years ago

but is work now

rifaterdemsahin commented 2 years ago

yes it works when i set it to 1 but i need to run windows containers on w2022 so i hope it docker works image

rifaterdemsahin commented 2 years ago

my goal is install docker-desktop there and move to 2 and make it work image

if 2 does not work i dont know how i can run docker containers for windows there.

choco install docker-desktop -y

I am installing docker > i have the wsl2 update I would set the docker-desktop to 2 Switch to windows containers run it and pray that it works for 2 over the hyperv

at least i know my amd 3095x can run the nested virtualization on swl default version 1

rifaterdemsahin commented 2 years ago

but is work now

it does work on 1 but not on 2 image

rifaterdemsahin commented 2 years ago

When i move to 2 than things stop working image

dragonkali commented 2 years ago

maybe this report from member github docker usseful for you https://github.com/docker/for-win/issues/8204

dragonkali commented 2 years ago

maybe the problem is your wsl

rifaterdemsahin commented 2 years ago

it could be a different install order image https://github.com/docker/for-win/issues/8204#issuecomment-801978433

rifaterdemsahin commented 2 years ago

maybe the problem is your wsl

if i move to 1 and install wsl when i go back to 2 it works for ubuntu image

dragonkali commented 2 years ago

ubuntu work for wsl 2

dragonkali commented 2 years ago

but i have problem with kali linux gui in wsl 1 there much problem in wsl 1 1. you never in desktop gui kali because xrdp scree is black and stuck in loading screen but ihope in wsl 2 desktop kali gui not stuck in screen and black

rifaterdemsahin commented 2 years ago

wsl 2 is the way to go to get the high end support.

I made it work in an azure vm not on my local vmware workstation

dragonkali commented 2 years ago

can you explain what it means

rifaterdemsahin commented 2 years ago

wsl 2 is the way to go to get the high end support.

I made it work in an azure vm not on my local vmware workstation

I am also on 3995x I think we need to update the ubuntu for the amd64 libraries as they are integrated image https://twitter.com/rifaterdemsahin/status/1539569229539803138

dragonkali commented 2 years ago

maybe

rifaterdemsahin commented 2 years ago

maybe

I cant run docker it could be related to the amd image

they say i can run it but it does not work

rifaterdemsahin commented 2 years ago

ollowing resolved (#5440 (c

does that work in amd? i thought we get blocked by this https://docs.microsoft.com/en-us/system-center/vmm/vm-nested-virtualization?view=sc-vmm-2022

rifaterdemsahin commented 2 years ago

nestedVirtualization=false

image

so what happens when i do this in vmware workstation ?

rifaterdemsahin commented 2 years ago

it went online after the sub level( vmware w2022 nested virtualization disable) image

rifaterdemsahin commented 2 years ago

[wsl2] nestedVirtualization=false

how come this worked ?