From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38820 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrGqB-0005Uk-9M for qemu-devel@nongnu.org; Sun, 20 Feb 2011 16:29:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrGq9-0000VS-Np for qemu-devel@nongnu.org; Sun, 20 Feb 2011 16:29:15 -0500 Received: from moutng.kundenserver.de ([212.227.17.9]:50008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrGq9-0000VI-B9 for qemu-devel@nongnu.org; Sun, 20 Feb 2011 16:29:13 -0500 From: Arnd Bergmann Subject: Re: [Qemu-devel] Re: Network bridging without adding bridge with brctl, possible? Date: Sun, 20 Feb 2011 22:28:55 +0100 References: <4D60E26D.3060202@web.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201102202228.55959.arnd@arndb.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerhard Wiesinger Cc: Jan Kiszka , qemu-devel@nongnu.org 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. Arnd