Jump to content

Wireguard Borking System


Go to solution Solved by 0jay,

Recommended Posts

Hi, just to be clear I've zero doubt the problem is me but this is a recurring issue and I've been unable to nut it out on my own.

 

I've found (both with bullseye and bookworm) that installing Wireguard borks my system - ie I am unable to boot after install. I'm running headless and therefore am limited diagnostically (I can't say what errors are occurring when attempting to reboot)

 

I realise this'll make my problem frustrating for a lot of folks to engage with but any ideas at all'd be helpful.

 

When first using Armbian a few years back it seemed as though the issue was that the LTS kernel did not include wireguard support and I discovered installing an edge kernel allowed me to install and use Wireguard successfully. I'm now getting the issue with Bookworm though so clearly my problem was not the kernel and whatever allowed me to install Wireguard was just incidentally triggered by the process I followed to install the edge kernel.

 

I've done seven fresh installs in the last few days just to get my system bedded down and am a bit nervous about experimenting too much given cellular internet with limited data allowance. I'm hoping to swing into this with at least some idea about what the problem might be and how I might resolve it so I can minimise danger of another time consuming reinstallation.

 

System is a Libre Renegade board (Rockchip 64)

 

Thanks in advance for any ideas.

Oscar

Link to comment
Share on other sites

On 9/16/2024 at 9:55 AM, 0jay said:

I'm running headless and therefore am limited diagnostically (I can't say what errors are occurring when attempting to reboot)

Without proper logs this hard to track down. Try to grab some actual logs when you get a chance: https://debug.armbian.de

 

Wireguard is - kernel-wise at least - nowadays included in all Armbian images. However it might be necessary to install userspace tools separately (i.e. apt install --no-install-recommends wireguard-tools), especially on minimal images.

Link to comment
Share on other sites

Hi Werner, thanks for your reply.
 

I tried again several times today, including with the latest server image and am still unable to boot following installation (though no errors are reported).

 

It occurred to me I should've tried installing headers first but I've spent another day trying to nut it out so I'll have to leave it for another day.

 

Really frustrating not knowing what I'm doing wrong.

 

apt install --no-install-recommends wireguard-tools

 

I'll give this a try next time, thanks.

 

Edited by 0jay
Link to comment
Share on other sites

Ah yeah, now I know.

You are installing with recommends which might include wireguard and wireguard-dkms packages which have dependency on stock Debian/Ubuntu kernel which then will be installed and render your system unbootable.

Link to comment
Share on other sites

5 minutes ago, Werner said:

might include wireguard and wireguard-dkms packages which have dependency on stock Debian/Ubuntu kernel which then will be installed and render your system unbootable.

 

Thank you!

 

Can I just apt uninstall those packages? Are there only the two that can cause this issue that I need to remove?

Edited by 0jay
Link to comment
Share on other sites

4 minutes ago, Werner said:

nothing besides the userspace tools is required

 

I'll hook into this in the next few days, thanks for your time nutting it out it'll be great to finally have it sorted :)

 

Best regards,

Oscar

Link to comment
Share on other sites

On 9/17/2024 at 8:16 PM, Werner said:

You are installing with recommends which might include wireguard and wireguard-dkms packages

Unfortunately apt install --no-install-recommends wireguard doesn't help. I started by installing headers first which seemed to skip a kernel install (at least I got a – autoinstall for kernel 6.1.0-23-rt-arm64 was skipped since the kernel headers for this kernel do not seem to be installed – message) but still no boot on restart.

 

I even tried installing edge kernel and headers which worked for me last time but as soon as Wireguard's installed it refuses to boot.

Link to comment
Share on other sites

38 minutes ago, 0jay said:

Unfortunately apt install --no-install-recommends wireguard

I think you are missing the point @Werner stated stated above.

 

On 9/17/2024 at 6:21 AM, Werner said:

As mentioned Armbian kernel comes with wireguard module pre-installed so nothing besides the userspace tools is required

Wireguard is preinstalled on Armbian.  So there isn't anything you should need to install other than the tools (depending on build).

 

On all my Armbian install wireguard works with no extra installation required, just configuration.

Link to comment
Share on other sites

1 hour ago, SteeMan said:

Wireguard is preinstalled

 

Thanks SteeMan, wireguard-tools show as installed, I think the metapackage needs installation (which I'd guess is why I can actually install the package without getting a message it's already present).

 

My issue is that the OMV plugin installation results in the same unbootable state. I'm trying to save myself the time of reinstalling OMV every time and work out why a wireguard install renders Armbian unbootable. Igor (and Werner) have observed it probably has to do with dkms packages which I suppose is why wireguard installation defaults to installing a linux package which I guess installs an incompatible kernel.

 

I'd been hoping that the pre-rolled Arbian/OMV images might solve this problem but it's looking unlikely unless the OMV-Extras team can suggest a solution.

Edited by 0jay
Link to comment
Share on other sites

27 minutes ago, Werner said:

I still believe a simple "apt-get install --no-install-recommends wireguard-tools" does the trick

 I did try this Werner, it still installed a vanilla debian kernel

 

Tools is installed by default, it's the meta package that's the problem and the OMV plugin requires the meta package

Edited by 0jay
Link to comment
Share on other sites

On 9/19/2024 at 9:48 AM, 0jay said:

Install wireguard, then goto arbian-config and install the kernel and headers, that way you overwrite the kernel from the wireguard installation.

 

Which exact options did you choose on armbian-config after installing wireguard? I can see "Headers_install" under system. Is that it? What else?

 

Thanks,

 

Link to comment
Share on other sites

8 hours ago, pdieguez said:

are your kernel upgrades still frozen?

Haven't you updated any since you installed Wireguard?

 

Freezing kernel upgrades just means you can stay with a stable kernel and an update command will leave your kernel as is (in this case remain on the current edge kernel while updating the rest of the system).

 

It's easy to unfreeze and update when there's a new LTS kernel available.

Edited by 0jay
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines