Unless your GPU is attached to :1.0, then you should not pass that value to -display. I have to mention that, because that is the #1 misunderstanding among new VGL users. Most often, the 3D X server (the X server to which the GPU is attached) is listening on X display :0.0, which is the default value for VGL_DISPLAY or ‘vglrun -display’ (NOTE: ‘vglrun -display’ is just a shortcut to set the VGL_DISPLAY environment variable.) Most often, the first VNC instance is listening on X display :1.0, in which case that should be the value of DISPLAY, not VGL_DISPLAY. DISPLAY points to the 2D X server (the VNC display, in this case), and VGL_DISPLAY points to the 3D X server. Refer to figures and description in the user’s guide. As a general rule, if you are specifying a non-default value for VGL_DISPLAY or ‘vglrun -display’, then I will ask you to explain why that is not a mistake.
Also, unless you have taken steps to share the 3D X server connection from the host to the container, VGL won’t be able to work in the container. I have not had time to experiment with that and come up with an official procedure, but it is on my list of things to do. If someone wants to pay for my labor to do that, it will happen a lot sooner. > On Nov 22, 2019, at 11:00 PM, trumee <[email protected]> wrote: > > Following is the log for vglserver_config, > > > 1) Configure server for use with VirtualGL > 2) Unconfigure server for use with VirtualGL > X) Exit > > Choose: > 1 > > Restrict 3D X server access to vglusers group (recommended)? > [Y/n] > > > Restrict framebuffer device access to vglusers group (recommended)? > [Y/n] > > > Disable XTEST extension (recommended)? > [Y/n] > > ... Creating vglusers group ... > groupadd: group 'vglusers' already exists > Could not add vglusers group (probably because it already exists.) > ... Creating /etc/opt/VirtualGL/ ... > ... Granting read permission to /etc/opt/VirtualGL/ for vglusers group ... > ... Modifying /etc/security/console.perms to disable automatic permissions > for DRI devices ... > ... Creating /etc/modprobe.d/virtualgl.conf to set requested permissions for > /dev/nvidia* ... > ... Attempting to remove nvidia module from memory so device permissions > will be reloaded ... > rmmod: ERROR: Module nvidia is in use by: nvidia_uvm nvidia_modeset > ... Granting write permission to /dev/nvidia-uvm /dev/nvidia-uvm-tools > /dev/nvidia0 /dev/nvidiactl for vglusers group ... > chmod: changing permissions of '/dev/nvidia-uvm': Read-only file system > chmod: changing permissions of '/dev/nvidia-uvm-tools': Read-only file system > chmod: changing permissions of '/dev/nvidiactl': Read-only file system > chown: changing ownership of '/dev/nvidia-uvm': Read-only file system > chown: changing ownership of '/dev/nvidia-uvm-tools': Read-only file system > chown: changing ownership of '/dev/nvidiactl': Read-only file system > ... Granting write permission to /dev/dri/card0 for vglusers group ... > ... Modifying /etc/X11/xorg.conf.d/99-virtualgl-dri to enable DRI permissions > for vglusers group ... > ... Modifying /etc/X11/xorg.conf to enable DRI permissions > for vglusers group ... > ... Adding vglgenkey to /etc/gdm/Init/Default script ... > ... Creating /usr/share/gdm/greeter/autostart/virtualgl.desktop ... > ... Disabling XTEST extension in /etc/gdm/custom.conf ... > ... Setting default run level to 5 (enabling graphical login prompt) ... > ... Commenting out DisallowTCP line (if it exists) in /etc/gdm/custom.conf ... > > Done. You must restart the display manager for the changes to take effect. > > IMPORTANT NOTE: Your system uses modprobe.d to set device permissions. You > must execute rmmod nvidia with the display manager stopped in order for the > new device permission settings to become effective. > > -- > You received this message because you are subscribed to the Google Groups > "VirtualGL User Discussion/Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/virtualgl-users/57d6a194-fb38-46fc-b2b9-106db8ebefcd%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "VirtualGL User Discussion/Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/virtualgl-users/ED4F96BD-3E68-4BEE-8732-B6AC335E8B50%40virtualgl.org.
