How do I make virtual desktop sessions persistent when using the Virtual Mode daemon?


By default, when a VNC Viewer user disconnects from the Virtual Mode daemon their virtual desktop session is lost. If a VNC Viewer reconnects using the same credentials, a new virtual desktop session is created; their previous session does not persist.

To change this and persist sessions, you need to enable the ConnectToExisting parameter in one of the Virtual Mode daemon's configuration files. For example, using /etc/vnc/config.d/vncserver-virtuald as shown in the below code snippet.

echo 'ConnectToExisting=1' | sudo tee -a /etc/vnc/config.d/vncserver-virtuald
sudo systemctl restart vncserver-virtuald
Was this article helpful?
1 out of 4 found this helpful



Please sign in to leave a comment.