> > Hi all, > > > > My home router/firewall (ubuntu + iptables) is currently running in KVM and > > I would like to run it into a container to reduce the ressource > > footprint.... but I'm having a problem to make my DSL PPPoE working... > > > > The containrt is unable to use the kernel modules loaded into the host. > > > > ============================================== > > > > > > My firewall container when trying to bring up the PPPoE: > > > > root@myfirewall:~# pon dsl-provider > > Plugin rp-pppoe.so loaded. > > Couldn't open the /dev/ppp device: Operation not permitted > > Did you add the /dev/ppp device to the container's devices whitelist? You are right, I didn't add the /dec/ppp into the devices whitelist. For thoses that might have the same trouble here is the line that I added to my container configuration file (/var/lib/lxc/myfirewall/config) to make it work:
lxc.cgroup.devices.allow = c 108:0 rwm # /dev/ppp I took the "108:0" value from: root@vmhost01:~# ls -ls /dev/ppp 0 crw------- 1 root root 108, 0 Jun 8 21:19 /dev/ppp The ppp session is now established: Jun 10 22:44:42 myfirewall pppd[2165]: Plugin rp-pppoe.so loaded. Jun 10 22:44:42 myfirewall pppd[2167]: pppd 2.4.5 started by ubuntu, uid 0 Jun 10 22:44:42 myfirewall pppd[2167]: PPP session is 11903 Jun 10 22:44:42 myfirewall pppd[2167]: Connected to 00:90:FF:FF:FF:F4 via interface vlan2 Jun 10 22:44:42 myfirewall pppd[2167]: Using interface ppp0 Jun 10 22:44:42 myfirewall pppd[2167]: Connect: ppp0 <--> vlan2 Jun 10 22:44:43 myfirewall pppd[2167]: PAP authentication succeeded Thank you for the hint Serge! > > > modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not > > open moddep file '/lib/modules/3.13.0-53-generic/modules.dep.bin' > > Linux kernel does not support PPPoE -- are you running 2.4.x? > > > > > > root@myfirewall:~# lsmod | grep ppp > > pppoe 17873 0 > > pppox 13342 1 pppoe > > > > ============================================== > > > > Kernel modules are loaded into the host (my host is running Ubuntu 14.04.2 > > LTS) > > > > jonathan@vmhost01:~$ sudo lsmod | grep ppp > > pppoe 17873 0 > > pppox 13342 1 pppoe > > > > ============================================== > > > > I thought that a container would be able to use the kernel modules that are > > loaded into the host. I probably miss something.... > > > > > > Thanks! > > > _______________________________________________ > > lxc-users mailing list > > [email protected] > > http://lists.linuxcontainers.org/listinfo/lxc-users > _______________________________________________ lxc-users mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-users
