So I am running a 3 Node cluster and I have a bunch of containers running on them with HA.
The problem is all containers must connect to an OpenVPN network in order to be accessible via our company VPN (they are not accessible from the outside world) but when they reboot /dev/net/tun is not created or accessible so I have to manually do:
mkdir /dev/net
mknod /dev/net/tun c 10 200
systemctl start openvpn@client.service
On every container to get them to reconnect to the VPN.
This seems to be an issue with either LXC or Debian LXC containers because my master nodes are fine - they come up with the relevant tun device and connect fine.
I currently have 15 servers running as Debian LXC containers so as you can imagine this is a serious pita.
Anyone know how to make /dev/net/tun persist and be accessible across reboots with a Debian LXC container?
Thanks.
The problem is all containers must connect to an OpenVPN network in order to be accessible via our company VPN (they are not accessible from the outside world) but when they reboot /dev/net/tun is not created or accessible so I have to manually do:
mkdir /dev/net
mknod /dev/net/tun c 10 200
systemctl start openvpn@client.service
On every container to get them to reconnect to the VPN.
This seems to be an issue with either LXC or Debian LXC containers because my master nodes are fine - they come up with the relevant tun device and connect fine.
I currently have 15 servers running as Debian LXC containers so as you can imagine this is a serious pita.
Anyone know how to make /dev/net/tun persist and be accessible across reboots with a Debian LXC container?
Thanks.
Last edited: