jpetazzo / pipework

Software-Defined Networking tools for LXC (LinuX Containers)
Apache License 2.0
4.22k stars 727 forks source link

support for fedora #44

Closed xdays closed 10 years ago

xdays commented 10 years ago

I use fedora, there's no package related to udhcpc,I changed to dhclient。 but it seemed this tools does not work with fedora

/usr/local/sbin/pipework: line 177: 13867 Segmentation fault      ip link add link $IFNAME dev $GUEST_IFNAME type macvlan mode bridge
jpetazzo commented 10 years ago

That seems to be a bug in the iproute package.

Does it happen reliably or randomly?

xdays commented 10 years ago

I have no dhcp now, I will test it again next monday. by the way, cloud you give me some suggesions to understand the technology in pipework? I know nothing about cgroup and namespaces.

jpetazzo commented 10 years ago

Pipework itself just uses iproute, bridges ... through standard Linux commands.

Cgroups and namespaces are the kernel features used by Linux Containers and Docker to provide lightweight virtualization.

If you want an intro to LXC, you can check those slides: http://www.slideshare.net/jpetazzo/scale11x-lxc-talk-1

And if you want an intro to Docker, you can check those slides: http://www.slideshare.net/jpetazzo/docker-introduction-meet-up-whats-new-0-9

I hope this helps!

xdays commented 10 years ago

thank you for the slide. I try it just now, it works with dhclient, The system stuck when I try static ip address. anyway, I don't think I have enough knowledge to address the problem, so looking forward this feather merged to docker. thanks!

dubglan commented 9 years ago

@xdays We hit this issue sometimes (about once in 100k container provisionings). This appears to be a kernel problem, still researching which one. In our case we're using 0/0 IP and then run dhclient from within Docker container. You can take a look at https://bugzilla.redhat.com/show_bug.cgi?id=1091779