WSL: Error: 0x8007000e Not enough memory resources are available to complete this operation.
- Your Windows build number:
Microsoft Windows [Version 10.0.19041.264]
- What you’re doing and what’s happening:
Setting of an existing WSL 1 distro to WSL 2. E.g: Ubuntu 20.04 :
wsl --set-version Ubuntu 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Not enough memory resources are available to complete this operation.
Or installing a new distro after setting the default version to 2 with wsl --set-default-version 2. E.g: Alpine WSL:
...
Verifying Hash: OK
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007000e
WslRegisterDistribution failed
Error: 0x8007000e Not enough memory resources are available to complete this operation.
Press any key to continue...
- What’s wrong / what should be happening instead:
Unable to use WSL 2 at all 😞. Error message:
Not enough memory resources are available to complete this operation.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 7
- Comments: 35 (1 by maintainers)
I found a solution. I manually created a file called .wslconfig in %userprofile% with this content:
and now it’s working 🎉
also having the same issue, host has 16GB, tried everything I found, and nothing helped… still “0x8007000e Not enough memory resources are available to complete this operation”.
It seems to me related to recent windows updates, since it used to work flawlessly (at least WSL 1 for me) about a month ago, and now it’s all broken. Docker also does not work, as it requires Hyper-V…
UPDATE. Just figured my issue out – service “Hyper-V Host Compute Service” was in disabled state, it seems to be the reason for “Hyper-V Virtual Machine Management” to fail with such a misleading error!
you need to
wsl.exe --shutdownbefore using the new values. All the distros are running in the same lightweight VM.@apa64 Did you get it fixed? What worked? I have tried everything in this thread (among others) with no luck.
@onomatopellan That’s already checked. The page size is 4.8GB This is a week old fresh install of Win 10 2004. WSL 2 was working for a a day or two I installed Windows. Then, I don’t know if some of the recent updates that took place two days are what caused the issue. Also, WSL 1 is working, Also my regular Hyper-V VMs start completely fine. And no they are not running when I try to start WSL 2