WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Insufficient system resources exist to complete the requested service.

Open ioweb-gr opened this issue 6 years ago • 147 comments

Please fill out the below information:

  • Your Windows build number: (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.19041.264]

  • What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)

Trying to execute kali linux in WSL2 results into an error

  • What's wrong / what should be happening instead:

The error is Insufficient system resources exist to complete the requested service. however the instance should run correctly. Rebooting solves the issue

Restarting the HV Host Service seems to work too.

ioweb-gr avatar May 19 '20 12:05 ioweb-gr

In explorer, type in address bar: \\wsl$ then enter. It will show linux path. Then you can click the linux symbol in navigation pane to list the linux path.

I am using Insider 19624.1000. In previous build, there isn't any error like that. But in the build I am using right now, it will show Insufficient system resources exist to complete the requested service when you click the linux symbol in navigation pane without accessing \\wsl$ first.

rescenic avatar May 19 '20 15:05 rescenic

I can confirm this issue with Debian (I don't think it matters what flavor of Linux you have). Same version as the one described in the issue. The only difference is that the only way I can fix it is rebooting or logging out and then back in. Restarting the HV Host Service does not work for me.

Edit: logging out and back in doesn't always work either.

jozsefsallai avatar May 28 '20 20:05 jozsefsallai

What's your CPU and how much RAM do you have?

onomatopellan avatar May 28 '20 20:05 onomatopellan

For me it was on Ryzen 1700x and 32Gb Ram

ioweb-gr avatar May 28 '20 21:05 ioweb-gr

Then 16 threads and 32Gb of RAM. This issue #5240 was very similar. Try creating a .wslconfig file and reduce the numbers of processors and RAM used for the WSL2 VM.

onomatopellan avatar May 28 '20 21:05 onomatopellan

I guess the main difference is that for me everything works normally ok with the default settings. It was only a temporary issue which got fixed by restarting the service so I can live without cutting down the vm resources but I thought it would be important to report

ioweb-gr avatar May 28 '20 21:05 ioweb-gr

What's your CPU and how much RAM do you have?

My specs aren't that great, but most of the time I have no issues with WSL2. Right now I booted into my computer and it didn't work. I logged out and then back in and everything worked fine.

  • CPU: AMD Ryzen 7 2700U Quad-Core
  • RAM: 8 GB (1 GB is allocated for the integrated GPU)

And I agree with @ioweb-gr. It doesn't always happen. For me, most of the time it works fine. And like I said, for some reason, restarting the service doesn't work for me though, so what I usually do is start WSL2 as soon as I boot into my computer and if it doesn't work, just log in again or reboot until it works. Then I don't close it 😅

jozsefsallai avatar May 29 '20 10:05 jozsefsallai

How about the Virtual memory? Do you let Windows to manage the paging file size automatically?

onomatopellan avatar May 29 '20 14:05 onomatopellan

Yeah, that option is enabled!

jozsefsallai avatar May 29 '20 14:05 jozsefsallai

I'm out of ideas. But it's curious that both CPUs are AMD.

onomatopellan avatar May 29 '20 15:05 onomatopellan

I had the same problem, using WLS 2 on a notebook with AMD processor.

  • CPU: AMD Ryzen 7 3700U Quad-Core
  • RAM: 8 GB (2 GB are allocated for the integrated GPU)

gabriellovate avatar May 30 '20 02:05 gabriellovate

I wonder if it has anything to do with the fact that I added \\wsl$\Debian to my Quick Access menu. When I open the File Explorer shortly after logging in, the Debian entry doesn't initially show up in the Quick Access menu (only after a while).

@rescenic mentioned that they can reproduce this issue when they try to access the VM's folder directly, without entering \\wsl$ first. Maybe this happens when the system tries to load the folder in the Quick Access menu too?

I've deleted the entry from the menu now and I'll let you know how it goes!

jozsefsallai avatar May 30 '20 08:05 jozsefsallai

Same issue once a week or so, ryzen 7 2700x and 16gb RAM. Only way i've found to fix is a windows Restart

elbro avatar Jun 02 '20 09:06 elbro

I haven't had this error since I removed the Quick Access entry (granted, it's only been 3 days), however, I did see a different error yesterday (which was also fixed by logging out and in): wsl It's weird that pretty much everyone who is facing this issue has a Ryzen CPU.

Edit: the original issue happened again.

jozsefsallai avatar Jun 02 '20 09:06 jozsefsallai

Same issue - 1950X Threadripper / 32gb of RAM.

GiorgioG avatar Jun 02 '20 10:06 GiorgioG

The same for me - Ryzen 5 mobile second gen / 8GB ram + virtual memory

mbledkowski avatar Jun 02 '20 13:06 mbledkowski

Same issue on 2700x 16gB of RAM

dmayan-ss avatar Jun 05 '20 15:06 dmayan-ss

Do you all have Fast Startup enabled? Try turning it off, reboot Windows and see if the issue still happens.

onomatopellan avatar Jun 06 '20 13:06 onomatopellan

Also have this issue, R5 1600 + 16GB RAM

icorbrey avatar Jun 08 '20 02:06 icorbrey

Same,

Ryzen 1600+8GB RAM

NogrTL avatar Jun 09 '20 08:06 NogrTL