I had wireguard installed and configured, everything worked. I didn’t install updates for about a year, today I installed it, the wireguard module disappeared from the kernel.
systemctl start wg-quick@wg0
Error: Unknown device type.
sudo modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.18.0-477.15.1.el8_8.x86_64
sudo dnf install kmod-wireguard
Error: Unable to find a match: kmod-wireguard
uname -r
4.18.0-477.15.1.el8_8.x86_64
cat /etc/rocky-release
Rocky Linux release 8.8 (Green Obsidian)
How to fix?
I suspect the elrepo repository is not set up on your system. What if you run:
dnf install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
Package elrepo-release-8.3-1.el8.elrepo.noarch is already installed.
I had previously installed from elrepo kmod-wireguard.
This is the second time when after the updates my system breaks down. I do not know if this is a problem rocky linux or rhel, but the centos was much more stable in old times. This is my server for debugging applications, test server. You have to be completely desperate to use rocky linux in production
Rocky is not responsible for this. In fact RHEL, CentOS and Rocky Linux are equally “good”.
ELRepo’s kmod packages take advantage of the kABI [1]. They are supposed to work across all kernels within a given major release (EL8, EL9, etc). However the kABI breakage can occur, even within a minor release. In this case kmod packages will be rebuilt against the updated kernel. When this happens, the installed kmod needs to be updated upon the kernel update.
[1] ELRepo | FAQ