microsoft / WSL

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

Catastrophic failure: Wsl/Service/CreateInstance/E_UNEXPECTED #9996

Closed joelrb closed 1 year ago

joelrb commented 1 year ago

Windows Version

Microsoft Windows [Version 10.0.22621.1555]

WSL Version

1.2.0.0

Are you using WSL 1 or WSL 2?

Kernel Version

1.2023.1.0

Distro Version

Kali Linux (2023.1 - rolling) 64-bit

Other Software

No response

Repro Steps

  1. Install kali-linux on a drive other than c:\ drive
  2. Re-install kali-linux (wsl unregister current installation)
  3. Reinstall kali-linux

Expected Behavior

Successful kali-linux installation.

Actual Behavior

Enter new UNIX username: jrb Catastrophic failure Error code: Wsl/Service/CreateInstance/E_UNEXPECTED

kali error

Diagnostic Logs

WslLogs-2023-04-19_18-36-18.zip

benhillis commented 1 year ago

Thanks for filing, unfortunately the logs you shared are not during the time when this error occured. Could you please re-collect logs, reproduce the issue, then end log collection?

Thanks.

joelrb commented 1 year ago

Here's a new log and screenshot. WslLogs-2023-04-20_15-45-36.zip errorkali

benhillis commented 1 year ago

This is very strange, I see in the log attempting to bind an AF_VSOCK socket is returning ENOSYS. Are you using a private kernel by chance? It might be helpful to take another trace of a full boot, so if you could do the following it would be very helpful. Thanks!

  1. wsl.exe --shutdown
  2. start trace
  3. repro issue
  4. stop trace

Are you installing the kali from the store? I'm not able to reproduce this...

joelrb commented 1 year ago

This is very strange, I see in the log attempting to bind an AF_VSOCK socket is returning ENOSYS. Are you using a private kernel by chance? It might be helpful to take another trace of a full boot, so if you could do the following it would be very helpful. Thanks!

  1. wsl.exe --shutdown
  2. start trace
  3. repro issue
  4. stop trace

Are you installing the kali from the store? I'm not able to reproduce this...

The Kali installer comes from the Microsoft Store. Also it worked before this error as I'm just reinstalling everything.

I just extracted Kali.exe and install.tar.gz from this file "DistroLauncher-Appx_1.13.1.0_x64.appx" found in "kali-linux.appx" which I've downloaded from MS Store.

joelrb commented 1 year ago

I can't repro anymore. It works now. I have no idea what happened.

Screenshot 2023-04-22 002213

benhillis commented 1 year ago

Glad it's resolved, if you hit this again please file a new issue. Thanks!