wiki:vnc3d

Version 9 (modified by Sonja Habbinga, 8 years ago) ( diff )

--

Graphical Login (VNC)

The availability of remote visualization, either implemented within visualization applications themselves, or through server software, eliminates the need for off-site file transfers and allows HPC users to run a broad range of visualization tools in-place on the supercomputer where the data resides.


Remote Visualization - Technical Details

https://upload.wikimedia.org/wikipedia/commons/thumb/6/67/X11transport.png/600px-X11transport.png

The availability of remote visualization, either implemented within visualization applications themselves, or through server software, eliminates the need for off-site file transfers and allows HPC users to run a broad range of visualization tools in-place on the supercomputer where the data resides.

more...

Remote rendering using VNC

Remote rendering is also possible using the Virtual Network Computing (VNC, e.g. TigerVNC or TurboVNC) package. VNC follows a very general approach, where a remote desktop on one node of the remote cluster is opened. On the users workstation only a lightwise VNC client (viewer) has to be installed. The image of the remote desktop is send from the cluster to the viewer on the fly. The user can work with this desktop in the usual way, just by interacting with keyboard and mouse. This is a very convenient way to work on a remote machine, not only for data visualisation. Whenever an OpenGL capable visualisation software, like VisIt, is started on the remote node, OpenGL commands must be redirected to the GPU of this node with the help of VirtualGL (command: vglrun). This way the hardware accelerated rendering capabilities of a cluster node can be exploit for remote rendering into a VNC window. A general overview about this topic is given here.

The following steps are necessary to start a VNC session for remote rendering with VisIt on JURECA. Please notice that the VNC server is only availble on vis nodes!

1. Create a VNC password and a startup script on JURECA

This step is a prerequisite for using VNC and has only to be done once. The aim of this step is to create a VNC password and a very small (one line) VNC startup script to start the Xfce desktop environment. As all VNC related commands are ony available on a vis node, one has to allocate a vis node first and then start an interactive shell and execute the necessary commands there. It works as follows:

salloc -N 1 -p vis --gres=gpu:2
srun --cpu_bind=none -n 1 --pty /bin/bash -i
mkdir .vnc # if not already exist
cd .vnc
vncpasswd # now type in your vnc password
echo "exec startxfce4" > xstartup 
exit # exit task
exit # exit job

2. Login to JURECA and start the VNC server on a vis node

Open an ssh shell on a login node of JURECA the usual way. To allocate a vis node with 512 GByte main memory for one hour, use:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

Alternatively you may want to allocate a vis node with 1024 GByte main memory by:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

The default wallclock time is 1 hour, the maximum is 24 hours.

In case the VNC server could successfully be started, you will get an output like:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

As you have to setup an ssh tunnel (with the correct network port) to the allocated node in step 3, two important informations have to be taken from this output:

  1. The allocated node is jrc1391
  2. The number of the VNC display is :1

It is very important to know that the network port of the VNC server depends on this display number. The actual port number is 5900+display_number, therefore port 5901 must be tunneled in this case.

3. Open an ssh tunnel

Now you have to open an ssh tunnel from your workstation to this node. The steps to be done depend strongly on your operating system and your setup.
Linux:
If your operating system is Linux, just use:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

Windows:
In case your operating system is Windows, the setup of the tunnel depends on your ssh client. Here a short overview on how-to setup a tunnel with PuTTY is given. It is assumed that PuTTY is already configured in a way that a general ssh connection to JURECA is possible, that means that host name, username and the private ssh key are correctly set. To establish the ssh tunnel, enter the "SSH-->tunnels" tab in the PuTTY configuration window. You have to enter the source port (in this case 5901) and the destination (in this case jrc1391:5901) and than press add:
No image "putty2.jpg" attached to vnc3d
After pressing add, the tunnel should appear in the list of forwarded ports and you can establish the tunnel by pressing the open button:
No image "putty3.jpg" attached to vnc3d

4. Connect to the VNC server

If you are using Linux, a vncviewer typically is already part of the distribution or can be installed from a repository. For Windows, a VNC viewer can be downloaded for example here.
Start your local VNC client and connect to localhost:1, e.g.:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

After typing in your vnc password, you will have access to the remote desktop.


any feedback welcomed - h.zilken@…, j.goebbert@…

Attachments (9)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.