From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48096 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pr7K0-0006z6-1l for qemu-devel@nongnu.org; Sun, 20 Feb 2011 06:20:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pr7Ju-0007K4-JV for qemu-devel@nongnu.org; Sun, 20 Feb 2011 06:19:19 -0500 Received: from fmmailgate03.web.de ([217.72.192.234]:45448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pr7Ju-0007Jy-63 for qemu-devel@nongnu.org; Sun, 20 Feb 2011 06:19:18 -0500 Message-ID: <4D60F8AE.4070706@web.de> Date: Sun, 20 Feb 2011 12:19:10 +0100 From: Jan Kiszka MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Network bridging without adding bridge with brctl, possible? References: <4D60E26D.3060202@web.de> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig13BCCA32BBB59F1BF2F9AA1D" Sender: jan.kiszka@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerhard Wiesinger Cc: qemu-devel@nongnu.org, Arnd Bergmann This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig13BCCA32BBB59F1BF2F9AA1D Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2011-02-20 11:19, Gerhard Wiesinger wrote: > On Sun, 20 Feb 2011, Jan Kiszka wrote: >=20 >> 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 t= o >> 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. >=20 > Thnx Jan. That's exactly I'm looking for. >=20 > Is it possible to use then a legacy type network card for "old" guests?= >=20 > e.g. ne2k_pci, i82551, i82557b, i82559er, rtl8139, e1000, pcnet > and also virtio, virtio-net-pci For sure. >=20 >> Of course, you could also simply offload all that setup to libvirt. >=20 > http://wiki.libvirt.org/page/Networking > But that still needs a bridge on ethernet level and break up the > existing interface, right? http://libvirt.org/formatdomain.html#elementsNICSDirect But it looks like it doesn't handle the host-guest setup I described, and bridging is supposed to be done the classic way. >=20 > BTW: From: http://virt.kernelnewbies.org/MacVTap > As of QEMU 0.12: > qemu -net nic,model=3Dvirtio,addr=3D1a:46:0b:ca:bc:7b -net tap,fd=3D3 > 3<>/dev/tap11 > Is there a newer Syntax with tap interfaces possible (QEMU GIT) without= > bash redirects? Nope. Normally, the fd is passed in by the management tool. So the existing interface was sufficient. Jan --------------enig13BCCA32BBB59F1BF2F9AA1D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk1g+LMACgkQitSsb3rl5xTOmwCg1Q+yBUiSsE4v6BIrOntl6lRo hDsAoKIakiLfoZJM/z5GDtsI3Pfcf48X =SyRJ -----END PGP SIGNATURE----- --------------enig13BCCA32BBB59F1BF2F9AA1D--