From owner-freebsd-questions@FreeBSD.ORG Fri Sep 21 00:57:09 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 E671516A418 for ; Fri, 21 Sep 2007 00:57:08 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.187]) by mx1.freebsd.org (Postfix) with ESMTP id C433313C458 for ; Fri, 21 Sep 2007 00:57:08 +0000 (UTC) (envelope-from ryallsd@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so571469rvb for ; Thu, 20 Sep 2007 17:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=uKkGhXM1O4TKS2n9LaearmrGZtEzsHRBTTVC3pUuPVc=; b=FB+DArkjhvjGkoqmYmjf1PHeObbO071kwNJqC9ZABQX1vhWwzjLqh/FMzgUoHPoQ5/RDGZngzkW2odQ8LSSc1TslC0Y99cCBALzVXA468aP2NfPBovz7pz52i54cTLiAbKZMHMIYtJVp7iPSFaNNBjaAXav33amQmYu0xcR+6oM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rHO7T3IRK16ZL4XgtuPM4mI6a8fb+KfLY5wHF9n/bLOxauv+4EO/bkauc8p1SzRlcusV1aRXz00uGKUbX6/65syOHpoUhVGAyPtRGfT0EDzky5yZRjPCnf7UKKisShdvXzlkCqF3KImzB6J/+vLVwS5ghpMGrE/75544cw6Y0+E= Received: by 10.114.103.1 with SMTP id a1mr2816839wac.1190334740099; Thu, 20 Sep 2007 17:32:20 -0700 (PDT) Received: by 10.115.78.4 with HTTP; Thu, 20 Sep 2007 17:32:20 -0700 (PDT) Message-ID: Date: Thu, 20 Sep 2007 17:32:20 -0700 From: "Derrick Ryalls" To: "Doug Poland" In-Reply-To: <20070920112119.GA43389@polands.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070920112119.GA43389@polands.org> Cc: questions@freebsd.org Subject: Re: 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: Fri, 21 Sep 2007 00:57:09 -0000 On 9/20/07, Doug Poland wrote: > > 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... > I just got tap working with an earlier build of qemu using clues from this site: http://forums.bsdnexus.com/viewtopic.php?id=1563 Also, I can only get it working when I run it with sudo at the moment and I have only tried with a wired nic. I have read in some places that encryption causes problems with tap, but I don't have a link to where I read it.