Skip to content

Instantly share code, notes, and snippets.

@bjoern-r
Last active July 23, 2024 02:52
Show Gist options
  • Save bjoern-r/11190cbf9ab76d4835466ba49f549b0d to your computer and use it in GitHub Desktop.
Save bjoern-r/11190cbf9ab76d4835466ba49f549b0d to your computer and use it in GitHub Desktop.
Proxmox VE (privileged) lxc container for running kodi with GPU, keyboard and sound
arch: amd64
cores: 2
hostname: kodipriv
memory: 2048
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=56:94:2A:9A:8E:1B,ip=dhcp,ip6=auto,type=veth
ostype: ubuntu
parent: before_first_boot
rootfs: encrypted_zfs:subvol-103-disk-0,size=8G
swap: 512
lxc.cgroup2.devices.allow: c 226:* rwm
lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,create=file
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,create=file
lxc.cgroup2.devices.allow: c 13:* rwm
lxc.mount.entry: /dev/input/event2 dev/input/event2 none bind,optional,create=file
lxc.mount.entry: /run/udev mnt/udev none bind,create=dir
lxc.cgroup2.devices.allow: c 116:* rwm
lxc.mount.entry: /dev/snd dev/snd none bind,create=dir
lxc.cgroup2.devices.allow: c 4:6 rwm
lxc.mount.entry: /dev/tty7 dev/tty7 none bind,create=file
@paulzzh
Copy link

paulzzh commented Jul 22, 2024

This works perfectly on kernel 6.5.13-3-pve.
But there is no video on kernel 6.8.8-3-pve.

@paulzzh
Copy link

paulzzh commented Jul 23, 2024

This works perfectly on kernel 6.5.13-3-pve. But there is no video on kernel 6.8.8-3-pve.

It works after bind /dev/dri/card1... I don't know why card0 <=> renderD129 card1 <=> renderD128 on kernel 6.8.8-3-pve.
a101945d5eefbf729c6add8a6496917b

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