Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

OpenVZ is not supported. Script needs to detect it. #15

Closed
GuBo88 opened this issue Jan 28, 2019 · 13 comments
Closed

OpenVZ is not supported. Script needs to detect it. #15

GuBo88 opened this issue Jan 28, 2019 · 13 comments

Comments

@GuBo88
Copy link

GuBo88 commented Jan 28, 2019

Hi,

I used your script on a VPS with CentOS 7. The installation runs smooth. I also can connect from the Wireguard iOS App. But I can't connect to any webpage. By manually starting up Wireguard I run into the following problem:

root@GuBo ~]# wg-quick up wg0
[#] ip link add wg0 type wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0

Can you help?
Thanks

@ghost
Copy link

ghost commented Jan 28, 2019

is this a client side error or a server side error??

@GuBo88
Copy link
Author

GuBo88 commented Jan 28, 2019 via email

@ghost
Copy link

ghost commented Jan 28, 2019

@GuBo88
Copy link
Author

GuBo88 commented Jan 29, 2019

On Debian 9.2 (64-bit) Minimal and following the above steps I get the following error:
/usr/lib/wireguard_install.sh: line 146: /etc/iptables/rules.v4: No such file or directory
Failed to enable unit: File wg-quick@wg0.service: No such file or directory
Failed to start wg-quick@wg0.service: Unit wg-quick@wg0.service not found.

Thanks

@l-n-s
Copy link
Owner

l-n-s commented Jan 29, 2019

@GuBo88 looks like your server has problems with wireguard kernel module. Is it a virtual server? Does it allow kernel modules to be loaded?

@GuBo88
Copy link
Author

GuBo88 commented Jan 30, 2019

It's a virtual server (https://www.liteserver.nl). I'm not sure if it allow kernel modules to be installed.

@l-n-s
Copy link
Owner

l-n-s commented Jan 30, 2019

@GuBo88 good, is it KVM or OpenVZ plan?

@GuBo88
Copy link
Author

GuBo88 commented Jan 31, 2019

OpenVZ and installing Kernel modules is not possible in OpenVZ at Liteserver. I need a KVM VPS from them.

@GuBo88
Copy link
Author

GuBo88 commented Jan 31, 2019

Any way to run Wireguard on OpneVZ?

@l-n-s l-n-s changed the title Interface wg0 not found OpenVZ is not supported. Script needs to detect it. Jan 31, 2019
@l-n-s
Copy link
Owner

l-n-s commented Jan 31, 2019

You can install a userspace version of Wireguard, but it performs a lot worse than the kernel module. I'd suggest changing your VPS plan to KVM.

@hexicans
Copy link

Hello,
Seem now it's supported, no ? https://wiki.openvz.org/VPN_using_Wireguard

@l-n-s
Copy link
Owner

l-n-s commented Nov 16, 2019

No, it's not. This instruction is for hosting providers, not for clients.

@hexicans
Copy link

If I configure host and container, I can run a wireguard server I think

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants