From owner-freebsd-emulation Sun Nov 18 17:50:34 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id D390D37B405 for ; Sun, 18 Nov 2001 17:50:29 -0800 (PST) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id fAJ1oB808730; Sun, 18 Nov 2001 20:50:12 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200106121526.f5CFQsp46243@ambrisko.com> References: <200106121526.f5CFQsp46243@ambrisko.com> Date: Sun, 18 Nov 2001 20:50:08 -0500 To: Doug Ambrisko , freebsd-emulation@FreeBSD.ORG From: Garance A Drosihn Subject: Re: FYI, multiple vmwares is possible but is a hack Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Way back on June 12/2001, Doug Ambrisko wrote: >I have 2 vmwares running. I got the second one running by creating another >vmmon with a different name but same number of characters: > a21p% ls -l /compat/linux/dev/vmmo* > crw-r--r-- 1 root wheel 200, 1 Jun 11 11:00 >/compat/linux/dev/vmmo2 > crw-r--r-- 1 root wheel 200, 0 May 9 14:32 >/compat/linux/dev/vmmon > a21p% > >Then I ran this Perl script to patch the "vmmo2" in places of "vmmon": > #!/usr/local/bin/perl > > open(VMWARE,"/usr/local/lib/vmware/bin/vmware") || die; > open(DUP,">/usr/local/lib/vmware/bin/vmware.dup") || die; > > while(){ > s,/dev/vmmon,/dev/vmmo2,; > print DUP; > } > close VMWARE; > close DUP; > system("chmod 4555 /usr/local/lib/vmware/bin/vmware.dup"); > >Then I modified the vmware script to fire up: > /usr/local/lib/vmware/bin/vmware.dup > >Now I have 2 vmwares running with networking etc. I define non-conflicting >devices and use netgraph to tie the various networks together. is this with the "vmware" port, or the "vmware2" port? I tried this with the latest vmware2 port, on the latest version of 4.4-stable, and it didn't quite work. I created the /compat/linux/dev/vmmo2 device by: cd /compat/linux/dev mknod vmmo2 c 200 1 root:wheel which seemed to do the right thing (I get the same output from 'ls' as Doug listed). The second machine gets an error at startup though, with vmware complaining: "Could not open /dev/vmnet1. Device or resource busy. Failed to configure ethernet0". I expect that's because I don't know what do about the part where Doug says "I define non-conflicting devices, and use netgraph...". Do I need to duplicate /usr/local/etc/rc.d/vmware.sh , and have it create a vmnet2 device? If so, how do I get the second-vmnet device? I tried duplicating the startup-script, and changing vmnet1 to vmnet2, but that didn't work because 'ifconfig' doesn't know about a vmnet2 interface. -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message