Running LibreELEC in LXC (successfully) but USB keyboard not controlling Kodi GUI

  • I wanted to run a virtualized HTPC preferably Kodi in a lightweight JEOS LXC so went for LibreELEC. I was amazed no LXC image or template was available so I created it myself.

    Basically;

    1. Created a VM based on (LibreELEC-Generic.x86_64-12.2.0.img.gz) using a VirGL GPU - as I also want to use actual hardware acceleration / passthrough later.
    2. Converted it to an LXC using (proxmox-vm-to-ct script)
    3. Added my GPU, Render, framebuffer and tty to said LXC (mainly using this guide) and was greeted by the Kodi screen on my HDMI monitor - all great so far !

    Luckily I setup remote control through web interface chrorus2 because I cannot seem to get my USB (keyboards) inputs to control the Kodi interface.

    My keyboard is present in /dev/ as event2 and I can test it and see keys coming in with evtest - see below

    Code
    LibreELEC-test2:~ # ls /dev/input -la
    crw-rw----    1 root     root       13,  66 Oct 17 16:26 event2
    Code
    LibreELEC-test2:~ # evtest
    No device specified, trying to scan all of /dev/input/event*
    Available devices:
    /dev/input/event2:      Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 )
    Code
    Testing ... (interrupt to exit)
    Event: time 1760711288.223959, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70052
    Event: time 1760711288.223959, type 1 (EV_KEY), code 103 (KEY_UP), value 1
    Event: time 1760711288.223959, -------------- SYN_REPORT ------------
    Event: time 1760711288.263947, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70052
    Event: time 1760711288.263947, type 1 (EV_KEY), code 103 (KEY_UP), value 0
    Event: time 1760711288.263947, -------------- SYN_REPORT ------------

    However it doesn't seem to be controlling the Kodi GUI whatsoever.

    GPU, audio passthrough and hardware acceleration all work perfectly so didn't expect something as trivial like USB HID passthrough not to work.

    It would be amazing to run LibreELEC in a lightweight LXC container as it kinda fits the whole JEOS vibe opposed to a VM or bare metal wasting resources.

    Does anybody have any ideas or pointers how to fix this?