SymptomsWhen trying to connect to a container using RDP, the connection is dropped.
At the same time, the container can be pinged and port 3389 can be accessed via telnet without any issues.
CauseMost likely, the maximum allowed sessions limit for the container has been reached:
Increase the number of allowed sessions for the container:
vzctl set CTID --save --numsessions LIMIT
If it is not possible to increase the number of sessions because the container uses Terminal Services mode and requires more CALs, it is possible to simply disconnect some sessions:
Show\hide real life example: