Git Product home page Git Product logo

Comments (10)

M1chael avatar M1chael commented on August 17, 2024 2

Uhh... Seems like bad news for me. Thank you for your help anyway.

I think there is no need to fix the kernel version detection problem for OpenVZ servers because it will not help with WG deploying. So closing the issue.

from docker-wireguard.

aptalca avatar aptalca commented on August 17, 2024 1

If we can identify why it's not showing your exact kernel, we'll fix it in the image.

Can you give us the specifics of the machine? You mentioned VPS, where is it hosted? Details? What OS? etc.

Also post the result of uname -a

from docker-wireguard.

aptalca avatar aptalca commented on August 17, 2024

Post a full container log taken right after container creation

from docker-wireguard.

M1chael avatar M1chael commented on August 17, 2024

Full log

from docker-wireguard.

M1chael avatar M1chael commented on August 17, 2024

Keeping investigation have found /etc/cont-init.d/30-config in the container with:

 if apt-cache show linux-headers-$(uname -r) 2&>1 >/dev/null; then
  apt-get install -y \
    linux-headers-$(uname -r) \
    wireguard

Is it actually right thing to do? Do we need all these kernels sources?

from docker-wireguard.

aptalca avatar aptalca commented on August 17, 2024

Lol, it's supposed to install headers for a single kernel, the one you're using. What's the result of uname -r?

from docker-wireguard.

M1chael avatar M1chael commented on August 17, 2024

4.15.0

from docker-wireguard.

M1chael avatar M1chael commented on August 17, 2024

On my laptop apt-cache show linux-headers-$(uname -r) returns exactly one kernel with uname -r returning 5.3.0-53-generic. And in case of VPS with uname -r returning 4.15.0 apt-cache returns that huge list of kernels. Can I fix it somehow without risk to stuck again after the next image update? Or should it be fixed by docker image developer?

from docker-wireguard.

M1chael avatar M1chael commented on August 17, 2024
uname -a
Linux linux.c7aebb.vps 4.15.0 #1 SMP Mon Nov 25 18:42:58 MSK 2019 x86_64 x86_64 x86_64 GNU/Linu

It is Ubuntu 18.04.4 LTS VPS hosted on Ethernet Servers OpenVZ. What else kind of details can help you?

from docker-wireguard.

aptalca avatar aptalca commented on August 17, 2024

Yeah, openvz is the issue. I'm not too familiar with it, but it seems that the containers share the kernel with the host, and that it's not possible to install kernel modules inside the openvz container/VM: https://stackoverflow.com/a/22468756

So even if you figured out your current issue, installed the right headers, it still wouldn't work as it wouldn't be able to install the kernel module for wireguard.

from docker-wireguard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.