From owner-freebsd-emulation@FreeBSD.ORG Tue Jun 19 03:50:11 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 6BCEC16A469 for ; Tue, 19 Jun 2007 03:50:11 +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 C58E913C44B for ; Tue, 19 Jun 2007 03:50:10 +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 l5J3o7S2057924; Tue, 19 Jun 2007 05:50:07 +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 l5J3o6hY057921; Tue, 19 Jun 2007 05:50:07 +0200 (CEST) (envelope-from ulrich@pukruppa.net) Date: Tue, 19 Jun 2007 05:50:06 +0200 (CEST) From: "P.U.Kruppa" X-X-Sender: ulrich@small To: Per Hedeland In-Reply-To: <200706182049.l5IKn3ZG059270@pluto.hedeland.org> Message-ID: <20070619053536.Y9390@small> References: <200706182049.l5IKn3ZG059270@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 03:50:11 -0000 On Mon, 18 Jun 2007, Per Hedeland wrote: > "P.U.Kruppa" wrote: >> >> When now I try to connect the second virtual box, it will "steal" >> the first box's network connection. > > You need to give them individual mac addresses via the 'macaddr' > parameter to '-net nic'. I.e one of them can have the default > (52:54:00:12:34:56) but not more than one.:-) See e.g. Yes, but something goes wrong in my procedure: # kldload aio kqemu if_tap bridge # sysctl net.link.ether.bridge_cfg=rl0,tap0 # sysctl net.link.ether.bridge.enable=1 # qemu-system-x86_64 -hda Win2k.img -m 512 -localtime \ -net tap -net nic # qemu-system-x86_64 -hda FreeBSD.img -m 512 -localtime -net tap -net nic,52:54:00:12:34:57 The latter will start the virtual FreeBSD box, but without a working network (nothing can be ping'ed, not even the host). What kind of qemu-ifup do you use? Thanks, Uli. > > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=111250+0+archive/2007/freebsd-emulation/20070603.freebsd-emulation > > --Per Hedeland > Peter Ulrich Kruppa Wuppertal Germany