I recently installed Raspberry Pi OS on my Pi 3b. After some basic configuration and running raspi-config
, I installed wireguard using apt and the debian backport repos, according to a tutorial.
I wasn't able to start the service though:
# systemctl start wg-quick@wg0
Job for [email protected] failed because the control process exited with error code.
See "systemctl status [email protected]" and "journalctl -xe" for details.
# journalctl -u wg-quick@wg0
raspberrypi systemd[1]: Starting WireGuard via wg-quick(8) for wg0...
raspberrypi wg-quick[1773]: [#] ip link add wg0 type wireguard
raspberrypi wg-quick[1773]: Error: Unknown device type.
raspberrypi wg-quick[1773]: Unable to access interface: Protocol not supported
raspberrypi wg-quick[1773]: [#] ip link delete dev wg0
raspberrypi wg-quick[1773]: Cannot find device "wg0"
raspberrypi systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
raspberrypi systemd[1]: [email protected]: Failed with result 'exit-code'.
raspberrypi systemd[1]: Failed to start WireGuard via wg-quick(8) for wg0.
The key lines are Unknown device type
and Unable to access interface: Protocol not supported
. It seems like wireguard isn't able to create a new wireguard interface, as if the kernel module didn't exist...