Article 53SSG Can't connect openvpn from systemd-nspawn container

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:
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
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 advancelatest?d=yIl2AUoC8zA latest?i=QMes1tzjPSE:JcDNrjFi-eo:F7zBnMy latest?i=QMes1tzjPSE:JcDNrjFi-eo:V_sGLiP latest?d=qj6IDK7rITs latest?i=QMes1tzjPSE:JcDNrjFi-eo:gIN9vFwQMes1tzjPSE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments