Re: [Lxc-users] Making LXC accept an already open network interface—or other options

2011-05-10 Thread David Serrano
On Mon, May 9, 2011 at 14:52, Serge Hallyn serge.hal...@canonical.com wrote: Thanks for your response. Before scripting it, let's try manually first: devs=`ls /sys/class/net/veth*` ip link add type veth newdevs=`ls /sys/class/net/veth*` # Get the intersection of $devs and $newdevs I

Re: [Lxc-users] Making LXC accept an already open network interface—or other options

2011-05-10 Thread Serge Hallyn
Quoting David Serrano (dserra...@gmail.com): On Mon, May 9, 2011 at 14:52, Serge Hallyn serge.hal...@canonical.com wrote: Thanks for your response. Before scripting it, let's try manually first: devs=`ls /sys/class/net/veth*` ip link add type veth newdevs=`ls /sys/class/net/veth*`

Re: [Lxc-users] Making LXC accept an already open network interface—or other options

2011-05-10 Thread David Serrano
On Tue, May 10, 2011 at 16:36, Serge Hallyn serge.hal...@canonical.com wrote: 1. tell it to give you a normal network interface lxc.network.type=veth lxc.network.link=br0 lxc.network.flags=down 2. bring up the container 3. bring down the normal interface 4. Continue here with passing

Re: [Lxc-users] Making LXC accept an already open network interface—or other options

2011-05-09 Thread Serge Hallyn
Quoting David Serrano (dserra...@gmail.com): Hi, At $work we're currently using KVM and setting it up so that it uses a previously opened TAP interface: 'kvm -net tap,fd=3'. This way, we are able to create the interface a set up a couple of ebtables filters on it before going on. Now, we