Received: from [140.186.70.92] (port=48550 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4z72-0007zB-5t for qemu-devel@nongnu.org; Sun, 10 Oct 2010 12:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4z70-00088u-WD for qemu-devel@nongnu.org; Sun, 10 Oct 2010 12:51:03 -0400 Received: from adelie.canonical.com ([91.189.90.139]:39603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4z70-00088j-P8 for qemu-devel@nongnu.org; Sun, 10 Oct 2010 12:51:02 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1P4z6x-0001bJ-K8 for ; Sun, 10 Oct 2010 17:51:00 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id E62BB2E8108 for ; Sun, 10 Oct 2010 16:50:52 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 10 Oct 2010 16:42:34 -0000 From: Ted Lemon Sender: bounces@canonical.com References: <20100925224135.21662.67397.malonedeb@potassium.ubuntu.com> Message-Id: <20101010164234.8216.78445.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 647793] Re: tap-bsd.c has no test for Mac OS X Reply-To: Bug 647793 <647793@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is really pathetic, but I'm afraid I have no clue how to do this: > Could you please resubmit it to qemu-devel using git-send-email and a full commit message with Signed-off-by? I tried googling and reading manuals, but I couldn't connect the dots. Can you send me a sample command line? I'm sure it's dead easy, but my experience with git is basically just downloading sources--all the projects I work on regularly still use cvs or svn. To set this up on Mac OS X, you need to install the tun/tap drivers, because OSX doesn't come with any. These are available at tuntaposx.sourceforge.net. If you use Tunnelblick to run openvpn, it sets up tun/tap for you and then cleverly removes the kernel modules when you don't have a tunnel open, so that the drivers are there but not active. You will have to overcome this somehow; I have an older version of Tunnelblick that doesn't do this, so I don't know how to work around this problem. If you aren't using Tunnelblick, I think installing the tun/tap drivers will Just Work. Once you have them installed, you can just start up qemu normally. I use the following script: ../qemu/sparc-softmmu/qemu-system-sparc -M SS-5 -bios ./ss5.bin -nographic -hda SunOS4.1.4 -net tap,script=3Dtap1,vlan=3D0 -net nic,vlan=3D0 The startup script (tap1) is this: #!/bin/sh ifconfig tap1 192.5.5.1 netmask 255.255.255.0 Because it's running ifconfig, the whole thing has to be started as root; I think it would be fine to drop privs after that, though. -- = tap-bsd.c has no test for Mac OS X https://bugs.launchpad.net/bugs/647793 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: The Mac OS X tun/tap driver is equivalent to the FreeBSD driver, but bsd-ta= p.c uses the NetBSD/OpenBSD driver, which works differently. The fix is e= asy--just check for __APPLE__ in the same place where you check for FreeBSD= in net/tap-bsd.c. This problem exists in the current git tree, at least as of yesterday after= noon.