TLDR:
https://forum.proxmox.com/threads/p...strough-not-working-anymore.92025/post-400916
Hi,
with PVE 6.4, adding these lines to /etc/pve/lxc/<container id>.conf was enough to get GPU access in the container.
But with PVE 7.0, it doesn't work anymore...
Am I missing something?
Host (intel NUC Gen 7 Broadwell):
Guest (lxc priviledged container with nfs, with debian buster, updated to bullseye):
I noticed that renderD128 is owned by group netdev on guest, changing to render or video group doesn't solve anything.
Thank you!
lxc.cgroup.devices.allow
MUST be changed to lxc.cgroup2.devices.allow
https://forum.proxmox.com/threads/p...strough-not-working-anymore.92025/post-400916
Hi,
with PVE 6.4, adding these lines to /etc/pve/lxc/<container id>.conf was enough to get GPU access in the container.
Code:
lxc.cgroup.devices.allow: c 226:0 rwm
lxc.cgroup.devices.allow: c 226:128 rwm
lxc.cgroup.devices.allow: c 29:0 rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file
But with PVE 7.0, it doesn't work anymore...
Am I missing something?
Host (intel NUC Gen 7 Broadwell):
Code:
root@nuc4:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.10.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Broadwell - 2.4.1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointVLD
root@nuc4:~# ls -lh /dev/dri/ /dev/fb0
crw-rw---- 1 root video 29, 0 6 juil. 17:41 /dev/fb0
/dev/dri/:
total 0
drwxr-xr-x 2 root root 80 6 juil. 17:41 by-path
crw-rw---- 1 root video 226, 0 6 juil. 17:41 card0
crw-rw---- 1 root render 226, 128 6 juil. 17:41 renderD128
root@nuc4:~#
Guest (lxc priviledged container with nfs, with debian buster, updated to bullseye):
Code:
root@p1:~# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
error: failed to initialize display
root@p1:~# ls -lh /dev/dri /dev/fb0
crw-rw---- 1 root video 29, 0 Jul 6 15:41 /dev/fb0
/dev/dri:
total 0
drwxr-xr-x 2 root root 80 Jul 6 15:41 by-path
crw-rw---- 1 root video 226, 0 Jul 6 15:41 card0
crw-rw---- 1 root netdev 226, 128 Jul 6 15:41 renderD128
root@p1:~#
I noticed that renderD128 is owned by group netdev on guest, changing to render or video group doesn't solve anything.
Thank you!
Last edited: