[lxc-users] /dev/net/tun inside unprivileged LXC container
tapczan
tapczan at unx.pl
Fri Sep 18 19:53:23 UTC 2015
Hello
With privileged containers adding /dev/net/tun or /dev/fuse device
inside container is easy:
- create script create_fuse.sh: "mknod ${LXC_ROOTFS_MOUNT}/dev/fuse -m
0666 c 10 229"
- add to config "lxc.hook.autodev = /var/lib/lxc/c01/create_fuse.sh"
That's it. During container starting device will be added. But it's
not working with unprivileged LXC container.
lxc-start 1442605204.224 ERROR lxc_conf - conf.c:run_buffer:325 -
Script exited with status 1
lxc-start 1442605204.224 ERROR lxc_conf - conf.c:lxc_setup:3858 -
failed to run autodev hooks for container 'c01'.
I'm using systemd versions of ubuntu (15.04).
Is there a way of adding /dev/net/tun device into unprivileged LXC container?
More information about the lxc-users
mailing list