Talk:LXC

I removed the references to using a git repository for configuring the kernel for lxc, as it shouldn't be used. It hasn't been updated in nearly 2 years and is therefore unmaintained. Additionally, it's configuration diverges from upstream, and we always want to stay as close to upstream as possible, as this makes it so everyone can share improvements.

ComputerDruid 15:43, 2 August 2010 (GMT)

I'm using this setup for making the bridge. bridge_lxc0="" brctl_lxc0=( "setfd 0" "stp off" ) config_lxc0=( "ipv4/24"               "ipv6/64 scope link" ) --MasterMind 12:02, 10 April 2011 (GMT)

I appreciate the gentle Gentoo way of describing network devices in one centralised configuration file (/etc/conf.d/net), but I have not (yet) been able to work out how to describe a correct bridge. Issuing the following commands (see section will suffice as well (in given order): you have a quite decent documentation of the /etc/conf.d/net in the example file: /usr/share/doc/openrc-0.8.2/net.example (maybe you need to replace the version number)   HOSTIP="192.168.1.48" # use actual IP address of your hosts eth0 device    HOSTGW="192.168.1.1" # use actual IP address of your hosts gateway    brctl addbr br0    brctl setfd br0 0    ifconfig br0 ${HOSTIP} promisc up # <-- why promisc? promisc because the bridge usually only goes up with devices attached to it.

brctl addif br0 eth0 # <-- this line seems to destroy networking if eth0 is a preconfigured primary outbound interface ... bad! this is logical since the eth0 interface is part of a bridge now and cannot be configured with ip (different layers in OSI) think of the eth0 interface beeing hardwired to the interface br0. you won't configure the wire, you configure the interface (and that would be the interface br0 in this case) ifconfig eth0 0.0.0.0 up   route add -net default gw ${HOSTGW} (If you read this, and know how to create a bridge 'the Gentoo way', please give an example of a proper bridge description using /etc/conf.d/net here.)

maybe we should sort the whole article in something like host kernel configuration, installation of utilities, network configuration, creation of container-configs, creation of containers, container-configuration, troubleshooting