

I have tried this solution and this solution. Starting applications specified in /home/hc/.vnc/xstartup The second GPU is specified as: $ vglrun -display :0.I am running tightvnc on Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-1031-aws x86_64): $ vncserver :0 -geometry 1980x1080 The first GPU is specified as: $ vglrun -display :0.0 glxgears In order to use a GPU other than the default (for example, if the node has multiple GPUs), the user needs to specify its index. To use the GPU inside VNC, the user needs to run the application using the form: $ vglrun APP # chroot /cm/images/default-image systemctl enable rvice Make changes permanentĬopy the nf file back to the image to make sure parameters persists across reboots and enable systemd unit in the image: # scp node003:/etc/X11/nf /cm/images/default-image/etc/X11/ Start and enable the xinit service # systemctl enable rvice Press Ctrl-C to stop.Įrrors will be written in /var/log/Xorg.0.log file 9. If no errors occurred, the command above should stay running. The Section “Files” must be removed from the /etc/X11/nf file # sed -i -e '/Section "Files"/,/EndSection/d' /etc/X11/nf 8. Where PCI:0:7:0 is an address of the GPU acquired on the previous step. UUID : GPU-c621812a-c0e1-dfdd-bc4d-9c65264d6956Ĭreate an /etc/X11/nf file with the following command: # nvidia-xconfig -a -allow-empty-initial-configuration -busid PCI:0:7:0 -no-connected-monitor To do that, the following command can be executed on a node with an NVIDIA GPU: # module load shared cuda10.2/toolkitįetch information about the PCI address of the GPU: # nvidia-xconfig -query-gpu-info On a target node we need to generate a config for the nf file of the X server. | GPU GI CI PID Type Process name GPU Memory | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. Reboot the target node (the node which will host the X applications) and make sure GPU is visible: # module load shared cuda10.2/toolkit

#Tigervnc install ubuntu update
Install the cuda toolkit # yum install cuda10.2-toolkitįor Ubuntu 18: # apt update & apt install cuda10.2-toolkit 5.

Note: for RHEL8/Centos8 the VirtualGL repository must be configured first # wget \
#Tigervnc install ubuntu software
Install VirtualGL packagesįor the RHEL and CentOS distributions, update the software image with the following packages: # yum install \ Preparationĭefine image name for package installation and modifications: # export $IMAGE_PATH="/cm/images/default-image" 1. The display can then be seen on a VNC client somewhere else, such as Jupyter VNC session. The following steps can be followed to enable direct rendering from an x-client (glxgears or similar) running on a headless node, using VNC with the headless X-server display.
