From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 9 11:20:18 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 831B11065670 for ; Sun, 9 Mar 2008 11:20:18 +0000 (UTC) (envelope-from per@hedeland.org) Received: from pluto.hedeland.org (1-1-1-13a.mal.sth.bostream.se [82.182.84.27]) by mx1.freebsd.org (Postfix) with ESMTP id EE47E8FC17 for ; Sun, 9 Mar 2008 11:20:17 +0000 (UTC) (envelope-from per@hedeland.org) Received: from pluto.hedeland.org (localhost [127.0.0.1]) by pluto.hedeland.org (8.13.6/8.13.1) with ESMTP id m29BKGhn077856 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 9 Mar 2008 12:20:16 +0100 (CET) (envelope-from per@pluto.hedeland.org) Received: (from per@localhost) by pluto.hedeland.org (8.13.6/8.13.1/Submit) id m29BKFbG077855; Sun, 9 Mar 2008 12:20:15 +0100 (CET) (envelope-from per) Date: Sun, 9 Mar 2008 12:20:15 +0100 (CET) From: Per Hedeland Message-Id: <200803091120.m29BKFbG077855@pluto.hedeland.org> To: ulrich@pukruppa.net In-Reply-To: <20080309074218.K1562@pukruppa.net> X-Scanned-By: MIMEDefang 2.48 on 10.1.1.1 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:20:18 -0000 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:-) (you do realize that the above runs /usr/bin/true *instead* of /etc/qemu-ifup, I hope). 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