Comments (9)
I was trying long time ago, it was working with bridges, I think DHCP will not work in macvlan mode
from kube-pipework.
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.
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.
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.
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.
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.
OK, I got it to work with static IPs but DHCP does not work at all.
Have you tried with DHCP?
from kube-pipework.
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.
After much troubleshooting:
-
ln: failed to create symbolic link '/sys/fs/cgroup/systemd/name=systemd': Operation not permitted
does not seem to affect anything -
DHCP does not seem to work with macvlan for the time
-
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-pipework.