From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 19 18:38:20 2007 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 96CA816A41F for ; Tue, 19 Jun 2007 18:38:20 +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 EBC9913C448 for ; Tue, 19 Jun 2007 18:38:19 +0000 (UTC) (envelope-from ulrich@pukruppa.net) Received: from pukruppa.net (localhost [127.0.0.1]) by pukruppa.net (8.14.1/8.14.1) with ESMTP id l5JIcHaB009731; Tue, 19 Jun 2007 20:38:17 +0200 (CEST) (envelope-from ulrich@pukruppa.net) Received: from localhost (ulrich@localhost) by pukruppa.net (8.14.1/8.14.1/Submit) with ESMTP id l5JIcGnM009728; Tue, 19 Jun 2007 20:38:16 +0200 (CEST) (envelope-from ulrich@pukruppa.net) Date: Tue, 19 Jun 2007 20:38:16 +0200 (CEST) From: "P.U.Kruppa" X-X-Sender: ulrich@small To: Per Hedeland In-Reply-To: <200706190549.l5J5nXcP070584@pluto.hedeland.org> Message-ID: <20070619203106.J9566@small> References: <200706190549.l5J5nXcP070584@pluto.hedeland.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-emulation@freebsd.org Subject: Re: Virtual network with qemu 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: Tue, 19 Jun 2007 18:38:20 -0000 On Tue, 19 Jun 2007, Per Hedeland wrote: >> What kind of qemu-ifup do you use? > > Per above I'm using the ifconfig-based method (on 6.1-RELEASE) - I use > this in rc.conf for the initial setup of the bridge: > > cloned_interfaces="bridge0" > ifconfig_bridge0="addm bge0 up" > > - this creates the bridge and adds the physical interface to it. You can > of course do it "manually" with > > ifconfig bridge0 create > ifconfig bridge0 addm bge0 up > > (you'd use rl0 instead of bge0 of course) - and then my qemu-ifup ups > the tap device and adds it to the bridge (if needed): > > #!/bin/sh > sudo /sbin/ifconfig $1 up > case "`ifconfig bridge0`" in > *" $1 "*) ;; # already in the bridge > *) sudo /sbin/ifconfig bridge0 addm $1 ;; > esac > > This works to bridge any number of qemus together (I've had as many as > five running concurrently). Yes, thanks. That does the trick. A remark for the records: I found the virtual machines won't be able to ping each other if both are run in graphic mode (at least on my slow machine). When I start the virtual FreeBSD box with -nographic option I get reasonable response times. Again thanks, Uli. > > --Per Hedeland > > Peter Ulrich Kruppa Wuppertal Germany