[SOLVED] LXC Container Ubuntu 18.04 Zerotier TAP/TUN Solution

jamest65

Member
Apr 29, 2021
40
5
13
59
Hi All,

Anyone looking to create a zerotier interface into an unprivileged lxc container can simply update the lxc container as follows

Open the config of the container. It is usually located under /etc/pve/lxc

sudo nano /etc/pve/lxc/XXX.conf

and add the line

lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file

Reboot the container

run zerotier-cli listnetworks and you should see that the port_error has disappeared

any questions let me know.
 
Last edited:
I'm looking for a way to enable tap/tun on a container will this enable it?
 
I upgraded from 6.4 and my containers and tun/tap interfaces are fine, I only used lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file and dont have any cgroup lines in my conf files and all is fine.
 
Last edited: