[Solved] Privileged container- Openvpn no longer works after full update (archlinux)- operation not permitted

I have the line in the container config as

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

Worked fine before update and now when I try to do sudo openvpn config.ovpn it now fails with error

Mon Oct  8 08:15:20 2018 ROUTE_GATEWAY 10.0.3.1/255.255.255.0 IFACE=eth0 HWADDR=00:16:3e:e1:57:7e
Mon Oct  8 08:15:20 2018 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Mon Oct  8 08:15:20 2018 Exiting due to fatal error

So what has changed?

Edit I saw suggestion here which looked exactly what I was after however trying what OP said in the container the permissions do not change and when I tried the final poster’s suggestions of changing the config file the container wont start at all.

EDIT: Solved by adding lxc.cgroup.devices.allow = c 10:200 rwm to config files of relevant containers.

1 Like