Article ID: 2120, created on Aug 27, 2007, last review on Apr 25, 2014

  • Applies to:
  • Virtuozzo for Windows 3.5.1 SP1

Symptoms

Some VEs stop extremely slow.

Cause

The possible reason is terminal server registry settings set for the current VE.

"HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services"

KeepAliveEnable

KeepAliveInterval

Resolution

Remove the registry values above:

reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveEnable /f
reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveInterval /f
To remove such values automatically for all VEs C:\Program Files\SWSoft\Virtuozzo\bin\on_vps_startup.cmd  file should be edited. It’s necessary to add the following code almost to the very end of on_vps_startup.cmd  before goto quit_cmd string :

REM

REM    Deleting  "KeepAlive..." value  - causes a long delay on VPS stop

REM

reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveEnable /f

reg delete "HKLM\vz%VPSID%\MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v KeepAliveInterval /f


Note:
Please back up original on_vps_startup.cmd  file before doing any changes.

AdditionalInformation

Please see also VEs take quite much time for stopping

1348db476c8a5844ffbef8d503db9c15 965b49118115a610e93635d21c5694a8 d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF