You are not logged in.

#1 2020-05-20 15:43:55

art
Member
Registered: 2019-08-12
Posts: 42

Wireguard. "Error: Unknown device type"

Hi, why wireguard does not work and fails with this? I installed "wireguard-tools" and linux kernel is 5.6.4-arch1-1. Network Manager is installed but it also does not work with this.

[I] ➜ sudo wg-quick up MYCONFIG
[#] ip link add MYCONFIG type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
[#] ip link delete dev MYCONFIG
Cannot find device "MYCONFIG"

For network manager:

Error: Connection activation failed: MYCONFIG failed to create resources: Failed to create WireGuard interface 'MYCONFIG' for 'MYCONFIG:  [Here it writes in other language, "unsupported operation"]

In MYCONFIG (lines removed):

[Interface]
Address = **** /32
DNS = ***
PrivateKey = ***

[Peer]
PublicKey = ****
AllowedIPs = 0.0.0.0/0,::/0
Endpoint = ***:51820

Offline

#2 2020-05-20 18:13:03

cmm11
Member
Registered: 2018-02-18
Posts: 30

Re: Wireguard. "Error: Unknown device type"

*update - sorry Slithery is correct, it should already be compiled in the kernel.

Last edited by cmm11 (2020-05-22 05:08:16)

Offline

#3 2020-05-20 18:50:37

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,335

Re: Wireguard. "Error: Unknown device type"

cmm11 wrote:

Check you have package "wireguard-dkms" installed and also "linux-headers".

Why? It's been built into the kernel since 5.6...


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2020-07-14 11:19:46

CoreCat
Member
Registered: 2017-02-05
Posts: 23

Re: Wireguard. "Error: Unknown device type"

I have the same issue.
Kernel is 5.7.7-arch1-1, so according to the wiki there's no need to install the wireguard-dkms package.
But

modprobe wireguard

gives no output.
I have the linux-headers package installed.

Offline

#5 2022-05-02 11:56:50

lyj0309
Member
Registered: 2022-05-02
Posts: 1

Re: Wireguard. "Error: Unknown device type"

i think is your host is base on openzv or lxc ,which is not support change kernnel. so if you want to use wireguard ,use wireguard-go

Offline

#6 2022-05-02 12:20:36

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 3,966

Re: Wireguard. "Error: Unknown device type"

lyj0309, thank you for the contribution, but this thread is almost two years old. Please do not necrobump.

Closing.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB