From owner-freebsd-emulation@FreeBSD.ORG Fri Jul 2 04:26:43 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 F252E16A4CE for ; Fri, 2 Jul 2004 04:26:42 +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 DAE1743D2D for ; Fri, 2 Jul 2004 04:26:42 +0000 (GMT) (envelope-from welchsm@earthlink.net) Received: from [66.173.16.120] (helo=NitroPhys.welchsmnet.net) by audiogram.mail.pas.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1BgFcN-0006gV-0c; Thu, 01 Jul 2004 21:25:45 -0700 Received: from NitroPhys.welchsmnet.net (localhost [127.0.0.1]) i624PTae002155; Thu, 1 Jul 2004 23:25:29 -0500 (CDT) (envelope-from welchsm@localhost.welchsmnet.net) Received: (from welchsm@localhost)i624PSkZ002154; Thu, 1 Jul 2004 23:25:28 -0500 (CDT) (envelope-from welchsm) Date: Thu, 1 Jul 2004 23:25:28 -0500 From: Sean Welch To: Per Hedeland Message-ID: <20040702042528.GA1911@NitroPhys.welchsmnet.net> References: <200407011323.i61DNhZ6000679@pluto.hedeland.org> <200407012334.i61NYrRx009047@pluto.hedeland.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407012334.i61NYrRx009047@pluto.hedeland.org> User-Agent: Mutt/1.5.6i X-ELNK-Trace: 15d86f98c8ef8acad780f4a490ca69564776905774d2ac4bf3bc3414946ef6241227e9e8ed2de7e5350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.173.16.120 cc: freebsd-emulation@freebsd.org Subject: Re: Patches to allow running multiple vmware3 instances 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: Fri, 02 Jul 2004 04:26:43 -0000 Thanks for the good suggestion -- it works excellently well! My current config file looks like this: vmware.fullpath = "/usr/local/lib/vmware/bin/vmware" wizard.fullpath = "/usr/local/lib/vmware/bin/vmware-wizard" dhcpd.fullpath = "/usr/local/lib/vmware/bin/vmnet-dhcpd" loop.fullpath = "/usr/local/lib/vmware/bin/vmware-loop" libdir = "/usr/local/lib/vmware" vmnet1.Bridged = "NO" vmnet1.BridgeInterface = "" vmnet1.HostOnlyAddress = "172.19.20.1" vmnet1.HostOnlyNetMask = "255.255.255.0" vmnet2.Bridged = "YES" vmnet2.BridgeInterface = "vmnet1" vmnet2.HostOnlyAddress = "192.168.0.1" vmnet2.HostOnlyNetMask = "255.255.255.0" My first client is 172.19.20.34 and the second is 172.19.20.35 -- both able to get to the net, the host machine, and each other. Sean On Fri, Jul 02, 2004 at 01:34:53AM +0200, Per Hedeland wrote: > I wrote: > > > >Sean Welch wrote: > >> > >>I added in your patches and recompiled. I do indeed get multiple > >>vmnet interfaces but I don't seem able to configure them as you show > >>in your example. Specifically, I cannot configure the interfaces to > >>be on the same subnet with the same netmask. > > > >That's right - FreeBSD doesn't allow this AFAIK (it doesn't "make sense" > >from a routing perspective). So that's a limitation that follows from > >the use of one vmnet interface per vmware instance: Each vmware instance > >must be in its own subnet. Unless you use bridged mode, of course... > > But it occurred to me that this limitation can be removed with a > moderate amount of trickery - and best of all, trickery limited to the > config file, the (patched) start script is all set to deal with it. > > The trick is to use a sort of "hybrid" mode (the "Unless..." is actually > half the answer): If you want multiple instances to be in the same > subnet, you just bridge the corresponding *vmnet* devices together, but > *not* together with any "real" interface. I.e. in the config file Sean's > case would look like: > > vmnet1.Bridged = "NO" > vmnet1.BridgeInterface = "" > vmnet1.HostOnlyAddress = "172.19.20.40" > vmnet1.HostOnlyNetMask = "255.255.255.0" > vmnet2.Bridged = "YES" > vmnet2.BridgeInterface = "vmnet1" > vmnet2.HostOnlyAddress = "192.168.0.1" > vmnet2.HostOnlyNetMask = "255.255.255.0" > > (Using the "default bridge-interface IP address" for vmnet2...) And it's > possible to add more vmnets like this of course, as long as they're all > specified as bridged to vmnet1 (or whichever you chose to be the > "non-bridged" one - it has to be before the others numerically > though). Actually you can have multiple such "non-bridged bridges" > too... With this setup, you can have the vmwares be e.g. 172.19.20.42 > and 172.19.20.43, and everyone using 255.255.255.0 as netmask. > > --Per Hedeland > per@hedeland.org