/dev/ppp in LXC: permission denied

Hi there,

I’m trying to setup pppoe server in LXC.
But, when client trying connect, server getting error:

Jul 03 13:29:10 pppoe pppd[100]: Couldn’t open the /dev/ppp device: Operation not permitted
Jul 03 13:29:15 pppoe pppd[100]: Sorry - this system lacks PPP kernel support

ofcourse I have added this lines to container’s config:

lxc.mount.entry = /dev/ppp dev/ppp none bind,optional,create=file,rw
lxc.cgroup.devices.allow = c 108:0 rwm

Also, i tried another way:

lxc.cgroup.devices.allow = c 108:0 rwm

to config file and run

mknod /dev/ppp c 108 0

inside container, but it is not changing anything.
also not helping this on host:

chown 100000:100000 /dev/ppp

and if run container and add device like this:

lxc-device add -n pppoe /dev/ppp /dev/ppp

then it works!

But how to add device /dev/ppp permanently? Because need run this command after every container start.

Rights differences: first in config, second with lxc-device add

0 crw------- 1 root root 108, 0 Jul 3 13:23 /dev/ppp
0 crw------- 1 root root 108, 0 Jul 1 23:52 /dev/ppp