From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 9 11:34:37 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7C4D1065676 for ; Sun, 9 Mar 2008 11:34:37 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (pukruppa.net [213.146.114.24]) by mx1.freebsd.org (Postfix) with ESMTP id D13288FC1B for ; Sun, 9 Mar 2008 11:34:36 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (localhost [127.0.0.1]) by pukruppa.net (8.14.2/8.14.2) with ESMTP id m29BZ4Ye034372; Sun, 9 Mar 2008 12:35:05 +0100 (CET) (envelope-from ulrich@pukruppa.net) Received: from localhost (ulrich@localhost) by pukruppa.net (8.14.2/8.14.2/Submit) with ESMTP id m29BZ22d034369; Sun, 9 Mar 2008 12:35:03 +0100 (CET) (envelope-from ulrich@pukruppa.net) Date: Sun, 9 Mar 2008 12:35:01 +0100 (CET) From: Peter Ulrich Kruppa To: Per Hedeland In-Reply-To: <200803091120.m29BKFbG077855@pluto.hedeland.org> Message-ID: <20080309122956.O1562@pukruppa.net> References: <200803091120.m29BKFbG077855@pluto.hedeland.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-emulation@freebsd.org Subject: Re: Qemu: bridging on FreeBSD 7.0-STABLE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Mar 2008 11:34:38 -0000 On Sun, 9 Mar 2008, Per Hedeland wrote: > Peter Ulrich Kruppa 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