26
14
I cannot manage to load the tun
module in my ArchLinux box. I’m trying
to connect with OpenVPN, but the log says:
nm-openvpn[6662]: Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
lsmod | grep tun
Returns nothing:
If I run:
sudo modprobe tun
It returns failure, but no error message, and lsmod still has no tun
. The module seems to exist, as there is a tun.ko.gz
in /lib/modules/
.
I really dont know what else to try.
Root access needed?! – Dr.jacky – 2015-12-16T06:59:07.180
3can't find /lib/modules/ -iname 'tun.ko.gz' on my Ubuntu 14.04 vps ( – Ivan Borshchov – 2016-03-29T23:37:36.850
1can't find it on CentOS 7 either. – snetch – 2016-05-18T17:39:02.137
At the time of writing this, the latest ARCH produces the following error
insmod: ERROR: could not insert module /lib/modules/4.8.2-1-ARCH/kernel/drivers/net/tun.ko.gz: Invalid module format
– Antony – 2016-10-22T03:44:39.870You can also load it automatically if found like:
find /lib/modules/ -iname "tun.ko.gz" -exec /usr/bin/insmod {} \;
– fugitive – 2017-02-10T02:04:29.270Had this too on my raspberry pi, insmod solved it (after a reboot I can modprobe as usual) – unhammer – 2013-07-05T08:05:10.883
Thamks! the insmod command works! Had this for an openconnect issue: Failed to open tun device: No such device – Antonio Saco – 2014-05-09T20:05:56.687