Page MenuHomeVyOS Platform

1.2.0-rc9 Wireguard config disappears
Closed, ResolvedPublicBUG

Description

The config just vanishes.

Trying to recreate it gives:

admin@route-extern# commit
save[ interfaces wireguard wg0 ]
modprobe: ERROR: could not insert 'wireguard': Exec format error
modprobe wireguard failed

[[interfaces wireguard wg0]] failed
Commit failed

Details

Difficulty level
Unknown (require assessment)
Version
1.2.0-rc9
Why the issue appeared?
Will be filled on close

Event Timeline

kroy updated the task description. (Show Details)
hagbard added a subscriber: hagbard.

Can you please send me the output of 'uname -a'. Thx.

Linux route-extern.xxx.xx.xx 4.19.4-amd64-vyos #37 SMP Mon Nov 26 10:03:40 CET 2018 x86_64 GNU/Linux

Kernel module hasn't been rebuilt on our side. The current package will put that under /lib/modules/4.19.0-amd64-vyos/extra/ and your kernel is 4.19.4 and won't find it. I have a look into the package right now.

Umm, that's not what happened. It looks like it needs to be in the 4.19.0 directory to work

admin@route-extern:~$ ls -al /lib/modules/4.19.0-amd64-vyos/extra/
total 70
drwxr-xr-x 2 root root    49 Nov 26 19:29 .
drwxr-xr-x 3 root root    28 Nov 26 19:29 ..
-rw-r--r-- 1 root root 44832 Nov 25 20:46 ipoe.ko
-rw-r--r-- 1 root root 26512 Nov 25 20:46 vlan_mon.ko
admin@route-extern:~$ ls -al /lib/modules/4.19.4-amd64-vyos/extra/
total 316
drwxr-xr-x 2 root root     35 Nov 26 19:29 .
drwxr-xr-x 4 root root    309 Nov 26 19:31 ..
-rw-r--r-- 1 root root 323200 Nov 25 13:23 wireguard.ko

Hmm. looks strange. 4.19.0-amd64-vyos isn't required as you are running on 4.19.4-amd64-vyos. Can you load the module manually? (sudo modprobe wireguard).

That didn't do anything.

admin@route-extern:~$ sudo dpkg -i wireguard-modules_0.0.20181018-1_amd64.deb
(Reading database ... 53060 files and directories currently installed.)
Preparing to unpack wireguard-modules_0.0.20181018-1_amd64.deb ...
Unpacking wireguard-modules (0.0.20181018-1) over (0.0.20181018-1) ...
Setting up wireguard-modules (0.0.20181018-1) ...

Reboot

This file still exists as before:

admin@route-extern:~$ ls -al /lib/modules/4.19.4-amd64-vyos/extra/wireguard.ko
-rw-r--r-- 1 root root 323200 Nov 25 13:23 /lib/modules/4.19.4-amd64-vyos/extra/wireguard.ko

But the module is failing like it's corrupted (same output of trying to add a wg0 interface manually):

admin@route-extern:~$ sudo modprobe -f wireguard
modprobe: ERROR: could not insert 'wireguard': Exec format error

Hmm, ok I gotta check on that.

As another question, is that a bug that ipoe.ko and vlan_mon.ko are ending up under the old kernel modules?

Well not really, the ones who rebuilt the new kernel didn't know about those. I'm working on IPoE integration (similar like a PPPoE server but without the PPP =), They won't do anything.

maybe contact @c-po for kernel 4.19.4

@Line2 He will be in bed right now. It's 11pm in Germany.

I know. Please don't contact him by phone :-)

best regards from Switzerland
Line2

I was thinking about swatting. Draws the most attention. (We(s)tcoast Canada)

@kroy can you please use the rolling release. I checked the module does work in rolling.

confirmed. This rolling release has a working wireguard.

vyos-1.2.0-rolling%2B201811260337-amd64.iso

Confirmed that the posted RC9 works now too