« Return to Thread: Qemu: bridging on FreeBSD 7.0-STABLE

Re: Qemu: bridging on FreeBSD 7.0-STABLE

by uli1967 :: Rate this Message:

Reply to Author | View in Thread


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
_______________________________________________
freebsd-emulation@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@..."

 « Return to Thread: Qemu: bridging on FreeBSD 7.0-STABLE