LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 05-22-2020, 08:20 AM   #1
T0MuX
LQ Newbie
 
Registered: May 2020
Posts: 1

Rep: Reputation: Disabled
Can't connect openvpn from systemd-nspawn container


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.ovpn
And 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 advance
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unable to connect to OpenVPN server on current. Also, unable to build NetworkManager-openvpn The_Dark_Passenger Slackware 2 07-19-2019 05:51 PM
LXer: How to use systemd-nspawn for Linux system recovery LXer Syndicated Linux News 0 11-14-2018 06:10 PM
LXer: Container technologies in Fedora: systemd-nspawn LXer Syndicated Linux News 0 06-29-2016 07:42 AM
LXer: Inside the Open Container Project: How Docker plans to unite the container market LXer Syndicated Linux News 0 06-23-2015 04:30 AM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration