Containerising a TV Server
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
add a comment |
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
add a comment |
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
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
virtualization lxc mediaserver dvb
edited 2 hours ago
Hadog
asked Sep 26 '16 at 17:28
HadogHadog
176111
176111
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Oct 17 '16 at 7:01
HadogHadog
176111
176111
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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