Wireguard on CentOS 8 not working.

As title.
When I try to use wireguard on CentOS 8 I get those errors.

[root@netstar ~]# modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.18.0-80.11.2.el8_0.x86_64
[root@netstar ~]# ip link add dev wg0-server type wireguard
RTNETLINK answers: Operation not supported

Using grub2 kernel on my linode.

Any Idea?

1 Reply

Hi there,

I was able to find a post on Reddit regarding this exact issue. It looks like Wireguard has an issue with that particular kernel of CentOS 8. Here are some steps to take to try an resolve the issue:

1.dnf-install wireguard-tools and wireguard-dkms (the -dkms rpm install will fail silently, by not producing the desired wireguard module)

2.Cut and paste the following:

cd /usr/src/wireguard-0.0.20200121/

patch -p0 < /path/to/patch.file

  1. Tell the dkms to try again:

dkms build -m wireguard -v 0.0.20200121

dkms install -m wireguard -v 0.0.20200121

  1. Try using Wireguard again

Hereis a link to the post should you need more reference. I hope this was helpful!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct