Linux, Windows

Cifs cannot allocate memory (-12) producing Windows Srv Error 2017 ((12)Cannot allocate memory: file permissions deny server access:)

Note:

This problem can sometimes be resolved with restarting the srv process in Windows, you may need to restart the virtual machines own network as well. You can restart Windows’ srv process with:

net restart srv

After this you can either try and remount or a restart of the virtual machine to see if that solves your problem.

If this does not solve your problem then another blogger found a method for the more stubborn of computers here: Windows 7 Nonpaged Pool Srv Error 2017

Below is the quotation of the solution from the article. Please note that HKLM actually means HKEY_LOCAL_MACHINE.

Set the following registry key to ’1′:

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache

and set the following registry key to ’3′:

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

After making these changes and restarting, I haven’t seen this issue arise again. Fixed!