Hi,
I use intel i5 10500 to host Proxmox VE 7.0-11.
Run vm for openwrt, home-assistant and xpenology, and I want add lxc for Plex and Jellyfin.
but I cant let lxc use my UHD Graphics 630 for Plex HWtranscode.
on host:
lxc config:
on lxc:
I use intel i5 10500 to host Proxmox VE 7.0-11.
Run vm for openwrt, home-assistant and xpenology, and I want add lxc for Plex and Jellyfin.
but I cant let lxc use my UHD Graphics 630 for Plex HWtranscode.
on host:
Code:
root@pve:~# ls -l /dev/dri
total 0
drwxr-xr-x 2 root root 80 Aug 20 21:06 by-path
crw-rw---- 1 root video 226, 0 Aug 20 21:06 card0
crw-rw---- 1 root render 226, 128 Aug 20 21:06 renderD128
root@pve:~# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation CometLake-S GT2 [UHD Graphics 630] (rev 03)
root@pve:~# 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: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 (54492c0d)
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileNone : VAEntrypointStats
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointFEI
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointFEI
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointFEI
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointFEI
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
lxc config:
Code:
arch: amd64
cores: 4
features: nesting=1
hostname: media
memory: 2048
mp0: /mnt/pve/synology-media/media,mp=/mnt/media
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.100.1,hwaddr=46:02:9A:DD:F3:DA,ip=192.168.100.100/24,ip6>
ostype: ubuntu
rootfs: local-zfs:subvol-202-disk-0,size=32G
swap: 1024
unprivileged: 1
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 44
lxc.idmap: g 44 44 1
lxc.idmap: g 45 100045 62
lxc.idmap: g 107 103 1
lxc.idmap: g 108 100108 897
lxc.idmap: g 1005 1005 1
lxc.idmap: g 1006 101006 64530
on lxc:
Code:
root@media:~# ls -l /dev/dri
total 0
drwxr-xr-x 2 nobody nogroup 80 Aug 20 13:06 by-path
crw-rw---- 1 nobody video 226, 0 Aug 20 13:06 card0
crw-rw---- 1 nobody render 226, 128 Aug 20 13:06 renderD128
root@media:~# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Device 9bc8 (rev 03)
root@media:~# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
error: failed to initialize display