PPTPD on lxd unprivileged container
There is lxd-3.0.3 unprivileged (containers with uid shift started by root) on
Ubuntu-18.04 (amd64). In container there is Ubuntu-16.04.5 (amd64).
How to configure pptpd on it? It seems that there is problem with ppp0 interface. It is not available.
Here if fragment of log:
Feb 13 19:21:22 blabla100 pppd[25943]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Feb 13 19:21:22 blabla100 pppd[25943]: Couldn't open the /dev/ppp device: No such file or directory
Feb 13 19:21:22 blabla100 pptpd[25927]: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/
Feb 13 19:21:22 blabla100 pptpd[25927]: modprobe: FATAL: Module ppp_generic not found in directory /lib/modules
Feb 13 19:21:27 blabla100 pptpd[25927]: /usr/sbin/pppd: You need to create the /dev/ppp device node by
Feb 13 19:21:27 blabla100 pptpd[25927]: executing the following command as root:
Feb 13 19:21:27 blabla100 pptpd[25927]: mknod /dev/ppp c 108 0
Feb 13 19:21:27 blabla100 pppd[25935]: You need to create the /dev/ppp device node by
executing the following command as root:
mknod /dev/ppp c 108 0
So I guess I must create /dev/ppp on host, but how to allow to access it only in this container, not other containers.
lxd pptp unprivileged
add a comment |
There is lxd-3.0.3 unprivileged (containers with uid shift started by root) on
Ubuntu-18.04 (amd64). In container there is Ubuntu-16.04.5 (amd64).
How to configure pptpd on it? It seems that there is problem with ppp0 interface. It is not available.
Here if fragment of log:
Feb 13 19:21:22 blabla100 pppd[25943]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Feb 13 19:21:22 blabla100 pppd[25943]: Couldn't open the /dev/ppp device: No such file or directory
Feb 13 19:21:22 blabla100 pptpd[25927]: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/
Feb 13 19:21:22 blabla100 pptpd[25927]: modprobe: FATAL: Module ppp_generic not found in directory /lib/modules
Feb 13 19:21:27 blabla100 pptpd[25927]: /usr/sbin/pppd: You need to create the /dev/ppp device node by
Feb 13 19:21:27 blabla100 pptpd[25927]: executing the following command as root:
Feb 13 19:21:27 blabla100 pptpd[25927]: mknod /dev/ppp c 108 0
Feb 13 19:21:27 blabla100 pppd[25935]: You need to create the /dev/ppp device node by
executing the following command as root:
mknod /dev/ppp c 108 0
So I guess I must create /dev/ppp on host, but how to allow to access it only in this container, not other containers.
lxd pptp unprivileged
Welcome to Ask Ubuntu! Right now, your question lacks any helpful description. The good thing is, you can simply edit your question and include as much description as you like. Please take the time to explain what you are doing where you hit a problem. Please read tour and How to Ask before asking a question.
– Mr Shunz
Feb 14 at 8:28
add a comment |
There is lxd-3.0.3 unprivileged (containers with uid shift started by root) on
Ubuntu-18.04 (amd64). In container there is Ubuntu-16.04.5 (amd64).
How to configure pptpd on it? It seems that there is problem with ppp0 interface. It is not available.
Here if fragment of log:
Feb 13 19:21:22 blabla100 pppd[25943]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Feb 13 19:21:22 blabla100 pppd[25943]: Couldn't open the /dev/ppp device: No such file or directory
Feb 13 19:21:22 blabla100 pptpd[25927]: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/
Feb 13 19:21:22 blabla100 pptpd[25927]: modprobe: FATAL: Module ppp_generic not found in directory /lib/modules
Feb 13 19:21:27 blabla100 pptpd[25927]: /usr/sbin/pppd: You need to create the /dev/ppp device node by
Feb 13 19:21:27 blabla100 pptpd[25927]: executing the following command as root:
Feb 13 19:21:27 blabla100 pptpd[25927]: mknod /dev/ppp c 108 0
Feb 13 19:21:27 blabla100 pppd[25935]: You need to create the /dev/ppp device node by
executing the following command as root:
mknod /dev/ppp c 108 0
So I guess I must create /dev/ppp on host, but how to allow to access it only in this container, not other containers.
lxd pptp unprivileged
There is lxd-3.0.3 unprivileged (containers with uid shift started by root) on
Ubuntu-18.04 (amd64). In container there is Ubuntu-16.04.5 (amd64).
How to configure pptpd on it? It seems that there is problem with ppp0 interface. It is not available.
Here if fragment of log:
Feb 13 19:21:22 blabla100 pppd[25943]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Feb 13 19:21:22 blabla100 pppd[25943]: Couldn't open the /dev/ppp device: No such file or directory
Feb 13 19:21:22 blabla100 pptpd[25927]: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/
Feb 13 19:21:22 blabla100 pptpd[25927]: modprobe: FATAL: Module ppp_generic not found in directory /lib/modules
Feb 13 19:21:27 blabla100 pptpd[25927]: /usr/sbin/pppd: You need to create the /dev/ppp device node by
Feb 13 19:21:27 blabla100 pptpd[25927]: executing the following command as root:
Feb 13 19:21:27 blabla100 pptpd[25927]: mknod /dev/ppp c 108 0
Feb 13 19:21:27 blabla100 pppd[25935]: You need to create the /dev/ppp device node by
executing the following command as root:
mknod /dev/ppp c 108 0
So I guess I must create /dev/ppp on host, but how to allow to access it only in this container, not other containers.
lxd pptp unprivileged
lxd pptp unprivileged
edited Feb 14 at 9:06
user2772439
asked Feb 14 at 8:19
user2772439user2772439
12
12
Welcome to Ask Ubuntu! Right now, your question lacks any helpful description. The good thing is, you can simply edit your question and include as much description as you like. Please take the time to explain what you are doing where you hit a problem. Please read tour and How to Ask before asking a question.
– Mr Shunz
Feb 14 at 8:28
add a comment |
Welcome to Ask Ubuntu! Right now, your question lacks any helpful description. The good thing is, you can simply edit your question and include as much description as you like. Please take the time to explain what you are doing where you hit a problem. Please read tour and How to Ask before asking a question.
– Mr Shunz
Feb 14 at 8:28
Welcome to Ask Ubuntu! Right now, your question lacks any helpful description. The good thing is, you can simply edit your question and include as much description as you like. Please take the time to explain what you are doing where you hit a problem. Please read tour and How to Ask before asking a question.
– Mr Shunz
Feb 14 at 8:28
Welcome to Ask Ubuntu! Right now, your question lacks any helpful description. The good thing is, you can simply edit your question and include as much description as you like. Please take the time to explain what you are doing where you hit a problem. Please read tour and How to Ask before asking a question.
– Mr Shunz
Feb 14 at 8:28
add a comment |
1 Answer
1
active
oldest
votes
The Unix character device /dev/ppp on the host is the way you can access the kernel module for ppp.ko. Therefore, you need to get LXD to link that character device into the LXD container. Here is how it's done:
$ lxc config device add mypptpcontainer mypppdevice unix-char source=/dev/ppp uid=0 gid=0 mode=0600
where:
mypptpcontaineris the name of your LXD container.
mypppdeviceis just a name for this LXD device. Pick any name.- the rest specify the characteristics of the unix character device.
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%2f1118147%2fpptpd-on-lxd-unprivileged-container%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
The Unix character device /dev/ppp on the host is the way you can access the kernel module for ppp.ko. Therefore, you need to get LXD to link that character device into the LXD container. Here is how it's done:
$ lxc config device add mypptpcontainer mypppdevice unix-char source=/dev/ppp uid=0 gid=0 mode=0600
where:
mypptpcontaineris the name of your LXD container.
mypppdeviceis just a name for this LXD device. Pick any name.- the rest specify the characteristics of the unix character device.
add a comment |
The Unix character device /dev/ppp on the host is the way you can access the kernel module for ppp.ko. Therefore, you need to get LXD to link that character device into the LXD container. Here is how it's done:
$ lxc config device add mypptpcontainer mypppdevice unix-char source=/dev/ppp uid=0 gid=0 mode=0600
where:
mypptpcontaineris the name of your LXD container.
mypppdeviceis just a name for this LXD device. Pick any name.- the rest specify the characteristics of the unix character device.
add a comment |
The Unix character device /dev/ppp on the host is the way you can access the kernel module for ppp.ko. Therefore, you need to get LXD to link that character device into the LXD container. Here is how it's done:
$ lxc config device add mypptpcontainer mypppdevice unix-char source=/dev/ppp uid=0 gid=0 mode=0600
where:
mypptpcontaineris the name of your LXD container.
mypppdeviceis just a name for this LXD device. Pick any name.- the rest specify the characteristics of the unix character device.
The Unix character device /dev/ppp on the host is the way you can access the kernel module for ppp.ko. Therefore, you need to get LXD to link that character device into the LXD container. Here is how it's done:
$ lxc config device add mypptpcontainer mypppdevice unix-char source=/dev/ppp uid=0 gid=0 mode=0600
where:
mypptpcontaineris the name of your LXD container.
mypppdeviceis just a name for this LXD device. Pick any name.- the rest specify the characteristics of the unix character device.
answered Feb 22 at 21:39
SimosSimos
2876
2876
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%2f1118147%2fpptpd-on-lxd-unprivileged-container%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
Welcome to Ask Ubuntu! Right now, your question lacks any helpful description. The good thing is, you can simply edit your question and include as much description as you like. Please take the time to explain what you are doing where you hit a problem. Please read tour and How to Ask before asking a question.
– Mr Shunz
Feb 14 at 8:28