From owner-freebsd-emulation@FreeBSD.ORG Thu Jul 15 20:04:13 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 477D416A4CE for ; Thu, 15 Jul 2004 20:04:13 +0000 (GMT) Received: from audiogram.mail.pas.earthlink.net (audiogram.mail.pas.earthlink.net [207.217.120.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3182E43D1D for ; Thu, 15 Jul 2004 20:04:13 +0000 (GMT) (envelope-from welchsm@earthlink.net) Received: from c-66-41-102-215.mn.client2.attbi.com ([66.41.102.215] helo=NitroPhys.welchsmnet.net) by audiogram.mail.pas.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1BlCSi-000248-Gc; Thu, 15 Jul 2004 13:04:12 -0700 Received: from NitroPhys.welchsmnet.net (localhost [127.0.0.1]) i6FK3cea002506; Thu, 15 Jul 2004 15:03:38 -0500 (CDT) (envelope-from welchsm@localhost.welchsmnet.net) Received: (from welchsm@localhost)i6FK3bCB002505; Thu, 15 Jul 2004 15:03:38 -0500 (CDT) (envelope-from welchsm) Date: Thu, 15 Jul 2004 15:03:37 -0500 From: Sean Welch To: freebsd-emulation@freebsd.org Message-ID: <20040715200337.GA2417@NitroPhys.welchsmnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-ELNK-Trace: 15d86f98c8ef8acad780f4a490ca69564776905774d2ac4bad31602f044f6355d14b829ac7fd4e72350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.41.102.215 Subject: Re: PearPC and networking X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2004 20:04:13 -0000 To answer my own questions: To use networking you'll need to enable one of the two network interfaces listed in the configuration files. Both work under FreeBSD (I haven't tried both at the same time) but the 3Com version needs a special driver for the Mac OS X client to use (available on the pearpc site) and seems to spit out quite a lot of messages to the console. The RealTek card has an integrated driver in OS X and works quite nicely under FreeBSD. I'm not sure why the pearpc site says that you have to use the 3Com with a Linux host (I would have imagined any constraints would apply to FreeBSD, though the site does specify the RealTek card for use under an OS X host and it does share a lot of userland with FreeBSD...). The other half of what you need to know is that the host interface to the client is through the tap device. On my system it is the only one so a tap0 interface appears in the output of ifconfig after I start pearpc. You'll have to run pearpc as root in order for the program to control this interface. Just configure the tap interface with an ip and netmask and then when the client is up configure its emulated card with an ip on the same subnet with the same netmask. Set the gateway on the client to be the ip of the tap interface and you are ready to go. I've set up my host to be a gateway so the client can get to the 'Net without any issues (though for some reason Software Update under Mac OS X insists that the server is not available -- maybe I'm not forwarding some udp packets or something?) I suppose you probably could bridge the tap interface and another interface and get access that way... One thing I've noticed. The pearpc program creates a file called nvram for use while running. Several times I've started up the program only to find that my mouse buttons and keyboard act all wrong in the client. I have found that this doesn't seem to be happening anymore when I remove the old file before (re)starting the program. I'm guessing that the file may not be completely reinit'd if it exists at program start. I seem to recall a similar problem with bochs. Hope this helps someone else! Now I've got FreeBSD (host), Linux (vmware), Win2K (vmware), and Mac OS X (pearpc) all running at the same time and networked together *on the same machine*. It is great being able to do cross-platform programming and network testing with only one, portable machine! Sean > I'm having good luck getting PearPC to run OS X under FreeBSD, but I > don't know how to go about configuring the emulated network device. > I've seen mention on the main webpage ( > http://pearpc.sourceforge.net ) > that the networking "reportedly" works under FreeBSD but no note of > how to accomplish this. > > The Linux directions seem to indicate that it should be a bridged > connection. Can anyone confirm this or better yet offer > configuration details? > > Sean