From owner-freebsd-questions@FreeBSD.ORG Thu Sep 20 22:41:17 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19C9D16A419 for ; Thu, 20 Sep 2007 22:41:17 +0000 (UTC) (envelope-from djp@polands.org) Received: from ms-smtp-01.rdc-kc.rr.com (ms-smtp-01.rdc-kc.rr.com [24.94.166.115]) by mx1.freebsd.org (Postfix) with ESMTP id D265413C474 for ; Thu, 20 Sep 2007 22:41:16 +0000 (UTC) (envelope-from djp@polands.org) Received: from corinth.polands.org (CPE-75-87-219-217.new.res.rr.com [75.87.219.217]) by ms-smtp-01.rdc-kc.rr.com (8.13.6/8.13.6) with ESMTP id l8KBIOU8029112 for ; Thu, 20 Sep 2007 06:18:24 -0500 (CDT) Received: from ammon.polands.org (ammon.polands.org [172.16.1.7]) by corinth.polands.org (8.13.8/8.13.8) with ESMTP id l8KBLKi8051121 for ; Thu, 20 Sep 2007 06:21:20 -0500 (CDT) (envelope-from djp@polands.org) Received: from ammon.polands.org (localhost [127.0.0.1]) by ammon.polands.org (8.13.8/8.13.8) with ESMTP id l8KBLKoM043444 for ; Thu, 20 Sep 2007 06:21:20 -0500 (CDT) (envelope-from djp@ammon.polands.org) Received: (from djp@localhost) by ammon.polands.org (8.13.8/8.13.8/Submit) id l8KBLK1T043443 for questions@freebsd.org; Thu, 20 Sep 2007 06:21:20 -0500 (CDT) (envelope-from djp) Date: Thu, 20 Sep 2007 06:21:20 -0500 From: Doug Poland To: questions@freebsd.org Message-ID: <20070920112119.GA43389@polands.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: ClamAV 0.88.4/4349/Wed Sep 19 17:46:46 2007 on corinth.polands.org X-Virus-Status: Clean Cc: Subject: QEMU and tap problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2007 22:41:17 -0000 Hello, I've been following the various instructions I've found on the web in an attempt to get tap networking with qemu-devel-0.9.0s.20070802 and kqemu-kmod-1.3.0.p11_2 on 6.2-STABLE. qemu was compiled with: _OPTIONS_READ=qemu-devel-0.9.0s.20070802 WITH_KQEMU=true WITHOUT_HACKS_CIRRUS=true WITHOUT_RTL8139_TIMER=true WITHOUT_SAMBA=true WITH_SDL=true WITH_CDROM_DMA=true The kernel modules are loaded: if_tap, bridge, aio, kqemu The sysctls are changed: sysctl net.link.ether.bridge_cfg=ath0,tap0 sysctl net.link.ether.bridge.enable=1 The tap device exists: crw------- 1 root wheel 0, 134 Sep 19 22:42 /dev/tap0 tap0: flags=8843 mtu 1500 inet 0.0.0.0 netmask 0xff000000 broadcast 0.255.255.255 ether 00:bd:01:3c:01:00 Opened by PID 1317 The qemu-ifup script exists: cat /etc/qemu-ifup #!/bin/sh ifconfig ${1} 0.0.0.0 I launch qemu like this: qemu -m 512 -localtime -hda VMs/w2k3.img -net nic -net tap Windows Server 2003 comes up. If I attempt to use DHCP to configure the interface in W2K3, I get a several minute pause while it attempts to contact a DHCP server, finally it fails with the message: "This connection has limited or no connectivity" and windows assigns itself the 169.254.244.101 address. If I try to manually configure the windows interface, i.e., IP: 172.16.1.15 NM: 255.255.255.0 DG: 172.16.1.1 NS: 172.16.1.17 NS: 172.16.1.21 Windows thinks it has connectivity, but I cannot ping the default gateway from the guest and I cannot ping the IP of the guest from the host. So at this point, I have no networking from the guest OS. About the only thing that I haven't seen on the web is people using wireless NICs in the host. In my case, I have an atheros chipset connected via WPA2 to my WAP. All help is appreciated... -- Regards, Doug