Skip to content

pressure-vessel: NVIDIA unusable when ld.so.cache resolves libGLX_nvidia.so.0 through /etc (ALT Linux) #870

Closed as duplicate

Description

@AkLogrus

System Information

  • OS: ALT Linux 11.4 (nemorosa), kernel 6.18.55-6.18-alt1
  • GPU: NVIDIA GeForce RTX 3060 Ti (GA104), driver 595.99.02 (open kernel modules)
  • Steam client: 1794424036 (updated from 1792618285 on 2026-11-12 18:08)
  • Steam Linux Runtime sniper: 3.0.20261021.266025
  • pressure-vessel: 0.20261007.0
  • Session: KDE Plasma 6 Wayland, Xwayland :0

Symptoms

Games launched through Steam Linux Runtime fall back to software rendering.
vulkaninfo inside the container reports only llvmpipe:

deviceName = llvmpipe (LLVM 21.1.5, 256 bits)
driverName = llvmpipe

Steam client's own GPU probe (GpuTopology) went from reporting
NvidiaProprietary 595.99.2 to MesaLLVMPipe right after the client update,
although the driver had not changed. Steam logs show:

glx: failed to create dri3 screen
failed to load driver: nvidia-drm

The host itself is fine: nvidia-smi works, glxinfo reports
OpenGL 4.6.0 NVIDIA 595.99.02, and under load the GPU reaches 1905 MHz,
P0, PCIe Gen4 x16 with no throttle reasons.

Root cause

ALT exposes the NVIDIA userspace libraries through a symlinked directory
/etc/libnvidiacurrent -> /usr/lib64/nvidia_595.99.02, so the host
ld.so.cache records:

libGLX_nvidia.so.0 => /etc/libnvidiacurrent/libGLX_nvidia.so.0

libcapsule creates the container override as a symlink to that path:

/usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/libGLX_nvidia.so.0
    -> /etc/libnvidiacurrent/libGLX_nvidia.so.595.99.02

but /etc belongs to the container and host /etc is never mounted there —
pressure-vessel confirms this itself:

W: Not sharing path PRESSURE_VESSEL_FILESYSTEMS_RO="...:/etc/libnvidiacurrent:..."
   with container because "/etc" is reserved by the container framework

The symlink therefore dangles and the Vulkan loader drops the NVIDIA ICD:

ERROR: /usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/libGLX_nvidia.so.0:
       cannot open shared object file: No such file or directory
ERROR: loader_icd_scan: Failed loading library associated with ICD JSON
       /usr/lib/pressure-vessel/overrides/lib/x86_64-linux-gnu/libGLX_nvidia.so.0.
       Ignoring this JSON

This matches the warning in doc/steamlinuxruntime-known-issues.md that symbolic
links crossing between directories cause trouble for container frameworks.

Proof that only the path is wrong

Giving the same container the real library location works:

$ cat /tmp/nv.json
{"file_format_version":"1.0.1","ICD":{"library_path":"/run/host/usr/lib64/nvidia_595.99.02/libGLX_nvidia.so.595.99.02","api_version":"1.4.329"}}

$ _v2-entry-point --verb=waitforexitandrun -- sh -c 'VK_DRIVER_FILES=/tmp/nv.json vkcube --c 3'
Selected GPU 0: NVIDIA GeForce RTX 3060 Ti, type: DiscreteGpu

Reproduction

~/.steam/steam/steamapps/common/SteamLinuxRuntime_sniper/_v2-entry-point \
    --verb=waitforexitandrun -- vulkaninfo --summary | grep -E 'deviceName|driverName'

Possible fixes

  1. When the captured library path resolves inside a directory that will not be
    mounted into the container (e.g. /etc), resolve it further with realpath()
    so the override points into the real location under /usr.
  2. Or build the override as a relative symlink that stays inside a mounted
    directory (nvidia_<ver>/libGLX_nvidia.so.0).
  3. Or copy the library into the overrides directory instead of symlinking to an
    unreachable host path.
  4. Or allow an explicit opt-in to share additional host directories read-only.

Current workaround

Registering the real versioned directories in ld.so.conf.d and making the glvnd
entry points relative symlinks into nvidia_<ver>/ fixes it:

# /etc/ld.so.conf.d/nvidia.conf
/usr/lib64/nvidia_595.99.02
/usr/lib/nvidia_595.99.02
ln -sfn nvidia_595.99.02/libGLX_nvidia.so.0 /usr/lib64/libGLX_nvidia.so.0
ldconfig

After that the cache resolves to /usr/lib64/nvidia_595.99.02/libGLX_nvidia.so.0,
which is visible in the container as /run/host/usr/lib64/..., and games run on
the GPU again (verified).

Activity

  1. kisak-valve commented on Nov 14, 2026

    @kisak-valve
    Member

    Hello @AkLogrus, this issue is already being tracked at #868. Closing as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions