Wireguard on my Raspberry Pi
This took some effort as the OS was in an inconsistent state when I installed wireguard using the buster-backports repo that debian provides.
The problem I was facing involved the kernel module for wireguard not being compiled as seems like the newer version of the kernel had been installed – and wireguard-dkms was installing for the newer version of the kernel, but the raspberry pi was not rebooted and hence was running the older kernel for which the dynamic kernel module did not exist.
I had to do a full system upgrade using:
apt update
# followed by
apt upgrade
and a reboot using shutdown -r now
.
Even after the reboot, there seemed to be some issue with the loading of the module. So as a last step before pulling out the bigger guns, I made wireguard recompile the kernel module using
dpkg-reconfigure wireguard-dkms
That made it run as butter.