Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Add more interfaces to containers and to host #67

Open
emibcn opened this issue May 23, 2014 · 4 comments
Open

Add more interfaces to containers and to host #67

emibcn opened this issue May 23, 2014 · 4 comments

Comments

@emibcn
Copy link

emibcn commented May 23, 2014

It would be great to be able to configure more interfaces to each container and to the host, so creating more sophisticated network configurations.

@ElieDeloumeau
Copy link
Member

i can do this for a container but not for the host (because the future LXC Web Panel will be cross distros)

@emibcn
Copy link
Author

emibcn commented May 26, 2014

For host networking, I'm speaking about the "LXC Settings" => "Networking" menu option. With that we'll be able to configure n virtual/phys bridged networks, for example. Then, in VMs, we'll be able to choose between any of these to attach an interface to. Maybe, a multi-distro solution is to just add interfaces to the list, not to configure them.

@ElieDeloumeau
Copy link
Member

yes but this feature use lxc-net (only on ubuntu by default) and i can't do this for all linux distributions.

@emibcn
Copy link
Author

emibcn commented May 26, 2014

Ok. Just be able to add more interfaces to each VM could be great. Configuring extra bridges in the host is up to advanced users/admins and the use of them will still be available on VMs config.

Looking at lwp/__init__.py , it looks like LXC config options are expected to be unique. An example of multi-interfaces config might be:

# begin eth0
lxc.network.type = veth
lxc.network.hwaddr = 00:16:3e:7d:f1:af
lxc.network.flags = up
lxc.network.link = br0
# end eth0

# begin eth1
lxc.network.type = veth
lxc.network.hwaddr = 00:16:3e:7d:f1:bf
lxc.network.flags = up
lxc.network.link = br1
# end eth1

# begin eth2
lxc.network.type = veth
lxc.network.hwaddr = 00:16:3e:7d:f1:cf
lxc.network.flags = up
lxc.network.link = virbr0
# end eth2

Because there is no difference between the options of different interfaces, parser could look options between comments, like shown on the example. I can work on a fork and then do a pull request, if you like.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants