netbrain / zwift

Easily zwift on linux
The Unlicense
265 stars 28 forks source link

OpenGL error on nvidia #45

Closed zemu-unile closed 10 months ago

zemu-unile commented 11 months ago

Zwift did not open after running the zwift script. The container was properly running.

When manually starting Zwift inside the container, there was the following error:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext

Changing VGA_DEVICE_FLAG="--gpus all" to VGA_DEVICE_FLAG="--device nvidia.com/gpu=all" did fix the issue for me. I suspect there were some changes in the nvidia-container-toolit. This fix might require generating a CDI specification as shown here https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/1.14.3/cdi-support.html.

nvidia-container-toolkit: 1.14.3 podman: 4.7.2

netbrain commented 11 months ago

might have been related to #44