From owner-freebsd-emulation@FreeBSD.ORG Sun Mar 9 12:07:56 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 CE29B1065699 for ; Sun, 9 Mar 2008 12:07:56 +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 438468FC27 for ; Sun, 9 Mar 2008 12:07:56 +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 m29C7s20078845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 9 Mar 2008 13:07:54 +0100 (CET) (envelope-from per@pluto.hedeland.org) Received: (from per@localhost) by pluto.hedeland.org (8.13.6/8.13.1/Submit) id m29C7svL078844; Sun, 9 Mar 2008 13:07:54 +0100 (CET) (envelope-from per) Date: Sun, 9 Mar 2008 13:07:54 +0100 (CET) From: Per Hedeland Message-Id: <200803091207.m29C7svL078844@pluto.hedeland.org> To: ulrich@pukruppa.net In-Reply-To: <20080309122956.O1562@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 12:07:56 -0000 Peter Ulrich Kruppa wrote: > >On Sun, 9 Mar 2008, Per Hedeland wrote: >> >> Well, 'exit 0' in the script would then have worked too:-) >Actually: no :-( Hm, well, at least it should have gotten rid of the /etc/qemu-ifup: could not launch network script Could not initialize device 'tap' that you got, since the only thing qemu knows about the script is the exit code when it tries to run it. Though "could not *launch*" does sound like it wasn't able to run it at all, but I think that's just unfortunate wording - or else you don't actually have the permissions that you think on the script. If it got rid of the message but networking still didn't work, I would suspect the "0.0.0.0" instead of "up". But in any case, if you do the ifconfig manually and are happy with that, there's no need to run a script, as your result with /usr/bin/true shows. Finally, it's worth noting that testing this stuff and drawing the correct conclusions is pretty hard, since you keep leaving "state bits" around - e.g. once you've 'ifconfig up'ed an interface, it remains up even if you think you're "starting over", and you might incorrectly conclude that you don't need that ifconfig thingie. >> (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." Well, there is a man page for qemu, and it's quite clear about what the argument to 'script=' means.:-) --Per