[How to] How to emulate existence of paging file inside a container.

Article ID: 5511 
Last Review: Oct,6 2008
Author: Kichigin Aleksey APPLIES TO:
  • Virtuozzo for Windows 3.5.1 SP1
  • Virtuozzo Containers for Windows 4.0

Symptoms

Sometimes it's necessary to emulate existence of paging file inside containers, for example some application requires presence of paging file.

Resolution

The following command creates corresponding value in container's registry which allows to emulate existence of paging file, note 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 4092 - min and max size of the paging file;

The command below removes 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 its own paging file by Virtuozzo design.
Keywords: swap paging file


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields