Guys, I have been fighting with this problem for 7-8 days now, while studying all the Incus/LXD forum threads and trying various things.
Basically, this problem is completely crazy. I have the same version of NVIDIA-drivers (580.95.05
) on both
- The host (Gentoo Linux - 6.1.140)
- The container (Arch Linux)
What happens is, when I have the drivers installed only on the host and not in the container, some 3D acceleration works in the container (like glxinfo and glxgears, but not vulkaninfo).
But when I install the same version of NVIDIA drivers (from the same file, I literally fetched it from my local host’s Gentoo cache), glxinfo and glxhears stop working, zero acceleration. Just 2D graphics.
Bah, even when I remove some file that is part of the drivers (/usr/lib/libGLX_nvidia.so or similar) from container, glxinfo and glxgears work again.
Generic 2D GUI apps like Discord or Firefox work always, doesn’t matter which option I use.
Do you have any idea what could be wrong here, guys? I am really tired to the point of dying here.
Here are my configs:
architecture: x86_64
config:
image.architecture: amd64
image.description: Archlinux current amd64 (20251026_07:35)
image.os: Archlinux
image.release: current
image.requirements.secureboot: "false"
image.serial: "20251026_07:35"
image.type: squashfs
image.variant: default
volatile.base_image: 4911c64cd3c0b59dc2f00f0b40252788a984ac49618d21620af75364151c114a
volatile.cloud-init.instance-id: 78672fd4-8373-42bc-aa50-124d50b68509
volatile.eth0.hwaddr: 10:66:6a:9c:12:36
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000},{"Isuid":true,"Isgid":true,"Hostid":1000,"Nsid":1000,"Maprange":1},{"Isuid":true,"Isgid":false,"Hostid":1001001,"Nsid":1001,"Maprange":64535},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000},{"Isuid":false,"Isgid":true,"Hostid":1001001,"Nsid":1001,"Maprange":64535}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000},{"Isuid":true,"Isgid":true,"Hostid":1000,"Nsid":1000,"Maprange":1},{"Isuid":true,"Isgid":false,"Hostid":1001001,"Nsid":1001,"Maprange":64535},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000},{"Isuid":false,"Isgid":true,"Hostid":1001001,"Nsid":1001,"Maprange":64535}]'
volatile.last_state.idmap: '[]'
volatile.last_state.power: STOPPED
volatile.last_state.ready: "false"
volatile.uuid: d276ec0e-2e62-4e2c-805a-59e76788e526
volatile.uuid.generation: d276ec0e-2e62-4e2c-805a-59e76788e526
devices: {}
ephemeral: false
profiles:
- default
- xorg
- steam
config: {}
description: Default Incus profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
root:
path: /
pool: steam
type: disk
name: default
config:
environment.DISPLAY: :1
raw.idmap: both 1000 1000
security.privileged: "false"
description: GUI LXD profile
devices:
PASocket:
path: /tmp/.pulse-native
source: /run/user/1000/pulse/native
type: disk
X1:
bind: container
connect: unix:/tmp/.X11-unix/X1
gid: "1000"
listen: unix:/tmp/.X11-unix/X1
mode: "0777"
security.gid: "1000"
security.uid: "1000"
type: proxy
uid: "1000"
Xauthority:
path: /home/contuser/.Xauthority
source: /home/user/.Xauthority
type: disk
mygpu:
type: gpu
name: xorg
config:
security.nesting: "true"
description: Extra Steam Settings
devices: {}
name: steam