Continuing where we left off on the discussion forums
(
https://sourceforge.net/p/virtualgl/discussion/401860/thread/32008777/?limit=25)
...
As mentioned in the User's Guide:
https://cdn.rawgit.com/VirtualGL/virtualgl/master/doc/index.html#hd006002
(under "Sanity Check"), you can use glxinfo to verify whether OpenGL is
working on the 3D X server. glxinfo works just as well on headless X
servers, since the program isn't actually displaying anything.
You can check whether the X server is running by logging into the Docker
container interactively and doing `ps -e | grep X`. If it isn't
running, then look at /var/log/Xorg.0.log, which will contain any error
messages generated during X startup.
Ubuntu 14.04 doesn't suffer from the GDM bug, because Ubuntu uses
LightDM, so you should be OK there.
For a Docker container, which is inherently a single-user environment,
you probably want to configure 3D X server access using
vglserver_config +s +f +t
This will open up 3D X server access to all users of the machine, thus
avoiding the hassle of restricting access to the vglusers group (which
would require adding the Docker root user to that group.)
If you are only running one TurboVNC Server instance, then passing :1 to
vncserver is innocuous. But if you tried to do that twice, it would
fail the second time. It would also fail if, for whatever reason,
something else was using port 5901 or if a previous instance did not
shut down properly.
On 11/10/17 8:29 AM, Joscha Knobloch wrote:
> Hey everyone,
>
> i think i need a little bit of help configuring virtualGl and xorg.
>
> In my Setup i have a PC with a Nvidia-GPU. On The Debian9 Hostsystem i
> have installed docker, nvidia-docker and the latest nvidia-driver.
>
> I have build a docker-container that should later run a TurboVNC-server
> using VirtualGL in split-rendering-mode with the GPU.
>
> The GPU is shown in the container. This is the Output of lspci:
> /root@d4e2e94fa0b7:/# lspci
> (rev a1)/
>
>
> And this is the Output of nvidia-smi:
>
> /root@d4e2e94fa0b7:/# nvidia-smi
> Fri Nov 10 14:02:45 2017
> +-----------------------------------------------------------------------------+
> | NVIDIA-SMI 384.90 Driver Version:
> 384.90 |
> |-------------------------------+----------------------+----------------------+
> | GPU Name Persistence-M| Bus-Id Disp.A | Volatile
> Uncorr. ECC |
> | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util
> Compute M. |
> |===============================+======================+======================|
> | 0 GeForce GT 710 Off | 00000000:01:00.0 N/A
> | N/A |
> | 50% 42C P8 N/A / N/A | 62MiB / 980MiB | N/A
> Default |
> +-------------------------------+----------------------+----------------------+
>
>
> +-----------------------------------------------------------------------------+
> | Processes: GPU
> Memory |
> | GPU PID Type Process name
> Usage |
> |=============================================================================|
> | 0 Not
> Supported |
> +-----------------------------------------------------------------------------+/
>
>
> I can start up the VNC-server with "/opt/Turbovnc/bin/vncserver :1" This
> works and i con connect to it. Running "vglrun glxgears within the
> VNC-session unfortunatly returns:
> /[VGL] ERROR: could not open display :0./
>
>
>
> To configure xorg i used nvidia-xconfig and vglserver_config. My
> xorg.conf now looks like this:
> (unfortunatly i was not able to get nvidia-xconfig inside of the
> container so i ran it on the host-system and copyed it into the
> container after changing the BusID.)
> /root@d4e2e94fa0b7:/# cat /etc/X11/xorg.conf
> EndSection/
>
>
>
> I have to admit. I am kind of clueless.
> This [Page](
https://virtualgl.org/Documentation/HeadlessNV) suggests
> installing virtualGL after the fact. I am trying this now but i will
> have to rebuild the docker-image for that, which can take a while.
>
>
>
> I hope you can point my in the right direction.
>
> Best Regards
> joscha Knobloch
>
> *Gesendet:* Freitag, 3. November 2017 19:43:14
> *An:*
virtual...@googlegroups.com
> *Betreff:* Re: AW: [VirtualGL-Users] Turbovnc and VirtualGL inside of a
>
https://groups.google.com/d/msgid/virtualgl-users/cf7aff4ce7924c0eae52f6678e6309db%40brm.de
> <
https://groups.google.com/d/msgid/virtualgl-users/cf7aff4ce7924c0eae52f6678e6309db%40brm.de?utm_medium=email&utm_source=footer>.