18

I'm running a GUI application in a container in privileged mode on a MAX OS X host. I'be been successfully able to start the GUI in the container using this link: http://kartoza.com/en/blog/how-to-run-a-linux-gui-application-on-osx-using-docker/

Now within my GUI application, I'm trying to pop up another window and I get the following: Using Volk machine: avx_64_mmx_orc libGL error: failed to load driver: swrast

How do I go about solving this?

VarsMolta
  • 432
  • 2
  • 5
  • 13

5 Answers5

9

Had the same issue trying to forward GUI from Ubuntu Server to my Mac.

On Ubuntu, installing the swrast driver for OpenGL rendering solved the issue -

sudo apt-get install -y mesa-utils libgl1-mesa-glx
Bryan K
  • 437
  • 4
  • 15
Avi Avidan
  • 866
  • 8
  • 18
3

I'm not sure about Mac OSX as host but I've had the same error message. Here are the two steps that worked for me on Ubuntu 16.04 LTS:

The essential part aside from the driver was actually the --privileged parameter.

That fixed the problem on my Ubuntu. Hope it helps.

Hendrik Wiese
  • 2,010
  • 3
  • 22
  • 49
  • 1
    Thank you, sir. That solved for me. My host is a MX Linux 19 (based on Debian buster) and my container is an Ubuntu 20.04 Focal. The catch for me was to install exactly the same driver version in the container. I've had to use this [advanced search](https://www.nvidia.com/Download/Find.aspx?lang=en-us). – Ícaro Pires Apr 29 '21 at 01:37
0

One of my colleagues had the same issue on Redhat 8 and solved it by installing mesa-dri-drivers.x86_64.

kingsjester
  • 94
  • 1
  • 12
0

I experienced the same issue after an upgrade from Ubuntu Hirsute to Kinetic Kudo but all the above methods didnt work despite the drivers being accurate.

The issue was resolved by renaming the folder /usr/local/lib/x86_64-linux-gnu to /usr/local/lib/x86_64-linux-gnu.bak since it was containing the driver files libdrm_intel.so, libdrm_nouveau.so and other graphic driver files.

james.s
  • 33
  • 5
0

If anyone is here because they cant get flutter to work, its probably because of the snap install.

Install it manually from the tarball or clone it from github

here's the documentation to install it manually

or look at my post here