Article ID: 5511, created on Jul 31, 2008, last review on Jun 17, 2016

  • Applies to:
  • Virtuozzo containers for Windows

Symptoms

Sometimes it is necessary to emulate the existence of a paging file inside containers; for example, some applications require the presence of a paging file.

Resolution

The following command creates a corresponding value in the container's registry that allows you to emulate the existence of a paging file. Note that this command should be run inside the container:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v PagingFiles /t REG_MULTI_SZ /d "C:\pagefile.sys 2046 4092"

(where 2046 and 4092 are the min and max size of the paging file)

The value is removed automatically on CT restart; alternatively, you can use the command below to remove this registry value:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v PagingFiles /t REG_MULTI_SZ /d ""

Additional Information

Note: Containers don't have their own paging files by Virtuozzo design.

Search Words

windows

pagefile

965b49118115a610e93635d21c5694a8 d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF