Ceci est une ancienne révision du document !
Remote Visualization
Using 3D hardware acceleration for remote visualization
Remote Visualization is the process of delegating the actual display (2d/3d) computations to a remote system while displaying the result locally. It allows light clients without graphic cards to use remote dedicated ones to perform advanced graphic rendering.
Remote visualization at the Mesocentre
Currently, the Mesocentre provides provisional remote visualization facilities on host mesocluster2.univ-fcomte.fr. These facilities are based on two open-source projects VirtualGL and TurboVNC using the 3D hardware acceleration support provided by Tesla nodes.
ssh for password-less (public-key based) authentication and to set a VNC access password using thevncpassword command.
1. Download and Install TurboVNC on your machine
2. connect to the dedicated login node: mesocluster2.univ-fcomte.fr
user@PC:~ > ssh user@mesocluster2.univ-fcomte.fr
3. setup vncpassword: this password is unrelated to the one used for your Mesocentre account. This VNC password will be required to connect to the vnc server.
user@mesocluster2:~ > module load turbovnc user@mesocluster2:~ > vncpasswd
and follow the instructions.
4. setup ssh password-less authentication
user@mesocluster2:~ > ssh-keygen -t rsa user@mesocluster2:~ > cat .ssh/id_rsa.pub >> .ssh/authorized_keys user@mesocluster2:~ > chmod 600 ~/.ssh/authorized_keys ~/.ssh/id_rsa ~/.ssh/id_rsa.pub
and follow the instructions.
X11 Image Transport ("raw mode")
- Recommended mode in low bandwidth/high latency networks
- Does not require an X-server running on the client PC
- Requires installation of TurboVNC on the client PC
Howto:
1. Login to the dedicated node (mesocluster2) using ssh:
ssh user@mesocluster2.univ-fcomte.fr
2. From the login node start a VNC server:
user@mesocomte2:~ > module load turbovnc user@mesocomte2:~ > vncserver
If all is fine, you will see an output like this:
New 'X' desktop is mesocomte2:display
Where :display is the display number to use by vncviewer
e.g :1 or :2 and so on.
3. From your PC start VNC client and connect to the login node using the Display id (seeabove)
user@PC:~ > /opt/TurboVNC/bin/vncviewer mesocluster2.univ-fcomte.fr:display
4. Within the GNOME Desktop open a new terminal window and source any necessary application environment module needed for the corresponding OpenGL application :
user@mesocomte2:~ > module load blender
AND then submit your application to the the visualization server:
user@mesocomte2:~ > 3dsub blender
5. When your work session ends, first logout from your Turbo VNCviewer GNOME desktop session (Computer → System → Logout),then kill the vncserver :
user@mesocomte2:~ > vncserver -kill :4
6. You are done!
FAQ
Use: vncserver -list. e.g
user@mesocomte2:~ > vncserver -list TurboVNC server sessions: X DISPLAY # PROCESS ID :9 5424
Use: vncserver -kill :display Where display is the number display. e.g
user@mesocomte2:~ > vncserver -kill :4
hit F8 in the vncviewer window.
use 3dsub -l h_vmem=value. Where value is the amount of memory in G.
Example:
user@mesocomte2:~ > 3dsub -l h_vmem=2.5G blender