Thanks for the help! Adding /run/udev/data to the container did the trick! Works perfectly!
Detailed explanation:
- Add devices /dev/input/event*
- Hand over /run/udev/data to the container:
lxc config device add kodicont1 udev_data disk source=/run/udev/data path=/home/ubuntu/udev/data
in the container I added the following lines to the wait_for_x.sh (ontop! before x is starting):
mkdir /run/udev
mkdir /run/udev/data
cp /home/ubuntu/data/* /run/udev/data/
…I think I will write a lxd tutorial how to setup kodi on a headless server. It still seems to be missing in the internet ![]()