OpenGL in Linux guest OS when hosted on Mac

Discussion in 'Linux Virtual Machine' started by btschumy, Aug 31, 2021.

  1. btschumy

    btschumy Bit poster

    Messages:
    2
    I have written an application in Unity that I would like to test on Linux using Parallels on Mac. I installed Mint but when I tried to run the app it fails, being unable to locate the OpenGL libraries.

    I did find this in the Knowledge Base from 2018 that indicates there is no OpenGL support in macOS and Linux virtual machines: https://kb.parallels.com/124138

    Can anyone confirm if this is still true?
     
  2. (GalaxyMaster)

    (GalaxyMaster) Hunter

    Messages:
    119
    OpenGL 1.3 seems to work fine, however 1.4 is a bummer -- there is a bug inside libEGL provided by Parallels:
    Code:
    Core was generated by `eglinfo'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  0x0000000000000008 in ?? ()
    (gdb) bt
    #0  0x0000000000000008 in ?? ()
    #1  0x00007f581ec8522a in PrlDisplay::Cleanup(PRLGL_DISPLAY) () from /usr/lib/libPrlDRI.so.1
    #2  0x00007f581f0d55df in ?? () from /usr/lib/libEGL.so.1
    #3  0x00007f581ef40a8e in __cxa_finalize () from /usr/lib/libc.so.6
    #4  0x00007f581f0d0db3 in ?? () from /usr/lib/libEGL.so.1
    #5  0x00007fff344c5970 in ?? ()
    #6  0x00007f581f3091a4 in _dl_fini () from /lib64/ld-linux-x86-64.so.2
    Backtrace stopped: frame did not save the PC
    
     
  3. (GalaxyMaster)

    (GalaxyMaster) Hunter

    Messages:
    119
    OK, I worded it poorly, I am afraid. Parallels Desktop supports OpenGL 2.1 inside Linux guests (in comparison to OpenGL 3.* for Windows guests). It crashes when it comes to EGL 1.4. All in all, it seems to be related to poor development support for the Linux guest tools and libraries and unwillingness to open source the guest stuff to get it moving, I think. In other words, the company does not really care about Linux share of their customer base, hence does not allocate any resources to develop in that area.
     
  4. (GalaxyMaster)

    (GalaxyMaster) Hunter

    Messages:
    119
  5. btschumy

    btschumy Bit poster

    Messages:
    2
    Lovely, thanks.
     
  6. MarkC9

    MarkC9 Bit poster

    Messages:
    4
    Parallels 19 supports OpenGL 4 on Ubuntu 22.04 guest:

    OpenGL version string: 4.0 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1

    My OpenGL 3.3 app is running though the framebuffer claims to be sRGB but, even with GL_FRAMEBUFFER_SRGB enabled, the fragment shader outputs are not being encoded to sRGB.
     

Share This Page