Anybody running Kodi in LXD?

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
AdamG Offline
Junior Member
Posts: 4
Joined: May 2016
Reputation: 0
Post: #1
Well I've just spent the last 2 days figuring out how to get Kodi running in an lxd container with sound/video/input because there is practically very little documentation on it Sad and I finally cracked it, if anybody else is interested in running Kodi this way I will write up a how to.
(This post was last modified: 2016-05-11 03:45 by AdamG.)
find quote
wsnipex Offline
Team-Kodi
Posts: 6,386
Joined: Jun 2011
Reputation: 165
Post: #2
please do a write up!
find quote
taliz Offline
Junior Member
Posts: 7
Joined: Dec 2011
Reputation: 0
Post: #3
Yeah I'm about to attempt setting that up now as well.
I'm migrating my FreeBSD server(with ZFS) to Ubuntu 16.04 with ZFS, so I can run Kodi on the Intel GPU(not supported in FreeBSD).
Thought I might was well isolate Kodi in a container so no bad addons can get access to the rest of the system.
find quote
laric Offline
Donor
Posts: 184
Joined: May 2012
Reputation: 2
Post: #4
Wouldn't a chroot jail be sufficient?
As you don't run kodi as su it shouldnt be able to break out.

If my post helped you then there is a nice "Thank user" button on the bottom of the post.
find quote
AdamG Offline
Junior Member
Posts: 4
Joined: May 2016
Reputation: 0
Post: #5
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.
(This post was last modified: 2016-05-11 02:06 by AdamG.)
find quote
bastos Offline
Junior Member
Posts: 39
Joined: Aug 2014
Reputation: 0
Location: Brazil
Post: #6
(2016-05-11 01:51)AdamG Wrote:  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.

Hello AdamG, I'm trying to achieve the same but with nvidia graphics under proxmox(http://www.proxmox.com).

Would you mind to share your LXC files again?

Thanks!
find quote
BurningDaylight Offline
Junior Member
Posts: 3
Joined: Aug 2014
Reputation: 0
Post: #7
(2016-05-11 01:51)AdamG Wrote:  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.
Trying to achieve the same. Could you please share your configs?
find quote
Rydako Offline
Junior Member
Posts: 1
Joined: Feb 2017
Reputation: 0
Post: #8
(2016-05-11 01:51)AdamG Wrote:  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.

Same here - would appreciate it if you could share your files again. So are you using LXC 1.0 now? I'm trying to achieve this in LXC 2.0/LXD - to work alongside my non GUI containers. Did you find that wasn't possible?
(This post was last modified: 2017-02-11 23:03 by Rydako.)
find quote
test_mess Offline
Junior Member
Posts: 1
Joined: Jun 2017
Reputation: 0
Post: #9
Hi!!

Anyone has the files for making it working. The link is not yet working...

Thanks.
find quote