Qemu: bridging on FreeBSD 7.0-STABLE
Peter Ulrich Kruppa
ulrich at pukruppa.net
Sun Mar 9 06:52:41 UTC 2008
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
More information about the freebsd-emulation
mailing list