From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=50261 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pr6PH-00074Z-9g for qemu-devel@nongnu.org; Sun, 20 Feb 2011 05:20:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pr6P9-00050K-H3 for qemu-devel@nongnu.org; Sun, 20 Feb 2011 05:20:40 -0500 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:50862 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pr6P8-0004zr-WB for qemu-devel@nongnu.org; Sun, 20 Feb 2011 05:20:39 -0500 Date: Sun, 20 Feb 2011 11:19:41 +0100 (CET) From: Gerhard Wiesinger Subject: Re: [Qemu-devel] Re: Network bridging without adding bridge with brctl, possible? In-Reply-To: <4D60E26D.3060202@web.de> Message-ID: References: <4D60E26D.3060202@web.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: Jan Kiszka Cc: qemu-devel@nongnu.org, Arnd Bergmann On Sun, 20 Feb 2011, Jan Kiszka wrote: > On 2011-02-19 20:32, Gerhard Wiesinger wrote: >> Any other suggestions to achieve this? > > http://virt.kernelnewbies.org/MacVTap > > Enabling host<->guest communication this way is still a bit unhandy > IMHO. You need a fairly recent iproute2 version, then set up macvtap > like this > > ip link add link eth1 name macvtap0 type macvtap mode bridge > > And you additionally seem to need a separate macvlan device attached to > that bridge, configured to the IP of the host. > > ip link add link eth1 name macvlan0 type macvlan mode bridge > ifconfig macvlan0 ... > > 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. Thnx Jan. That's exactly I'm looking for. Is it possible to use then a legacy type network card for "old" guests? e.g. ne2k_pci, i82551, i82557b, i82559er, rtl8139, e1000, pcnet and also virtio, virtio-net-pci > 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? 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? Thnx. Ciao, Gerhard -- http://www.wiesinger.com/