From owner-freebsd-emulation Sun Dec 1 8:20:32 2002 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 BF4CA37B404; Sun, 1 Dec 2002 08:20:31 -0800 (PST) Received: from ns.gddsn.org.cn (ns.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E01443E88; Sun, 1 Dec 2002 08:20:31 -0800 (PST) (envelope-from wsk@ns.gddsn.org.cn) Received: from mail.gddsn.org.cn (wsk [192.168.168.136]) by ns.gddsn.org.cn (Postfix) with ESMTP id 51D9938CD27; Mon, 2 Dec 2002 00:20:08 +0800 (CST) Message-ID: <3DEA36BA.3010806@mail.gddsn.org.cn> Date: Mon, 02 Dec 2002 00:20:10 +0800 From: suken woo User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021129 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current , freebsd-emulation Subject: Linux mode is not enabled help Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 after cvsup'd recent,the Linux emulator was disabled.rebuild it , get the same error: Linux mode is not enabled. Loading linux kernel module now... kldload: can't load linux: No such file or directory The linux kernel module could not be loaded. Please enable linux mode manually and retry. *** Error code 1 Stop in /usr/ports/emulators/linux_base. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Dec 1 8:26:57 2002 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 B3A6937B404; Sun, 1 Dec 2002 08:26:56 -0800 (PST) Received: from ns.gddsn.org.cn (ns.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 568E343EB2; Sun, 1 Dec 2002 08:26:56 -0800 (PST) (envelope-from wsk@ns.gddsn.org.cn) Received: from mail.gddsn.org.cn (wsk [192.168.168.136]) by ns.gddsn.org.cn (Postfix) with ESMTP id B553838CD27; Mon, 2 Dec 2002 00:26:55 +0800 (CST) Message-ID: <3DEA3851.1060404@mail.gddsn.org.cn> Date: Mon, 02 Dec 2002 00:26:57 +0800 From: suken woo User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021129 X-Accept-Language: en-us, en MIME-Version: 1.0 To: current@freebsd.org, emulation@freebsd.org Subject: Linux mode is not enabled help Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 after cvsup'd recent,the Linux emulator was disabled.rebuild it , get the same error: Linux mode is not enabled. Loading linux kernel module now... kldload: can't load linux: No such file or directory The linux kernel module could not be loaded. Please enable linux mode manually and retry. *** Error code 1 Stop in /usr/ports/emulators/linux_base. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Dec 1 15:15:35 2002 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 7AFC537B401; Sun, 1 Dec 2002 15:15:34 -0800 (PST) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3357B43E88; Sun, 1 Dec 2002 15:15:34 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0208.cvx22-bradley.dialup.earthlink.net ([209.179.198.208] helo=mindspring.com) by harrier.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18IdIv-0001zv-00; Sun, 01 Dec 2002 15:15:13 -0800 Message-ID: <3DEA97B3.CBC3A801@mindspring.com> Date: Sun, 01 Dec 2002 15:13:55 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: suken woo Cc: freebsd-current , freebsd-emulation Subject: Re: Linux mode is not enabled help References: <3DEA36BA.3010806@mail.gddsn.org.cn> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 suken woo wrote: > after cvsup'd recent,the Linux emulator was disabled.rebuild it , > get the same error: > Linux mode is not enabled. > Loading linux kernel module now... > kldload: can't load linux: No such file or directory This is common in -current. You either have to give an absolute path to the module file, or it has to be in one of the new path locations. The loader has the same problem, when you try to load a kernel installed in "/". There is apparently a problem with the parsing of the path elements, though I have not bothered to find out what it is. I don't think "current directory" works, either; maybe it's one of those over-zealous security things that keep happening. To see your current path: sysctl kern.module_path -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Dec 1 16:47:50 2002 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 68D6D37B401; Sun, 1 Dec 2002 16:47:49 -0800 (PST) Received: from ns.gddsn.org.cn (ns.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AB8843E88; Sun, 1 Dec 2002 16:47:49 -0800 (PST) (envelope-from wsk@ns.gddsn.org.cn) Received: from mail.gddsn.org.cn (wsk [192.168.168.136]) by ns.gddsn.org.cn (Postfix) with ESMTP id 99E3238CD1C; Mon, 2 Dec 2002 08:47:47 +0800 (CST) Message-ID: <3DEAADB4.4070907@mail.gddsn.org.cn> Date: Mon, 02 Dec 2002 08:47:48 +0800 From: suken woo User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021129 X-Accept-Language: en-us, en MIME-Version: 1.0 To: tlambert2@mindspring.com, current@freebsd.org, emulation Subject: Re: Linux mode is not enabled help Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 absolute path still dont work.the system log seams that link_elf: symbol gd_curproc undefined To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Dec 1 17: 0:33 2002 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 D825C37B401; Sun, 1 Dec 2002 17:00:31 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBC3043EF7; Sun, 1 Dec 2002 17:00:09 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc03.attbi.com (sccrmhc03) with ESMTP id <2002120201000700300or5v2e>; Mon, 2 Dec 2002 01:00:08 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA00884; Sun, 1 Dec 2002 16:58:28 -0800 (PST) Date: Sun, 1 Dec 2002 16:58:27 -0800 (PST) From: Julian Elischer To: suken woo Cc: tlambert2@mindspring.com, current@freebsd.org, emulation Subject: Re: Linux mode is not enabled help In-Reply-To: <3DEAADB4.4070907@mail.gddsn.org.cn> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 that is because there is no curproc in -current. your modulke is compiled for 4.x On Mon, 2 Dec 2002, suken woo wrote: > absolute path still dont work.the system log seams that > link_elf: symbol gd_curproc undefined > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Dec 1 20:30:42 2002 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 875EB37B401; Sun, 1 Dec 2002 20:30:41 -0800 (PST) Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02CED43EAF; Sun, 1 Dec 2002 20:30:36 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0082.cvx40-bradley.dialup.earthlink.net ([216.244.42.82] helo=mindspring.com) by swan.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18IiDk-0000NU-00; Sun, 01 Dec 2002 20:30:12 -0800 Message-ID: <3DEAE186.F268ACD1@mindspring.com> Date: Sun, 01 Dec 2002 20:28:54 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: suken woo Cc: current@freebsd.org, emulation Subject: Re: Linux mode is not enabled help References: <3DEAADB4.4070907@mail.gddsn.org.cn> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 suken woo wrote: > absolute path still dont work.the system log seams that > link_elf: symbol gd_curproc undefined Your Linux kernel module is out of date. If updating the source and rebuilding it doesn't fix it, then it's likely that someone broke it by committing something without building "LINT" to be sure that the committed code worked, first. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Dec 2 8:25:34 2002 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 583EB37B401 for ; Mon, 2 Dec 2002 08:25:33 -0800 (PST) Received: from richardson.uni2.net (richardson.uni2.net [130.227.52.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECB8243EC5 for ; Mon, 2 Dec 2002 08:25:26 -0800 (PST) (envelope-from dmitry@karasik.eu.org) Received: from karasik.eu.org (p408-013.ppp.get2net.dk [195.82.215.141]) by richardson.uni2.net (8.11.6/8.11.6) with ESMTP id gB2GPJM26729 for ; Mon, 2 Dec 2002 17:25:20 +0100 Message-ID: <3DEB8914.DFC12FCA@karasik.eu.org> Date: Mon, 02 Dec 2002 17:23:48 +0100 From: Dmitry Karasik X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: vmware questions Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit 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 Hello, I've been trying to run vmware2 port, but all unsuccessful. The problems are numerous, and I simply don't know where to start from. Worse, none of these are in vmware FAQs, and I am curious, because I know that many run it of FreeBSD. So, the list of my gravest issues : - Raw disk type ( neither /dev/ad0 nor /linux/dev/hda ) is not recognized, and vmware refuses to start when one is present. - Boot process from win95 diskette hangs shortly after displaying 'Starting Windows...' message - Complaints that mouse is not recognized from X ( tries several types, to no awail ). - Complaints about inaccessibility of /dev/rtc ( which is nevertheless present in /linux/dev ) I tries to start the latest vmware ( version 3.2 ), but even the configure script does not work ... To my amusement, commands uname -s and perl -le 'system q(uname -s)' produce different results - the first prints Linux, and the second FreeBSD ( funny that perl -le 'print $^O' print linux ), so I gave up. Anyway, it would be very helpful if you share your ideas and knowledge, because, as I said, I have no idea where to find the clues. Please help, Dmitry Karasik To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Dec 2 9: 4: 1 2002 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 BFE1F37B401; Mon, 2 Dec 2002 09:04:00 -0800 (PST) Received: from gddsn.org.cn (ns.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D65043E88; Mon, 2 Dec 2002 09:04:00 -0800 (PST) (envelope-from wsk@gddsn.org.cn) Received: from gddsn.org.cn (wsk [192.168.168.136]) by ns.gddsn.org.cn (Postfix) with ESMTP id 8E5D438CC09; Sun, 1 Dec 2002 20:33:32 +0800 (CST) Message-ID: <3DEA019E.2020406@gddsn.org.cn> Date: Sun, 01 Dec 2002 20:33:34 +0800 From: suken woo User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021129 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org, freebsd-emulation@freebsd.org Subject: Linux mode is not enabled Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 after cvsup'd recent,the Linux emulator was disabled.rebuild it , get the same error: Linux mode is not enabled. Loading linux kernel module now... kldload: can't load linux: No such file or directory The linux kernel module could not be loaded. Please enable linux mode manually and retry. *** Error code 1 Stop in /usr/ports/emulators/linux_base. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Dec 2 9:51:33 2002 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 34A2A37B401 for ; Mon, 2 Dec 2002 09:51:32 -0800 (PST) Received: from psg.com (psg.com [147.28.0.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA69843EC2 for ; Mon, 2 Dec 2002 09:51:31 -0800 (PST) (envelope-from randy@psg.com) Received: from roam.psg.com ([147.28.4.2] ident=mailnull) by psg.com with esmtp (Exim 3.36 #2) id 18IujD-000PBy-00; Mon, 02 Dec 2002 09:51:31 -0800 Received: from localhost ([127.0.0.1] helo=roam.psg.com.psg.com ident=randy) by roam.psg.com with esmtp (Exim 4.10) id 18Iuj8-00082x-00; Mon, 02 Dec 2002 09:51:26 -0800 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Dmitry Karasik Cc: freebsd-emulation@freebsd.org Subject: Re: vmware questions References: <3DEB8914.DFC12FCA@karasik.eu.org> Message-Id: Date: Mon, 02 Dec 2002 09:51:26 -0800 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 > - Raw disk type ( neither /dev/ad0 nor /linux/dev/hda ) is not > recognized, and vmware refuses to start when one is present. #!/bin/sh rm /usr/compat/linux/dev/hda mknod /usr/compat/linux/dev/hda b 30 0x00010002 randy:wheel rm /usr/compat/linux/dev/hdb mknod /usr/compat/linux/dev/hdb b 30 0x0001000a randy:wheel chown randy:wheel /usr/compat/linux/dev/vmnet1 > - Boot process from win95 diskette hangs shortly after displaying > 'Starting Windows...' message do you have cpu step enabled? if so, disable > - Complaints about inaccessibility of /dev/rtc ( which is > nevertheless present in /linux/dev ) it has to be started in /usr/local/etc/rc.d/rtc.sh. but it's hosed anyway, i killed it. let freebsd run the clock. > I tries to start the latest vmware ( version 3.2 ), but even the > configure script does not work dream on. the port of vmware 3 is a promise not fulfilled, and the people doing it rudely refused an offer of assistance when i actually had a slot of time to contribute. randy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Mon Dec 2 9:55:12 2002 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 49A8737B401; Mon, 2 Dec 2002 09:55:10 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD8E743EA9; Mon, 2 Dec 2002 09:55:09 -0800 (PST) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc03.attbi.com (sccrmhc03) with ESMTP id <2002120217550800300jcp5ke>; Mon, 2 Dec 2002 17:55:08 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id JAA07635; Mon, 2 Dec 2002 09:50:55 -0800 (PST) Date: Mon, 2 Dec 2002 09:50:54 -0800 (PST) From: Julian Elischer To: suken woo Cc: freebsd-current@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: Linux mode is not enabled In-Reply-To: <3DEA019E.2020406@gddsn.org.cn> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 what does 'dmesg|tail' show? On Sun, 1 Dec 2002, suken woo wrote: > after cvsup'd recent,the Linux emulator was disabled.rebuild it , > get the same error: > Linux mode is not enabled. > Loading linux kernel module now... > kldload: can't load linux: No such file or directory > The linux kernel module could not be loaded. > Please enable linux mode manually and retry. > *** Error code 1 > > Stop in /usr/ports/emulators/linux_base. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-emulation" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Dec 4 1:11: 0 2002 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 A62D637B401 for ; Wed, 4 Dec 2002 01:10:58 -0800 (PST) Received: from plab.ku.dk (plab.ku.dk [130.225.107.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id A19DC43EA9 for ; Wed, 4 Dec 2002 01:10:57 -0800 (PST) (envelope-from dk@plab.ku.dk) Received: from plab.ku.dk (localhost [127.0.0.1]) by plab.ku.dk (8.12.5/8.12.5) with ESMTP id gB49ApPo069181 for ; Wed, 4 Dec 2002 10:10:51 +0100 (CET) (envelope-from dk@plab.ku.dk) Received: (from root@localhost) by plab.ku.dk (8.12.5/8.12.5/Submit) id gB49ApRu069180 for freebsd-emulation@freebsd.org.KAV; Wed, 4 Dec 2002 10:10:51 +0100 (CET) Received: from plab.ku.dk (localhost [127.0.0.1]) by plab.ku.dk (8.12.5/8.12.5) with ESMTP id gB49AoPo069172; Wed, 4 Dec 2002 10:10:50 +0100 (CET) (envelope-from dk@plab.ku.dk) Received: (from dk@localhost) by plab.ku.dk (8.12.5/8.12.5/Submit) id gB49AoXY069169; Wed, 4 Dec 2002 10:10:50 +0100 (CET) Mime-version: 1.0 Content-type: text/plain; charset="koi8-r" Content-transfer-encoding: 8bit Keywords: 2001334874 X-Comment-To: Randy Bush To: Randy Bush Cc: Dmitry Karasik , freebsd-emulation@freebsd.org Subject: Re: vmware questions References: <3DEB8914.DFC12FCA@karasik.eu.org> From: Dmitry Karasik In-Reply-To: Randy Bush's message of "Mon, 02 Dec 2002 09:51:26 -0800" Date: 04 Dec 2002 10:10:50 +0100 Message-ID: <84r8cyp2sl.fsf@plab.ku.dk> Lines: 34 X-Mailer: Gnus v5.7/Emacs 20.7 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 Hi Randy! On 02 Dec 02 at 18:51, "Randy" (Randy Bush) wrote: Hello Randy, Thanks for the answers, thanks a lot. Still, there are more - what is The Right Way to set up the networking? I tried the following: - host-only setup, non-bridged vmnet1 (ip 192.168.0.1), - vmware starts fine, but guest os being configured as 192.168.0.2 doesn't see 192.168.0.1 ... the docs are vague on this subject, so I tried also dhcp, which also didn't work somehow - bridged setup, vmnet0, - vmware complains 'cannot query bridging status on vmnet0' and stops. Any ideas? Randy> do you have cpu step enabled? if so, disable PS. - what's that? is it in vmware's nvram/bios setup? -- Sincerely, Dmitry --- www.karasik.eu.org --- Life ain't fair, but the root password helps. - BOFH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Dec 4 5:26:37 2002 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 9655737B401 for ; Wed, 4 Dec 2002 05:26:36 -0800 (PST) Received: from rip.psg.com (rip.psg.com [147.28.0.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B6A243E9C for ; Wed, 4 Dec 2002 05:26:36 -0800 (PST) (envelope-from randy@psg.com) Received: from localhost ([127.0.0.1] helo=rip.psg.com.psg.com) by rip.psg.com with esmtp (Exim 4.10) id 18JZXu-000Pwd-00; Wed, 04 Dec 2002 05:26:34 -0800 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Dmitry Karasik Cc: freebsd-emulation@freebsd.org Subject: Re: vmware questions References: <3DEB8914.DFC12FCA@karasik.eu.org> <84r8cyp2sl.fsf@plab.ku.dk> Message-Id: Date: Wed, 04 Dec 2002 05:26:34 -0800 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 > - host-only setup, non-bridged vmnet1 (ip 192.168.0.1), - > vmware starts fine, but guest os being configured as 192.168.0.2 > doesn't see 192.168.0.1 ... the docs are vague on this subject, > so I tried also dhcp, which also didn't work somehow works for me, so i can not help >> do you have cpu step enabled? if so, disable > PS. - what's that? is it in vmware's nvram/bios setup? it's in the machine bios. and, if you are to the point where networking does not work, you are far past booting randy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Dec 4 10: 5:12 2002 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 8060837B401 for ; Wed, 4 Dec 2002 10:05:11 -0800 (PST) Received: from forthnet.gr (athmta04.forthnet.gr [193.92.150.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1745D43EB2 for ; Wed, 4 Dec 2002 10:05:09 -0800 (PST) (envelope-from than@germanosnet.gr) Received: from winvm (ppp1-32.ath.forthnet.gr [213.16.148.32]) by forthnet.gr (8.12.2/8.12.2) with SMTP id gB4I54uj024940; Wed, 4 Dec 2002 20:05:04 +0200 Message-ID: <001701c29bbf$a5bbc3c0$0201a8c0@digital.exciatation> From: "Thanasis" To: "Dmitry Karasik" Cc: Subject: Fw: vmware questions Date: Wed, 4 Dec 2002 20:04:52 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 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 > > - host-only setup, non-bridged vmnet1 (ip 192.168.0.1), - > > vmware starts fine, but guest os being configured as 192.168.0.2 > > doesn't see 192.168.0.1 ... the docs are vague on this subject, > > so I tried also dhcp, which also didn't work somehow > > > Try to configure your FreeBSD host having ip 192.168.0.1 and the non-bridged > vmnet1 192.162.1.1. Then your guest OS should have ip 192.168.1.2. Also > enable natd on your FreeBSD. This should be sufficient to see all your hosts > at the network from the guest OS. (It works for me). > > > - bridged setup, vmnet0, - vmware complains 'cannot query > > bridging status on vmnet0' and stops. > > > I have not tried bridged-vmnet. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Dec 4 20:47:32 2002 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 7084037B401 for ; Wed, 4 Dec 2002 20:47:31 -0800 (PST) Received: from neptun.tamu.edu (neptun.tamu.edu [128.194.106.10]) by mx1.FreeBSD.org (Postfix) with SMTP id 5361043E9C for ; Wed, 4 Dec 2002 20:47:27 -0800 (PST) (envelope-from erik@neptun.tamu.edu) Date: Wed, 4 Dec 2002 22:51:22 -0600 (CST) Message-Id: <02120422512272@neptun.tamu.edu> From: erik@neptun.tamu.edu To: FREEBSD-EMULATION@freebsd.org Subject: subscribe X-VMS-To: FREEBSD-EMULATION@FREEBSD.ORG 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Dec 6 20:38:19 2002 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 726A637B401; Fri, 6 Dec 2002 20:38:15 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 0451243EC5; Fri, 6 Dec 2002 20:38:14 -0800 (PST) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 7 Dec 2002 04:38:13 +0000 (GMT) To: emulation@freebsd.org Cc: robert@freebsd.org, marcel@freebsd.org Subject: linux_fcntl64() implementation Date: Sat, 07 Dec 2002 04:38:12 +0000 From: Ian Dowse Message-ID: <200212070438.aa65335@salmon.maths.tcd.ie> 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 It seems that we do not implement fcntl64() correctly in the Linux emulation code. I noticed that some programs were complaining about F_SETLK failing, so I compared what we do with what appears in bits/fcntl.h and some version of the Linux fcntl() from the web. Currently we assume that all F_*ETLK* operations in fcntl64() use the 64-bit arguments, but it appears that in fact only the versions with the `64' suffix actually do. The patch below seems to fix the problem I was seeing - does anybody know the precise details of the fcntl() vs. fcntl64() ABI? This bug probably is the cause of PR kern/37656. Ian Index: linux_file.c =================================================================== RCS file: /dump/FreeBSD-CVS/src/sys/compat/linux/linux_file.c,v retrieving revision 1.71 diff -u -r1.71 linux_file.c --- linux_file.c 2 Sep 2002 22:46:05 -0000 1.71 +++ linux_file.c 7 Dec 2002 03:28:03 -0000 @@ -931,6 +931,8 @@ static int fcntl_common(struct thread *td, struct linux_fcntl64_args *args) { + struct l_flock linux_flock; + struct flock bsd_flock; struct file *fp; long arg; int error, result; @@ -977,6 +979,37 @@ arg |= O_ASYNC; return (kern_fcntl(td, args->fd, F_SETFL, arg)); + case LINUX_F_GETLK: + error = copyin((caddr_t)args->arg, &linux_flock, + sizeof(linux_flock)); + if (error) + return (error); + linux_to_bsd_flock(&linux_flock, &bsd_flock); + error = kern_fcntl(td, args->fd, F_GETLK, (intptr_t)&bsd_flock); + if (error) + return (error); + bsd_to_linux_flock(&bsd_flock, &linux_flock); + return (copyout(&linux_flock, (caddr_t)args->arg, + sizeof(linux_flock))); + + case LINUX_F_SETLK: + error = copyin((caddr_t)args->arg, &linux_flock, + sizeof(linux_flock)); + if (error) + return (error); + linux_to_bsd_flock(&linux_flock, &bsd_flock); + return (kern_fcntl(td, args->fd, F_SETLK, + (intptr_t)&bsd_flock)); + + case LINUX_F_SETLKW: + error = copyin((caddr_t)args->arg, &linux_flock, + sizeof(linux_flock)); + if (error) + return (error); + linux_to_bsd_flock(&linux_flock, &bsd_flock); + return (kern_fcntl(td, args->fd, F_SETLKW, + (intptr_t)&bsd_flock)); + case LINUX_F_GETOWN: return (kern_fcntl(td, args->fd, F_GETOWN, 0)); @@ -1005,48 +1038,12 @@ linux_fcntl(struct thread *td, struct linux_fcntl_args *args) { struct linux_fcntl64_args args64; - struct l_flock linux_flock; - struct flock bsd_flock; - int error; #ifdef DEBUG if (ldebug(fcntl)) printf(ARGS(fcntl, "%d, %08x, *"), args->fd, args->cmd); #endif - switch (args->cmd) { - case LINUX_F_GETLK: - error = copyin((caddr_t)args->arg, &linux_flock, - sizeof(linux_flock)); - if (error) - return (error); - linux_to_bsd_flock(&linux_flock, &bsd_flock); - error = kern_fcntl(td, args->fd, F_GETLK, (intptr_t)&bsd_flock); - if (error) - return (error); - bsd_to_linux_flock(&bsd_flock, &linux_flock); - return (copyout(&linux_flock, (caddr_t)args->arg, - sizeof(linux_flock))); - - case LINUX_F_SETLK: - error = copyin((caddr_t)args->arg, &linux_flock, - sizeof(linux_flock)); - if (error) - return (error); - linux_to_bsd_flock(&linux_flock, &bsd_flock); - return (kern_fcntl(td, args->fd, F_SETLK, - (intptr_t)&bsd_flock)); - - case LINUX_F_SETLKW: - error = copyin((caddr_t)args->arg, &linux_flock, - sizeof(linux_flock)); - if (error) - return (error); - linux_to_bsd_flock(&linux_flock, &bsd_flock); - return (kern_fcntl(td, args->fd, F_SETLKW, - (intptr_t)&bsd_flock)); - } - args64.fd = args->fd; args64.cmd = args->cmd; args64.arg = args->arg; @@ -1067,7 +1064,6 @@ #endif switch (args->cmd) { - case LINUX_F_GETLK: case LINUX_F_GETLK64: error = copyin((caddr_t)args->arg, &linux_flock, sizeof(linux_flock)); @@ -1081,7 +1077,6 @@ return (copyout(&linux_flock, (caddr_t)args->arg, sizeof(linux_flock))); - case LINUX_F_SETLK: case LINUX_F_SETLK64: error = copyin((caddr_t)args->arg, &linux_flock, sizeof(linux_flock)); @@ -1091,7 +1086,6 @@ return (kern_fcntl(td, args->fd, F_SETLK, (intptr_t)&bsd_flock)); - case LINUX_F_SETLKW: case LINUX_F_SETLKW64: error = copyin((caddr_t)args->arg, &linux_flock, sizeof(linux_flock)); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Dec 6 22:59:19 2002 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 8EC4337B401; Fri, 6 Dec 2002 22:59:18 -0800 (PST) Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB04043E4A; Fri, 6 Dec 2002 22:59:02 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by kayak.xcllnt.net (8.12.6/8.12.6) with ESMTP id gB76wTrT034498; Fri, 6 Dec 2002 22:58:34 -0800 (PST) (envelope-from marcel@kayak.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.6/8.12.6) with ESMTP id gB76wT86001690; Fri, 6 Dec 2002 22:58:29 -0800 (PST) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.6/8.12.6/Submit) id gB76wKVE001689; Fri, 6 Dec 2002 22:58:20 -0800 (PST) Date: Fri, 6 Dec 2002 22:58:20 -0800 From: Marcel Moolenaar To: Ian Dowse Cc: emulation@freebsd.org, robert@freebsd.org Subject: Re: linux_fcntl64() implementation Message-ID: <20021207065820.GA1640@athlon.pn.xcllnt.net> References: <200212070438.aa65335@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212070438.aa65335@salmon.maths.tcd.ie> User-Agent: Mutt/1.5.1i 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 On Sat, Dec 07, 2002 at 04:38:12AM +0000, Ian Dowse wrote: > > The patch below seems to fix the problem I was seeing - does anybody > know the precise details of the fcntl() vs. fcntl64() ABI? This bug > probably is the cause of PR kern/37656. I wouldn't know. Most of the time I deduce it from the kernel source and manpages if the standards don't apply. This is always sensitive to misinterpretations. BTW: The patch makes perfect sense... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Dec 7 5:18:26 2002 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 86BBB37B401; Sat, 7 Dec 2002 05:18:25 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A71643E9C; Sat, 7 Dec 2002 05:18:24 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id AAA30044; Sun, 8 Dec 2002 00:18:16 +1100 Date: Sun, 8 Dec 2002 00:18:30 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Ian Dowse Cc: emulation@FreeBSD.ORG, , Subject: Re: linux_fcntl64() implementation In-Reply-To: <200212070438.aa65335@salmon.maths.tcd.ie> Message-ID: <20021208000831.R12964-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Sat, 7 Dec 2002, Ian Dowse wrote: > It seems that we do not implement fcntl64() correctly in the Linux > emulation code. I noticed that some programs were complaining about > F_SETLK failing, so I compared what we do with what appears in > bits/fcntl.h and some version of the Linux fcntl() from the web. > Currently we assume that all F_*ETLK* operations in fcntl64() use > the 64-bit arguments, but it appears that in fact only the versions > with the `64' suffix actually do. > > The patch below seems to fix the problem I was seeing - does anybody > know the precise details of the fcntl() vs. fcntl64() ABI? This bug > probably is the cause of PR kern/37656. Not me, but I think LFS requires the "old" (non-64) versions of the functions are supposed to have perfectly broken support for 64-bit args (since the original versions couldn't have had any support). I think even open() is supposed to fail for files whose size is too large for a 32-bit off_t, so failure of the other functions may be moot. But ones that want to copy in and out off_t's (like fcntl()) need to know the difference. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message