[lxc-users] /dev/net/tun inside unprivileged LXC container
Stéphane Graber
stgraber at ubuntu.com
Fri Sep 18 19:58:09 UTC 2015
On Fri, Sep 18, 2015 at 09:53:23PM +0200, tapczan wrote:
> 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?
lxc.mount.entry = /dev/net dev/net none bind,create=dir
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150918/7c1dd2d9/attachment.sig>
More information about the lxc-users
mailing list