diff --git a/docs.it4i/barbora/visualization.md b/docs.it4i/barbora/visualization.md index 4031333b278194a4c4c93487c4eaf5cafc029c8d..b4b99ecaac9cc1948d14408322072c314740d928 100644 --- a/docs.it4i/barbora/visualization.md +++ b/docs.it4i/barbora/visualization.md @@ -1,6 +1,6 @@ # Visualization Servers -Remote visualization with [NICE DCV software][3] is availabe on two nodes. +Remote visualization with [VirtualGL][3] is availabe on two nodes. * 2 nodes * 64 cores in total @@ -47,4 +47,4 @@ Remote visualization with [NICE DCV software][3] is availabe on two nodes. [1]: ../general/shell-and-data-access.md#graphical-user-interface [2]: ../general/shell-and-data-access.md#vpn-access -[3]: ../software/viz/NICEDCVsoftware.md +[3]: ../software/viz/vgl.md diff --git a/docs.it4i/img/client.jpg b/docs.it4i/img/client.jpg new file mode 100755 index 0000000000000000000000000000000000000000..d36c1f9d9dc140ee5b899ee3fc01eebaaab9cb90 Binary files /dev/null and b/docs.it4i/img/client.jpg differ diff --git a/docs.it4i/img/desktop.ini b/docs.it4i/img/desktop.ini new file mode 100755 index 0000000000000000000000000000000000000000..a51683dae5158c401aab388ce7015ade0ac2a064 Binary files /dev/null and b/docs.it4i/img/desktop.ini differ diff --git a/docs.it4i/img/glxgears.jpg b/docs.it4i/img/glxgears.jpg new file mode 100755 index 0000000000000000000000000000000000000000..b8c8b8b42e2c730daba9bb7132cfafaac4ca715a Binary files /dev/null and b/docs.it4i/img/glxgears.jpg differ diff --git a/docs.it4i/img/job.jpg b/docs.it4i/img/job.jpg new file mode 100755 index 0000000000000000000000000000000000000000..0fa7f67f008bd5ae1432e00333208b055ace62c5 Binary files /dev/null and b/docs.it4i/img/job.jpg differ diff --git a/docs.it4i/img/ssh.jpg b/docs.it4i/img/ssh.jpg new file mode 100755 index 0000000000000000000000000000000000000000..ee3bfb22fce23afdc485fb14b6b4ebce7fe6744f Binary files /dev/null and b/docs.it4i/img/ssh.jpg differ diff --git a/docs.it4i/img/vnc.jpg b/docs.it4i/img/vnc.jpg new file mode 100755 index 0000000000000000000000000000000000000000..7e3fd8f2be0f6bce75e528bbc17e24045db3b62d Binary files /dev/null and b/docs.it4i/img/vnc.jpg differ diff --git a/docs.it4i/software/viz/vgl.md b/docs.it4i/software/viz/vgl.md new file mode 100644 index 0000000000000000000000000000000000000000..aedc56d59e28a9b3db953a2136cfac2f814cd296 --- /dev/null +++ b/docs.it4i/software/viz/vgl.md @@ -0,0 +1,111 @@ +# VirtualGL + +VirtualGL is an open source program that redirects the 3D rendering commands from Unix and Linux OpenGL applications to 3D accelerator hardware in a dedicated server and displays the rendered output interactively to a thin client located elsewhere on the network. + +See the documentation [here][a]. + +VirtualGL is available on Barbora and Salomon. + +## How to Use + +**Run VNC** + +* Local machine + +```console +root@toshiba:~# ssh -L 5999:localhost:5999 kru0052@login1.barbora.it4i.cz -X +``` + +* Server + +Read our documentation on [VNC server][1]. + +```console +Warning: No xauth data; using fake authentication data for X11 forwarding. +Last login: Tue Mar 3 14:20:18 2020 from vpn-kru0052.it4i.cz + ____ _ + | _ \ | | + | |_) | __ _ _ __| |__ ___ _ __ __ _ + | _ < / _` | '__| '_ \ / _ \| '__/ _` | + | |_) | (_| | | | |_) | (_) | | | (_| | + |____/ \__,_|_| |_.__/ \___/|_| \__,_| + + + ...running on Red Hat Enterprise Linux 7.x + +kru0052@login1:~$ vncserver :99 + +New 'login1.barbora.it4i.cz:99 (kru0052)' desktop is login1.barbora.it4i.cz:99 + +Starting applications specified in /home/kru0052/.vnc/xstartup +Log file is /home/kru0052/.vnc/login1.barbora.it4i.cz:99.log + +kru0052@login1:~$ +``` + +* Connect to a VNC server from a VNC client (local machine) + + + +!!! tip + To resize the window scale, use the `xrandr -s 1920x1200` command. + +**Run vglclient on the login server (use the terminal in the VNC window)** + +```console +kru0052@login1:~$ ml VirtualGL +kru0052@login1:~$ vglclient + +VirtualGL Client 64-bit v2.6.1 (Build 20200228) +Listening for unencrypted connections on port 4242 + +``` + + + +**Execute an interactive job on vizserv (use another terminal in the VNC window)** + +```console +kru0052@login1:~$ qsub -q qviz -I -A EASYBUILD -X +qsub: waiting for job 44781.isrv1 to start +qsub: job 44781.isrv1 ready + +kru0052@vizserv1:~$ +``` + + + +**New SSH connection on vizserv - elimination of the PBS setting (use another terminal in the VNC window)** + +```console +kru0052@login1:~$ ssh vizserv1 -X +Last login: Tue Mar 3 13:54:33 2020 from login1.barbora.it4i.cz +kru0052@vizserv1:~$ +``` + + + +**Run the graphical application** + +```console +kru0052@vizserv1:~$ vglrun /apps/easybuild/glxgears +[VGL] NOTICE: Automatically setting VGL_CLIENT environment variable to +[VGL] 10.32.2.1, the IP address of your SSH client. +libGL error: unable to load driver: swrast_dri.so +libGL error: failed to load driver: swrast +17128 frames in 5.0 seconds = 3425.573 FPS +17251 frames in 5.0 seconds = 3450.128 FPS +... +``` + + + +## Examples for Remote Visualization on Barbora Cluster + +<div align="center"> + <iframe width="854" height="480" src="https://www.youtube.com/embed/BArIbIC_-24"></iframe> +</div> + +[1]: ../../../general/accessing-the-clusters/graphical-user-interface + +[a]: https://www.virtualgl.org/ diff --git a/mkdocs.yml b/mkdocs.yml index d65c9179109de6a9d32b2e059437aa2b2216b253..7a4af4521d3b5cf2d8cb8c7f3a1f0e6fc01b4ce2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -209,6 +209,7 @@ nav: - ParaView: software/viz/paraview.md - In situ: software/viz/insitu.md - NICE DCV: software/viz/NICEDCVsoftware.md + - VirtualGL: software/viz/vgl.md - PBS Pro Documentation: pbspro.md extra: