Date: Sun, 9 Mar 2008 07:53:08 +0100 (CET) From: Peter Ulrich Kruppa <ulrich@pukruppa.net> To: Juergen Lock <nox@jelal.kn-bremen.de> Cc: freebsd-emulation@freebsd.org Subject: Re: Qemu: bridging on FreeBSD 7.0-STABLE Message-ID: <20080309074218.K1562@pukruppa.net> In-Reply-To: <200803081947.m28JljAR041681@saturn.kn-bremen.de> References: <20080308054515.V19713@pukruppa.net> <20080308113537.GA25773@mail.scottro.net> <200803081947.m28JljAR041681@saturn.kn-bremen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Great thanks to Juergen, Per and Scott (ordered alphabetically)! For the records: On Sat, 8 Mar 2008, Juergen Lock wrote: > 1. Preparation: > > I added > perm tap0 0660 > to /etc/devfs.conf (my user is in wheel, if yours isnt maybe do > own tap0 john:john > like in the howto) > > 2. after that, or later after reboot, as root: > kldload aio kqemu if_bridge if_tap > sysctl net.link.tap.up_on_open=1 > sysctl net.link.tap.user_open=1 > /etc/rc.d/devfs restart > touch /dev/tap0 > ifconfig bridge0 create > ifconfig bridge0 addm em0 > ifconfig bridge0 addm tap0 > ifconfig bridge0 up > (as you can see that box' physical nic is an em(4), use whatever yours is) > > 3. now start qemu as user: > qemu-system-x86_64 -m 256 -cdrom > 7.0-RELEASE-amd64-livefs.iso -net nic -net > tap,ifname=tap0,script=/usr/bin/true -boot d ^^^^^^^^^^^^^^^^^^^^ That's it: I need -net tap,script=/usr/bin/true I never had thought about that. I have tried script=/etc/qemu-ifup but to set it to true ... !?! Again thank you, Uli. ------------------------------------- Peter Ulrich Kruppa Wuppertal Germany
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080309074218.K1562>