I am sorry if this is an old story and a lot of discussion went on these forums on this topic, I haven’t find any …
I installed an openvpn server in an ubuntu based lxd container (privileged) in an ubuntu host, as I did it before few times with success. This time I encountered permission troubles with systemd. If I start openvpn server by hand as root using the same command what’s in the systemd unit file, everything is going well, but when I want to start it by systemd it can’t access file var/log/openvpn/openvpn-status.log and can’t stat tun device.
I don’t know systemd so deep and I can’t imagine what can be the problem as it runs by default as root.
I suppose its related to lxd somehow but I can’t see what’s under the hood.
I would appreciate any suggestion.