scaleway / kernel-tools

:penguin: Kernels on Scaleway
http://devhub.scaleway.com/#/bootscripts
MIT License
104 stars 36 forks source link

No TUN/TAP kernel module? #367

Closed lunarthegrey closed 6 years ago

lunarthegrey commented 6 years ago

It seems like the TUN/TAP kernel module is missing from a lot of, or most of the Scaleway kernels. Has anyone else noticed this? So far I've found no module in these kernels for VC1S:

x86_64 4.10.8 std #1
x86_64 mainline 4.13.11 rev1

depmod -a, nothing. modprobe tun, nothing. lsmod, nothing. Grepping for the actual .ko returns nothing as well.

root@scw-6ee98f:~# ls /lib/modules/4.13.11-mainline-rev1/kernel/drivers/net | grep tun
root@scw-6ee98f:~# ls /lib/modules/4.10.8-std-1/kernel/drivers/net | grep tun

So I'm pretty sure it doesn't exist. But why? I hope this is added ASAP. If anyone knows of a kernel that has the tun module, please let me know. I'll be testing more in the meantime.

superseed commented 6 years ago

CONFIG_TUN is enabled in all mainline bootscripts, it's only loaded as a module on ARM though. zcat /proc/config.gz | grep "CONFIG_TUN" will confirm that.

lunarthegrey commented 6 years ago

@superseed When you say only loaded as a module on ARM. Does that mean I can't load it on x86_64? Because I can't seem to get it to work on x86_64.

If that's the case, can you add support for x86_64 and all the other architectures on Scaleway?

superseed commented 6 years ago

I mean it's enabled as a kernel built-in on all other arch (x86_64, arm64): you'll only find it through lsmod and in /lib/modules on arm. But it's always enabled in the mainline bootscripts.

You can always check /proc/config.gz as shown above.