Received: from [140.186.70.92] (port=49827 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrP1o-0005Xa-1n for qemu-devel@nongnu.org; Mon, 21 Feb 2011 01:13:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrP1i-0001dY-67 for qemu-devel@nongnu.org; Mon, 21 Feb 2011 01:13:43 -0500 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:34960 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrP1h-0001c4-5C for qemu-devel@nongnu.org; Mon, 21 Feb 2011 01:13:42 -0500 Date: Mon, 21 Feb 2011 07:12:57 +0100 (CET) From: Gerhard Wiesinger Subject: Re: [Qemu-devel] Re: Network bridging without adding bridge with brctl, possible? In-Reply-To: <201102202228.55959.arnd@arndb.de> Message-ID: References: <4D60E26D.3060202@web.de> <201102202228.55959.arnd@arndb.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Arnd Bergmann Cc: Jan Kiszka , qemu-devel@nongnu.org On Sun, 20 Feb 2011, Arnd Bergmann wrote: > On Sunday 20 February 2011, Gerhard Wiesinger wrote: >>> >>> Not sure if this is by design or due to internals of the networking >>> stack, but it looks unintuitive from user perspective. Maybe Arnd can >>> shed a light on this. > > The lower device cannot be in bridge mode, because that would make the > logic in the kernel awfully complex. I agree that it's a bit unfortunate, > but it simplified the design a lot. > >> >>> Of course, you could also simply offload all that setup to libvirt. >> >> http://wiki.libvirt.org/page/Networking >> But that still needs a bridge on ethernet level and break up the existing >> interface, right? > > No. macvtap is a tap that sits on an external interface, you don't > need a bridge if you use it. > >> BTW: From: http://virt.kernelnewbies.org/MacVTap >> As of QEMU 0.12: >> qemu -net nic,model=virtio,addr=1a:46:0b:ca:bc:7b -net tap,fd=3 3<>/dev/tap11 >> Is there a newer Syntax with tap interfaces possible (QEMU GIT) without >> bash redirects? > > I made some suggestions how to integrate it with qemu, but they never got in. > Libvirt makes it a lot easier, though. We discussed that it should be cleaned > up when the networking helper scripts make it into qemu. Not sure if that > ever happened. I think now it's a good time to integrate this :-) Ciao, Gerhard -- http://www.wiesinger.com/