From owner-freebsd-emulation@FreeBSD.ORG Mon Apr 5 11:01:32 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 1243F16A4CE for ; Mon, 5 Apr 2004 11:01:32 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B83143D1D for ; Mon, 5 Apr 2004 11:01:32 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.10/8.12.10) with ESMTP id i35I1Vbv069622 for ; Mon, 5 Apr 2004 11:01:31 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i35I1Vit069616 for emulation@freebsd.org; Mon, 5 Apr 2004 11:01:31 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 5 Apr 2004 11:01:31 -0700 (PDT) Message-Id: <200404051801.i35I1Vit069616@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 18:01:32 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/28] kern/53874 emulation /usr/ports/emulators/linux_base isn't wor 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/21] kern/21463 emulation Linux compatability mode should not allow o [2000/11/13] kern/22826 emulation Memory limits have no effect in linux com o [2000/12/14] misc/23561 emulation Linux compatibility mode does not support o [2001/03/28] kern/26171 emulation not work Linux-emulator, but hi is work i 4 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/06/19] misc/19391 emulation Evilness with Linux Terminus, causes X to o [2002/08/11] kern/41543 emulation Easier wine/w23 support p [2002/09/04] kern/42404 emulation TIOCSCTTY not implemented in linuxulator o [2002/11/26] kern/45785 emulation Linux WineX seems to require a few new li 4 problems total. From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 10 10:01:09 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 21E8016A4CE for ; Sat, 10 Apr 2004 10:01:09 -0700 (PDT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 6269743D39 for ; Sat, 10 Apr 2004 10:01:08 -0700 (PDT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 10 Apr 2004 18:01:07 +0100 (BST) To: vsilyaev@mindspring.com Date: Sat, 10 Apr 2004 18:01:04 +0100 From: Ian Dowse Message-ID: <200404101801.aa36744@salmon.maths.tcd.ie> cc: freebsd-emulation@freebsd.org Subject: vmware2 patch for -CURRENT X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2004 17:01:09 -0000 Below is a quick patch to make vmware2 compile on -CURRENT. It might not work on SMP boxes due to not getting the correct APIC IDs, but seems to work on my laptop. Vmware2 hasn't compiled on -CURRENT for quite a few months now. Note that some of the patch is hand-generated as there is such a complex set of conditional patches that I couldn't figure out how to generate them in exactly the same way as before. I have also tested that the port still compiles on a reasonably recent RELENG_4 with this patch. With approval from a ports committer I can commit this. Any takers? Ian Index: cdevsw.patch =================================================================== RCS file: /dump/FreeBSD-CVS/ports/emulators/vmware2/files/cdevsw.patch,v retrieving revision 1.1 diff -u -r1.1 cdevsw.patch --- cdevsw.patch 10 Apr 2003 12:29:07 -0000 1.1 +++ cdevsw.patch 10 Apr 2004 16:22:23 -0000 @@ -1,10 +1,14 @@ --- vmmon-only/freebsd/driver.c_original Wed Mar 5 19:22:35 2003 +++ vmmon-only/freebsd/driver.c Wed Mar 5 19:22:44 2003 -@@ -155,6 +155,14 @@ +@@ -155,6 +155,18 @@ /* static struct cdevsw vmmon_cdevsw = { */ static struct cdevsw vmmon_cdevsw = { +#if __FreeBSD_version >= 500104 ++#if __FreeBSD_version >= 502103 ++ .d_version = D_VERSION, ++ .d_flags = D_NEEDGIANT, ++#endif + .d_open = FreeBSD_Driver_Open, + .d_close = FreeBSD_Driver_Close, + .d_ioctl = FreeBSD_Driver_Ioctl, @@ -54,11 +58,15 @@ } --- vmnet-only/freebsd/vmnet.c_original Wed Mar 5 19:21:51 2003 +++ vmnet-only/freebsd/vmnet.c Wed Mar 5 19:22:00 2003 -@@ -103,6 +103,16 @@ +@@ -103,6 +103,20 @@ static int vmnet_modeevent(module_t mod, int cmd, void *arg); static struct cdevsw vmnet_cdevsw = { +#if __FreeBSD_version >= 500104 ++#if __FreeBSD_version >= 502103 ++ .d_version = D_VERSION, ++ .d_flags = D_NEEDGIANT, ++#else + .d_open = vmnet_open, + .d_close = vmnet_close, + .d_read = vmnet_read, Index: patch-bd =================================================================== RCS file: /dump/FreeBSD-CVS/ports/emulators/vmware2/files/patch-bd,v retrieving revision 1.2 diff -u -r1.2 patch-bd --- patch-bd 22 Sep 2000 16:55:01 -0000 1.2 +++ patch-bd 10 Apr 2004 15:59:38 -0000 @@ -1,5 +1,5 @@ ---- vmmon-only/freebsd/driver.c.orig Thu Jun 29 21:06:18 2000 -+++ vmmon-only/freebsd/driver.c Sat Sep 23 01:41:34 2000 +--- vmmon-only/freebsd/driver.c.orig Sat Apr 10 16:52:28 2004 ++++ vmmon-only/freebsd/driver.c Sat Apr 10 16:54:39 2004 @@ -73,6 +73,24 @@ #include "private.h" #endif @@ -25,3 +25,13 @@ #ifdef SUPPORT_PASSTHROUGH #include "passthrough.h" // _driver_ version of passthrough.h #endif +@@ -256,7 +274,9 @@ + + #include + #include ++#if __FreeBSD_version < 501114 + #include ++#endif + + static int + vmmon_modeevent(module_t mod, int cmd, void *arg) Index: patch-be =================================================================== RCS file: /dump/FreeBSD-CVS/ports/emulators/vmware2/files/patch-be,v retrieving revision 1.3 diff -u -r1.3 patch-be --- patch-be 18 Oct 2002 16:33:02 -0000 1.3 +++ patch-be 10 Apr 2004 16:19:36 -0000 @@ -1,5 +1,5 @@ ---- vmmon-only/freebsd/hostif.c.orig Mon Sep 2 19:19:50 2002 -+++ vmmon-only/freebsd/hostif.c Mon Sep 2 19:30:03 2002 +--- vmmon-only/freebsd/hostif.c.orig Sat Apr 10 16:52:23 2004 ++++ vmmon-only/freebsd/hostif.c Sat Apr 10 16:54:17 2004 @@ -55,7 +55,11 @@ #include @@ -57,7 +57,33 @@ return 0; } -@@ -1066,10 +1098,33 @@ +@@ -1006,8 +1038,12 @@ + HostIF_APIC_Base(VMDriver *vm, Bool setVMPtr) + { + #if defined(SMP) ++#if __FreeBSD_version < 501114 + return cpu_apic_address; ++#else ++ return 0; /* XXX */ ++#endif + #else + return 0; + #endif + } +@@ -1035,8 +1070,12 @@ + HostIF_IOAPIC_Base(VMDriver *vm) + { + #if defined(SMP) ++#if __FreeBSD_version < 501114 + return io_apic_address[0]; /* XXX How about another APIC's */ + #else ++ return 0; /* XXX */ ++#endif ++#else + return 0; + #endif + } +@@ -1066,10 +1105,33 @@ return NULL; } paddr = vtophys(addr); @@ -91,7 +117,7 @@ return ka->kaddr; } -@@ -1079,9 +1134,29 @@ +@@ -1079,9 +1141,29 @@ if (ka->map==NULL) return 0; From owner-freebsd-emulation@FreeBSD.ORG Sat Apr 10 12:09:24 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 7EFA116A4CE for ; Sat, 10 Apr 2004 12:09:24 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6222F43D1F for ; Sat, 10 Apr 2004 12:09:24 -0700 (PDT) (envelope-from spadger@best.com) Received: from crwdog.demon.co.uk (c-24-19-185-75.client.comcast.net[24.19.185.75]) by comcast.net (rwcrmhc11) with ESMTP id <2004041019092301300srvd9e>; Sat, 10 Apr 2004 19:09:23 +0000 Received: from localhost (localhost [127.0.0.1]) by CRWdog.demon.co.uk (Postfix) with ESMTP id 27F5EB1; Sat, 10 Apr 2004 12:09:23 -0700 (PDT) X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Stefan Farrenkopf In-Reply-To: Message from Stefan Farrenkopf <7480000.1079596823@sub00261.sub.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Apr 2004 12:09:23 -0700 From: Andy Sparrow Message-Id: <20040410190923.27F5EB1@CRWdog.demon.co.uk> cc: emulation@freebsd.org Subject: Re: vmware3 problems on FreeBSD 4.9 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2004 19:09:24 -0000 > I did not know that I need the "device tap" within my kernel configuration. > As Mike told me, I added it and built a new kernel. To be sure that there's > no confusion between my former vmware2 and the vmware3 installation I also > deinstalled the vmware3 port and then removed what has been left in /dev > and /usr/local/etc by hand. > After I reinstalled vmware3 everything went fine. Hmm. I did everything you did, but was unable to get the network interface working with VMWare3, and full-screen mode didn't do anything for me either. I _think_ the host-only mode setup was OK, because I kept the same config when I reverted to VMWare2, and it works fine there (I was running in Bridged mode before). > A big "thank you" to Mike again :) Yup, thanks for working on this! Cheers, AS > > cheers, > Stefan > > --On Wednesday, March 17, 2004 18:50:27 +0100 Stefan Farrenkopf > wrote: > > > Hi, > > > > after all the discussion about vmware3 on 4.9 I thought it's wort to try > > it. Here are the steps I made and at the end I describe the problem I > > have now. > > > > I updated my source and applied the kernel patch, I also added VFS_AIO to > > my kernel configuration file. > > uname -a says now: FreeBSD 4.9-RELEASE-p4 > > Then I removed vmware2 and installed vmware3 from the ports. > > I answered no to netgraph binding and configured a private IP adress and > > a netmask during the installation. Below you will find my config file > > (/usr/local/etc/vmware/config): > > > > 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.HostOnlyAddress = "192.168.254.1" > > vmnet1.HostOnlyNetMask = "255.255.255.0" > > > > I added the following line to my /etc/sysctl.conf file: > > kern.ipc.shm_allow_removed=1 > > > > Because of the new kernel I rebooted the machine. > > > > After I got back to a running system, I tried to run vmware with my > > vmware2 configuration and with a new configuration where I pointed to the > > existing disks (2 Virtual IDE drives). > > I had a look at my vmware2 configuration and added the cdrom by hand > > (/dev/adc0c). When I try to Choose this device from my /dev directory it > > does not show up in the open dialog. There are instead only a few devices > > with typical linux names (hda, ...). > > > > The main problem I have now: I don't have a working vmnet interface :( If > > I PowerOn vmware it complains about the missing /dev/vmnet1. > > I tried to restart the vmware components by executing > > /usr/local/etc/rc.d/vmware stop/start and I had to realize that there's a > > problem with the initialisation of vmnet1. Here's the output of > > "vmware.sh start": > > ifconfig: interface vmnet1 does not exist > > and if I do a stop the same message appears. > > > > I removed the Host-only network interface from my vmware configuration > > and bootet the win2k installation with success. I was able to install the > > newer vmware tools, but I was not able to switch to full screen mode. If > > I tried to nothing happened. > > > > Besides the missing network interface everything is fine, but without the > > network I am not able to connect to the samba daemon and vmware is > > useless for my application :( > > > > Any suggestions how to solve the problem? > > > > best wishes, > > Stefan > > > > _______________________________________________ > > freebsd-emulation@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > > To unsubscribe, send any mail to > > "freebsd-emulation-unsubscribe@freebsd.org" > > > > > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" >