I am running balena-pihole project on Raspberry Pi 3 (64bit) whith Adafruit PiTFT 2.8" using balenaOS 2.38.0+rev1 because of this and this issue, which does not allow to show the PADD on the higher BalenaOS versions for some reason.
Recently I have decided to add Wireguard to this setup using the mentioned above container, and found out that the container can not create the network interface saying the following:
16.06.20 20:47:34 (+0300) wireguard No kernel headers found in the Ubuntu or Debian repos!! Will try the headers from host (if mapped), may or may not work
16.06.20 18:33:14 (+0300) wireguard [#] ip link add wg0 type wireguard 16.06.20 18:33:14 (+0300) wireguard RTNETLINK answers: Operation not supported 16.06.20 18:33:14 (+0300) wireguard Unable to access interface: Protocol not supported 16.06.20 18:33:14 (+0300) wireguard [#] ip link delete dev wg0 16.06.20 18:33:14 (+0300) wireguard Cannot find device "wg0"
I tried doing it manually with the same results. Fast google-fu, lead me here which hints (but may not be right), that newer kernel (>4.17) should work.
I alse tried the newest atm balenaOS 2.51.1+rev1 (32bit), which has the kernel 4.19.75, but the errors are still the same and the wireguard container still can not create the network interface needed…
Anyway, because PiTFT does not work with Balena versions higher then 2.38.1(the issue, mentioned above is still open) I would not want to use higher version, as I love the look of my PADD…
Therefore do you guys have any ideas how can I install linux kernel headers on my 2.38.1 BalenaOS, needed to successfully run Wireguard VPN? I know, I could just buy another device and use PiVPN project, which now supports Wireguard, but I love the idea of Balena and containerized application setup, so posting this here, hoping for your expertise.