K.S. Bhaskar via plug on 21 May 2022 12:43:37 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] OpenGL over ssh


Caveat: I have never tried something like this. Might it be an option to run Matlab on a virtual machine in the cluster and use SPICE for the display?

Regards
– Bhaskar

On Fri, May 20, 2022 at 10:03 AM Walt Mankowski via plug <plug@lists.phillylinux.org> wrote:
Hi all,

I'm wondering if anyone has any tips on running OpenGL over ssh. At
work I've got a Linux workstation running Ubuntu 20.04.4. We've also
got a Linux cluster running CentOS.

There are times when it would be useful to run an app on the cluster
that uses OpenGL. The most common one is Matlab. It prints out some
warnings but basically runs well enough for what I need to do. But
we've also got an internal app that won't run at all without OpenGL.

I've confirmed that OpenGL is working OK on my workstation. glxgears
works fine, and glxinfo prints out a bunch of info. I naively thought
that all I needed was an ssh tunnel, but it turns out that doesn't
work. When I `ssh -Y` into the cluster and run glxinfo, it says

$ glxinfo
name of display: 10.20.180.123:14.0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  55
  Current serial number in output stream:  56

I got similar results when I tried ssh'ing to the cluster from my Mac
using Xquartz.

Afterwards I found a lot of reports online about this being very
difficult to get to work due to things like OpenGL expecting shared
memory buffers.

I'm wondering if anyone on the list has managed to get remote OpenGl
working. If so, please recommend any settings and/or apps I should
look into.

Thanks!

Walt
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug