You are not logged in.

#1 2023-08-10 12:59:41

mama
Member
Registered: 2023-08-10
Posts: 4

[SOLVED] Module veth not found in directory /lib/modules/6.4.8-arch1-1

Hi - I am trying to hide some bridged interfaces behind a namespace, and I remember that veth should be a nice way to tunnel between the namespaces, but when I try to add the veth interface I am getting this error:

# ip link add v1 type veth peer name v2
Error: Unknown device type.

Arch linux has a man page for veth, so I would assume that it is still a relevant technology.

https://man.archlinux.org/man/veth.4.en
https://man.archlinux.org/man/network_namespaces.7.en

But when I am checking modprobe i am getting this error:

# modprobe veth
modprobe: FATAL: Module veth not found in directory /lib/modules/6.4.8-arch1-1

Can you tell me why veth is not included in the kernel by default. I guess a lot of virtualization/containerization technologies depend on it. And I guess if I install docker, lxd or libvirt then it would probably be installed automatically. However I am building my own tool, so it would be nice to know how I can set it up with a minimum of dependencies.

Best regards

Last edited by mama (2023-08-11 22:09:00)

Offline

#2 2023-08-10 13:08:57

seth
Member
Registered: 2012-09-03
Posts: 52,282

Re: [SOLVED] Module veth not found in directory /lib/modules/6.4.8-arch1-1

uname -a
pacman -Qs kernel

Offline

#3 2023-08-10 13:33:08

mama
Member
Registered: 2023-08-10
Posts: 4

Re: [SOLVED] Module veth not found in directory /lib/modules/6.4.8-arch1-1

# uname -a && pacman -Qs kernel
Linux com2 6.4.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 03 Aug 2023 16:02:01 +0000 x86_64 GNU/Linux
local/iptables 1:1.8.9-1
    Linux kernel packet control tool (using legacy interface)
local/kmod 30-3
    Linux kernel module management tools and library
local/libdrm 2.4.115-1
    Userspace interface to kernel DRM services
local/libnetfilter_conntrack 1.0.9-1
    Library providing an API to the in-kernel connection tracking state table
local/libnfnetlink 1.0.2-1
    Low-level library for netfilter related kernel/userspace communication
local/libsysprof-capture 3.48.0-4
    Kernel based performance profiler - capture library
local/linux 6.4.9.arch1-1
    The Linux kernel and modules
local/linux-api-headers 6.4-1
    Kernel headers sanitized for use in userspace
local/mtdev 1.1.6-2
    A stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol

Offline

#4 2023-08-10 14:26:47

mama
Member
Registered: 2023-08-10
Posts: 4

Re: [SOLVED] Module veth not found in directory /lib/modules/6.4.8-arch1-1

I found the problem:

I did not restart my computer since the last kernel update and the veth module would not work with the running kernel.

So I just needed to restart....

Offline

#5 2023-08-10 16:43:01

seth
Member
Registered: 2012-09-03
Posts: 52,282

Re: [SOLVED] Module veth not found in directory /lib/modules/6.4.8-arch1-1

Yup.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB