Can't connect openvpn from systemd-nspawn container
by T0MuX from LinuxQuestions.org on (#53SSG)
Hi, I recently discovered systemd-nspawn, and decided to experiment it. The goal is to replace my usual virtual machine (virtualbox)... I use Archlinux as host, and in the container.
I start it with :
Code:sudo systemd-nspawn -b -D ~/arch-mux/Then, I log in with a non-root user (which is sudoer), and to connect my vpn I type :
Code:sudo openvpn --config my_vpn.ovpnAnd it fails with this error message :
Quote:
I don't understand why this is happenning since I start my container with sudo, and start openvpn with sudo... everything is root, so ?
Thank you by advance


I start it with :
Code:sudo systemd-nspawn -b -D ~/arch-mux/Then, I log in with a non-root user (which is sudoer), and to connect my vpn I type :
Code:sudo openvpn --config my_vpn.ovpnAnd it fails with this error message :
Quote:
Fri May 22 14:18:31 2020 ERROR: Cannot ioctl TUNSETIFF tun: Operation not permitted (errno=1) Fri May 22 14:18:31 2020 Exiting due to fatal error |
Thank you by advance