Skip to content

Comments

[RFC] hostbridge and IPv6 for containers#12736

Closed
kampfschlaefer wants to merge 12 commits intoNixOS:release-15.09from
kampfschlaefer:feature/hostbridge_for_containers
Closed

[RFC] hostbridge and IPv6 for containers#12736
kampfschlaefer wants to merge 12 commits intoNixOS:release-15.09from
kampfschlaefer:feature/hostbridge_for_containers

Conversation

@kampfschlaefer
Copy link
Contributor

Hi all,

scratching my own itch I had some ideas on how to a) give nixos containers IPv6 and b) allow declarative containers to join an existing bridge for connectivity.

What I mostly do not like yet: It should be possible to define the network-settings inside the container with networking.interfaces.eth0.* instead of defining it from the outside.

So please comment on this, maybe I can rework this into something usable to get IPv6 and bridging to declarative containers.

hostBridge now takes precedence over hostAddress and hostAddress6.
When the ping was executed, the container might not have finished starting. Or
the host-side of the container wasn't finished with config. Waiting for
2 seconds in between fixes this.
Mostly copied from containers.nix but I stripped away the imperative container
tests.
Seems odd to define the container IPs with their prefix length attached. There
should be a better way…
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @edolstra, @vcunat and @aszlig to be potential reviewers

@fpletz fpletz added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Jan 31, 2016
@fpletz fpletz self-assigned this Jan 31, 2016
@Profpatsch
Copy link
Member

(triage) cc @aristidb @edolstra @aszlig @chaoflow

@fpletz
Copy link
Member

fpletz commented Mar 16, 2016

Finally got some time to review your changes. Big 👍, very cool!

Could you maybe group your commits into 2 or 3 commits without the fixes?

@kampfschlaefer
Copy link
Contributor Author

Could you maybe group your commits into 2 or 3 commits without the fixes?

Will do. Also there is one little detail missing: when host-bridge is used, the vb-* device needs to be deleted to make sure. Got bitten by this unclean exit several times now…

How do I go then with this PR? Surely it shouldn't be merged into 15.09 anymore. But is it for master or can it also go into 16.x?

@kampfschlaefer
Copy link
Contributor Author

superseeded by #14018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants