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

Follow

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

Comments

0 comments

Please sign in to leave a comment.