Containerising a TV Server












0















I have a server with a DVB-S2 card. For a number of reasons, I'd like to containerise/virtualise (though I'd prefer an LXD solution as I already use this) this service used to provide TV streams to my Kodi devices. Is this possible, and if so, how does one go about making the /dev/dvd/ folder available within the container? Many thanks.










share|improve this question





























    0















    I have a server with a DVB-S2 card. For a number of reasons, I'd like to containerise/virtualise (though I'd prefer an LXD solution as I already use this) this service used to provide TV streams to my Kodi devices. Is this possible, and if so, how does one go about making the /dev/dvd/ folder available within the container? Many thanks.










    share|improve this question



























      0












      0








      0








      I have a server with a DVB-S2 card. For a number of reasons, I'd like to containerise/virtualise (though I'd prefer an LXD solution as I already use this) this service used to provide TV streams to my Kodi devices. Is this possible, and if so, how does one go about making the /dev/dvd/ folder available within the container? Many thanks.










      share|improve this question
















      I have a server with a DVB-S2 card. For a number of reasons, I'd like to containerise/virtualise (though I'd prefer an LXD solution as I already use this) this service used to provide TV streams to my Kodi devices. Is this possible, and if so, how does one go about making the /dev/dvd/ folder available within the container? Many thanks.







      virtualization lxc mediaserver dvb






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 hours ago







      Hadog

















      asked Sep 26 '16 at 17:28









      HadogHadog

      176111




      176111






















          1 Answer
          1






          active

          oldest

          votes


















          0














          If anyone finds this, DVB devices are Unix-Character Block devices. Each element entry (but not directory) in /dev/dvb/ has to be manually mapped across, using the command:



          lxc config device add <container> <device> unix-char path=/dev/<device>


          So for example, for the first demux on the first adapter into a container called media-streamer:



          lxc config device add media-streamer dvb/adapter0/demux0 unix-char path=/dev/dvb/adapter0/demux0


          You then repeat for all the devices on all the adapters you wish to pass into your container.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f829960%2fcontainerising-a-tv-server%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            If anyone finds this, DVB devices are Unix-Character Block devices. Each element entry (but not directory) in /dev/dvb/ has to be manually mapped across, using the command:



            lxc config device add <container> <device> unix-char path=/dev/<device>


            So for example, for the first demux on the first adapter into a container called media-streamer:



            lxc config device add media-streamer dvb/adapter0/demux0 unix-char path=/dev/dvb/adapter0/demux0


            You then repeat for all the devices on all the adapters you wish to pass into your container.






            share|improve this answer




























              0














              If anyone finds this, DVB devices are Unix-Character Block devices. Each element entry (but not directory) in /dev/dvb/ has to be manually mapped across, using the command:



              lxc config device add <container> <device> unix-char path=/dev/<device>


              So for example, for the first demux on the first adapter into a container called media-streamer:



              lxc config device add media-streamer dvb/adapter0/demux0 unix-char path=/dev/dvb/adapter0/demux0


              You then repeat for all the devices on all the adapters you wish to pass into your container.






              share|improve this answer


























                0












                0








                0







                If anyone finds this, DVB devices are Unix-Character Block devices. Each element entry (but not directory) in /dev/dvb/ has to be manually mapped across, using the command:



                lxc config device add <container> <device> unix-char path=/dev/<device>


                So for example, for the first demux on the first adapter into a container called media-streamer:



                lxc config device add media-streamer dvb/adapter0/demux0 unix-char path=/dev/dvb/adapter0/demux0


                You then repeat for all the devices on all the adapters you wish to pass into your container.






                share|improve this answer













                If anyone finds this, DVB devices are Unix-Character Block devices. Each element entry (but not directory) in /dev/dvb/ has to be manually mapped across, using the command:



                lxc config device add <container> <device> unix-char path=/dev/<device>


                So for example, for the first demux on the first adapter into a container called media-streamer:



                lxc config device add media-streamer dvb/adapter0/demux0 unix-char path=/dev/dvb/adapter0/demux0


                You then repeat for all the devices on all the adapters you wish to pass into your container.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 17 '16 at 7:01









                HadogHadog

                176111




                176111






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f829960%2fcontainerising-a-tv-server%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Category:香港粉麵

                    List *all* the tuples!

                    Channel [V]