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