Page 1 of 1

R4SE Ubuntu bullseye - Wireguard kernel issue

Posted: Mon Oct 02, 2023 9:34 am
by JakusB
I tried everything, but I am stuck.
I want to install Wireguard onto ubuntu bullseye OS on NanoPi R4SE board.
Installation is successful, but starting fails with this error:
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: [#] sysctl -w net.ipv4.ip_forward=1
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: net.ipv4.ip_forward = 1
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: [#] ip link add wg0 type wireguard
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: RTNETLINK answers: Operation not supported
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: Unable to access interface: Protocol not supported
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: [#] ip link delete dev wg0
Oct 02 09:31:46 NanoPi-R4SE wg-quick[7327]: Cannot find device "wg0"
Oct 02 09:31:46 NanoPi-R4SE systemd[1]: wg-quick@wg0.service: Failed with result 'exit-code'.
Oct 02 09:31:46 NanoPi-R4SE systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.

It seems kernel headers is not provided in provided OS images:
rk3399-sd-debian-bullseye-minimal-4.19-arm64-20230314.img
rk3399-sd-debian-buster-desktop-4.19-arm64-20230314.img

Please help me understand how to get this resolved. I really want Wireguard to work.
Many thanks in advance!

Re: R4SE Ubuntu bullseye - Wireguard kernel issue

Posted: Fri Apr 26, 2024 9:32 am
by hungortiz
Hello,
I think you should verify kernel headers. Confirm whether the necessary kernel headers are available in the provided OS images. You can check this by running the following command:

Code: Select all

apt list linux-headers-$(uname -r)

If the command returns a package name, it means the kernel headers are available. If not, you will need to find and install the appropriate kernel headers manually.