[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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!