From owner-freebsd-questions@FreeBSD.ORG Mon Mar 30 21:29:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67E1A1065677 for ; Mon, 30 Mar 2009 21:29:22 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 267C88FC0A for ; Mon, 30 Mar 2009 21:29:21 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: by yw-out-2324.google.com with SMTP id 5so1497399ywh.13 for ; Mon, 30 Mar 2009 14:29:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=P3TRZ2wsQIHDpOm/aF1ZzcmulWAhocS5/QLbC0+LOAY=; b=bYCsenCKAt5bu0sVXuimSE15NO/N+FWeu+/Jp92xNqi8pmXqjyv9bslhxjY1rvGBnC hmGKeRky0fg6pBZbYkguhItE2xJ8BU/pf6DSr4s+OLxYSSIa5sur5avQJxSyPA9kG3Wg AVWKj6zjISGlxTqi0wvVrshuleCaLe7+ltUH0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=DFolG2DdISVNyPX60/GYQVdCNR4VvLkqWcvGPEElwv24aNR13U+U8C+R1kZt44lAv3 ouR4Ii6dXH/USWJyMF+r4RAUJy8bzbOu7my5NIs+bD7qp+NW35JwnYHDJXj1eRVgiYON s1OspkGijchpyX/ehWQdytP4mI0qdaDCosiFw= MIME-Version: 1.0 Received: by 10.100.109.13 with SMTP id h13mr4453154anc.140.1238448561234; Mon, 30 Mar 2009 14:29:21 -0700 (PDT) Date: Mon, 30 Mar 2009 14:29:20 -0700 Message-ID: <539c60b90903301429o7fcd9edfhe9c995dcb5cb8430@mail.gmail.com> From: Steve Franks To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: qemu only talks to network on second boot 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: Mon, 30 Mar 2009 21:29:24 -0000 Got win2k on qemu for a couple years now. Funny thing is, it never sees the network or the samba shares on my host the second time I "boot" qemu on any given day. First time always times out. I get no console output. My win2k.sh file looks something like this. All the tap entries since my system seems to have some issue with naming tap. Maybe that's the issue, but I'll be darned if I could fix it. tap0 and nothing else would be just fine with me. When I just had tap0, it would make tap1 (then tap2, etc, etc.), but this seems always to wind up on tap9 and work (the second time I run qemu).... Goofy. Best, Steve [steve@dynstant /usr/ports/emulators/wine]$ cat ~/bin/win2k #!/bin/sh sudo kldload kqemu if_tap if_bridge aio sudo sysctl net.link.tap.user_open=1 sudo sysctl net.link.tap.devfs_cloning=1 sudo sysctl net.link.tap.up_on_open=1 sudo ifconfig bridge0 create sudo ifconfig bridge0 addm vr0 sudo ifconfig bridge0 addm tap0 sudo ifconfig bridge0 addm tap1 sudo ifconfig bridge0 addm tap2 sudo ifconfig bridge0 addm tap3 sudo ifconfig bridge0 addm tap4 sudo ifconfig bridge0 addm tap5 sudo ifconfig bridge0 addm tap6 sudo ifconfig bridge0 addm tap7 sudo ifconfig bridge0 addm tap8 sudo ifconfig bridge0 addm tap9 sudo ifconfig bridge0 up sudo ifconfig vr0 up sudo ifconfig tap0 up sudo ifconfig tap1 up sudo ifconfig tap2 up sudo ifconfig tap3 up sudo ifconfig tap4 up sudo ifconfig tap5 up sudo ifconfig tap6 up sudo ifconfig tap7 up sudo ifconfig tap8 up sudo ifconfig tap9 up sudo dhclient bridge0 sudo /etc/rc.d/devfs restart sudo /etc/rc.d/sysctl restart qemu -m 384 -net nic -net tap -hda ~/bin/drivec.img -usb -usbdevice tablet -serial /dev/cuaU0 &