VirtualGL: Difference between revisions

From Leo's Notes
This page was last edited on 11 February 2021, at 19:23.
mNo edit summary
Line 2: Line 2:


==Installation==
==Installation==
Download the RPM packages from VirtualGL's repository (on SourceForge) and install it. You may then use the included helper script at <code>/opt/VirtualGL/bin/vglserver_config</code> to set up your system. The script writes to various places., including <code>/etc/security/console.perms</code>, <code>/etc/modprobe.d/virtualgl.conf</code>, <code>/etc/X11/xorg.conf.d/99-virtualgl-dri</code>.
<br />


#Download the .rpm packages from VirtualGL's repository (on SourceForge) and install it.
#I had issues with G
#Run the configuration helper script at <code>/opt/VirtualGL/bin/vglserver_config</code>. You will be asked some questions:
#DM working with VirtualGL. Install LightDM and configure the seats to generate a key. {{Highlight
#*If using VNC with TurboVNC or TigerVNC, do not disable XTEST extension
#*You may restrict certain users access to the <code>vglusers</code> group when prompted.
#*The script writes to various places., including <code>/etc/security/console.perms</code>, <code>/etc/modprobe.d/virtualgl.conf</code>, <code>/etc/X11/xorg.conf.d/99-virtualgl-dri</code>
#I had issues with GDM working with VirtualGL. Install LightDM and configure the seats to generate a key. {{Highlight
| code = [Seat:seat0]
| code = [Seat:seat0]
display-setup-script=/usr/bin/vglgenkey
display-setup-script=/usr/bin/vglgenkey

Revision as of 19:23, 11 February 2021


Installation

Download the RPM packages from VirtualGL's repository (on SourceForge) and install it. You may then use the included helper script at /opt/VirtualGL/bin/vglserver_config to set up your system. The script writes to various places., including /etc/security/console.perms, /etc/modprobe.d/virtualgl.conf, /etc/X11/xorg.conf.d/99-virtualgl-dri.

  1. I had issues with G
  2. DM working with VirtualGL. Install LightDM and configure the seats to generate a key.
    [Seat:seat0]
    display-setup-script=/usr/bin/vglgenkey
    
  3. After restarting your login manager, verify that /etc/opt/VirtualGL/ has a key file.

If you need to tweak xorg.conf, you may generate one using Nvidia's nvidia-xconfig utility. You may wish to specify the device the screen is to use by looking up the PCI bus ID and passing it as an argument. Eg:

# nvidia-xconfig --use-display-device=none --busid="PCI:6:0:0"


Usage

The idea with VirtualGL is that the program you wish to have GPU acceleration renders locally (ie. the remote host that's running the login manager) and VirtualGL then copies the framebuffer back to you. As a result, anything you do run with VirtualGL can appear on the local display which could be a security risk for workstations (such as in a lab setting).

To run a specific application with VirtualGL, use the vglrun command. To help debug issues, use the +v flag to enable verbose logging.

A few environment variables you should be aware of:

  • VGL_DISPLAY should point to the local display with the login manager. (eg. :0)
  • DISPLAY or the -display option should be set to the target display (eg. :1.0, or whatever your display is in a VNC session)
  • VGL_VERBOSE enables debugging
  • VGL_LOGO will print 'VGL' on the window to show that it's rendering with VirtualGL.