Code Monkey home page Code Monkey logo

Comments (9)

kvaps avatar kvaps commented on June 12, 2024 1

I was trying long time ago, it was working with bridges, I think DHCP will not work in macvlan mode

from kube-pipework.

kvaps avatar kvaps commented on June 12, 2024

Hi, yes, I'm using it pipework with bridges in Kubernetes. My cmdline is looking like:

docker run --privileged --pid=host --net=host \
  -v /var/run/docker.sock:/docker.sock \
  -e run_mode=batch,daemon \
  -e host_routes=true \
  -e route_add_delay=1\
  kvaps/pipework:v1.0.0

I think you're specified pipework_cmd wrong, eth1 - it is host interface.

from kube-pipework.

sotiris-bos avatar sotiris-bos commented on June 12, 2024

Thanks for the reply. I have tried on 4 distros with two different docker versions now, none of them worked.

That is how I am using it as well. eth1 is the container interface that pipework tries to create and fails, not the host interface.

Would you mind sharing your docker and containerd versions?

from kube-pipework.

kvaps avatar kvaps commented on June 12, 2024

Sure, I have Arch Linux with docker 19.03.5-ce, build 633a0ea838
and Ubuntu 18.04.2 LTS with Docker version 19.03.5, build 633a0ea838

Please show me your pipework_cmd line

from kube-pipework.

sotiris-bos avatar sotiris-bos commented on June 12, 2024

Thanks again for your reply!

I have tried with pipework_cmd=eno1 test_myapp_1 dhcp and pipework_cmd= direct-phys eno1v2 test10 10.0.10.240/24 to pass an SR-IOV VF through and many other permutations with both docker run and docker-compose. Interface and container names were correct at all instances.

I tried on Arch 5.3.8 and Centos 8 with 19.03.5-ce, build 633a0ea838 and Ubuntu 18.04 and 16.04 with 18.09.7 docker.io apt packages.

On all occasions, I get the cgroup error I mentioned in the first post. I feel like pipework is not able to create the ethX interface in the test containers for some reason. I will run the pipework container with debug mode and report back with all commands and outputs as soon as I can.

from kube-pipework.

kvaps avatar kvaps commented on June 12, 2024

I have this error too, but pipework is working for me.

BTW, this error was mentioned for dreamcat4/pipework even 3 years ago:
dreamcat4/docker-images#12 (comment)

from kube-pipework.

sotiris-bos avatar sotiris-bos commented on June 12, 2024

OK, I got it to work with static IPs but DHCP does not work at all.

Have you tried with DHCP?

from kube-pipework.

sotiris-bos avatar sotiris-bos commented on June 12, 2024

OK I tried manually running pipework with --direct-phys option and dhclient and it works.

./pipework --direct-phys eno1v0 a5eea2eac14d dhclient

Any idea why the --direct-phys option does not work with the docker pipework and pipework_cmd ?

from kube-pipework.

sotiris-bos avatar sotiris-bos commented on June 12, 2024

After much troubleshooting:

  1. ln: failed to create symbolic link '/sys/fs/cgroup/systemd/name=systemd': Operation not permitted does not seem to affect anything

  2. DHCP does not seem to work with macvlan for the time

  3. The --direct-phys option to assign full physical or SR-IOV virtual interfaces had not been implemented by dreamcat4. After much help from them it has now been implemented and is working: dreamcat4/docker-images#46

I am going ahead and closing the issue.

from kube-pipework.

Related Issues (2)

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.