Sorry I haven't had time to write up a tutorial yet, I am using lxc as opposed to lxd as there is plenty of documentation for it unlike lxd, once you have created an ubuntu container and followed one of the many guides for installing Kodi there is only some slight additional configuration needed, you can download the files I am using
here.
All files should be placed on the main host with the exception of /usr/share/X11/xorg.conf.d/10-input.conf which should be placed within the container, the files are pretty much self explanatory for any experienced Linux user, the hooks and dev permissions will need to be modified to suit your system. I was also using a bridged network interface in my lxc container config so that will need changing to suit your system as well.
Code:
[root]@[INTEL-NUC] ~ # lxc-info -n kodi
Name: kodi
State: RUNNING
PID: 6807
IP: 192.168.0.41
CPU use: 60.02 seconds
BlkIO use: 164.00 KiB
Memory use: 290.04 MiB
KMem use: 0 bytes
Link: vethKMDBE9
TX bytes: 21.72 KiB
RX bytes: 102.39 KiB
Total bytes: 124.11 KiB
[root]@[INTEL-NUC] ~ #
Everything works as it should ^_^ GPU acceleration, sound, input etc..
I have to say I'm extremely pleased I can run Kodi practically as a VM with no need for VT-d or an additional GPU.