Qemu: bridging on FreeBSD 7.0-STABLE

Peter Ulrich Kruppa ulrich at pukruppa.net
Sun Mar 9 11:34:38 UTC 2008


On Sun, 9 Mar 2008, Per Hedeland wrote:

> Peter Ulrich Kruppa <ulrich at pukruppa.net> wrote:
>>>
>>> 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 ... !?!
>
> Well, 'exit 0' in the script would then have worked too:-)
Actually: no :-(
> (you do
> realize that the above runs /usr/bin/true *instead* of /etc/qemu-ifup, I
> hope).
Actually: no (since I am no big shell script hacker). Old simple 
that I am, I believed it said, "Yes there is a script at the 
default place /etc/qemu-ifup. Do use it."

> It would have been somewhat interesting to know why the
> (redundant, in your case) ifconfig in the script failed though - maybe
> it was just that /sbin wasn't in $PATH at that point.
>
> --Per
>
Greetings,

Uli.


-------------------------------------
Peter Ulrich Kruppa
Wuppertal
Germany


More information about the freebsd-emulation mailing list