From owner-freebsd-emulation@FreeBSD.ORG Sat Mar 8 06:24:56 2008 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0947106566C for ; Sat, 8 Mar 2008 06:24:56 +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 33AFB8FC14 for ; Sat, 8 Mar 2008 06:24:55 +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 m285pU8c028061 for ; Sat, 8 Mar 2008 06:51:30 +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 m285pUaS028058 for ; Sat, 8 Mar 2008 06:51:30 +0100 (CET) (envelope-from ulrich@pukruppa.net) Date: Sat, 8 Mar 2008 06:51:30 +0100 (CET) From: Peter Ulrich Kruppa To: emulation@freebsd.org Message-ID: <20080308054515.V19713@pukruppa.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: 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: Sat, 08 Mar 2008 06:24:56 -0000 Hi, I am afraid I need some help to set up networking for qemu-0.9.1 on FreeBSD 7.0-STABLE amd64 . The only hint for FreeBSD 7.0 I found was http://people.freebsd.org/~maho/qemu/qemu.html It seems I don't need to kldload bridge, and don't need to set any sysctl variables anymore (right?). I just did (all as root) # ifconfig tap create # ifconfig bridge create # ifconfig bridge0 addm tap0 addm nfe0 up and get # ifconfig -a [...] tap0: flags=8902 metric 0 mtu 1500 ether 00:bd:63:44:71:00 bridge0: flags=8843 metric 0 mtu 1500 ether 9e:2e:9a:d5:cf:09 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: nfe0 flags=143 member: tap0 flags=143 As /etc/qemu-ifup (Permissions 755) I use #!bin/sh ifconfig ${1} 0.0.0.0 Then I try to # qemu Win2k.img -net nic -net tap /etc/qemu-ifup: could not launch network script Could not initialize device 'tap' Next thing I tried was # qemu Win2k.img -net nic -net tap,fd=0 Now qemu will start (and a lot of strange symbols are running across my terminal) but I can't ping anything. >From Qemu Monitor I get: (qemu) info network vlan0 devices: tap: fd=0 ne2000 pci macaddr=52:54:00:12:34:56 Big thanks for your help, Uli. ------------------------------------- Peter Ulrich Kruppa Wuppertal Germany