An RDP connection to a container gets logged off immediately after login.
The following error message may be found in Application log of the container:
The Windows logon process has failed to spawn a user application. Application name: . Command line parameters: C:\Windows\system32\userinit.exe.
The hardware node is based on Windows 2008 R1 OS.
The container is configured with insufficient resources, NUMPROC limit is getting hit:
C:\Windows\system32>vzlist 101 -o numproc,numproc.b NPROC NPROC.B 58 60
Increase the NUMPROC limit for the container:
vzctl set 101 --numproc 90 --save
In addition, verify that 'userinit' value is configured correctly in the registry, per the following article: