From owner-freebsd-emulation Sun Feb 25 13:21:43 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by hub.freebsd.org (Postfix) with ESMTP id 0AF2737B491 for ; Sun, 25 Feb 2001 13:21:40 -0800 (PST) (envelope-from vsilyaev@mindspring.com) Received: from delta.rc.ny.us (nyf-ny5-33.ix.netcom.com [198.211.17.33]) by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id QAA07711 for ; Sun, 25 Feb 2001 16:21:14 -0500 (EST) Received: (from vsilyaev@localhost) by delta.rc.ny.us (8.11.1/8.9.3) id f1PLKoE00312 for freebsd-emulation@FreeBSD.ORG; Sun, 25 Feb 2001 16:20:50 -0500 (EST) (envelope-from vsilyaev) Date: Sun, 25 Feb 2001 08:58:22 -0500 From: Vladimir Silyaev To: Julian Elischer Cc: Andrew Gallatin , Matt Dillon , freebsd-emulation@FreeBSD."ORG" Subject: Re: Does vmware2 wire pages? Message-ID: <20010225085822.A305@delta.rc.ny.us> References: <3A89B7A0.B47D91E@Lustig.COM> <20010214072943.A365@delta.rc.ny.us> <3A96A29A.3BBF2614@elischer.org> <14998.46507.267723.148767@grasshopper.cs.duke.edu> <3A988DF4.9A1626E0@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A988DF4.9A1626E0@elischer.org>; from julian@elischer.org on Sat, Feb 24, 2001 at 08:45:40PM -0800 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Feb 24, 2001 at 08:45:40PM -0800, Julian Elischer wrote: > > > > The first part (hacking the Linulator) is unacceptable for general > > consumption & a better way needs to be found. One thing I've thought > > of is adding some functionality to the vmmon kernel module to force > > the vmware app's mmap'ed regions to be MAP_NOSYNC. I don't know > > enough about how vmware works to achieve this & have not had the time > > to look into it further. > > Matt and Vladimir, can the two of you figure out between you > how to do this? Vladimir knows the vmware side and Matt knows the VM options > available. Ok. From vmmon side memory wired in the next way: m = PHYS_TO_VM_PAGE(paddr); vm_page_wire(m); All those pages have a file as backed media (or in another words pages are coming from mmaped file). How file mmaped it's not handled vmmmon - vmmon just making lock/unlock memory and translation between virtual and physical addresses. I hope that my five cents fill be helpful. -- Regards, Vladimir P.S. Do we have any problems to make mmap (at least for linuxalator always MAP_NOSYNC? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Feb 25 21:56:53 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from urban.iinet.net.au (urban.iinet.net.au [203.59.24.231]) by hub.freebsd.org (Postfix) with ESMTP id AA67637B491 for ; Sun, 25 Feb 2001 21:56:49 -0800 (PST) (envelope-from julian@elischer.org) Received: from elischer.org (i091-108.nv.iinet.net.au [203.59.91.108]) by urban.iinet.net.au (8.8.7/8.8.7) with ESMTP id NAA11679; Mon, 26 Feb 2001 13:56:32 +0800 Message-ID: <3A99EFEB.3EDCD5D0@elischer.org> Date: Sun, 25 Feb 2001 21:55:55 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Matt Dillon Cc: Andrew Gallatin , Vladimir Silyaev , freebsd-emulation@freebsd.org Subject: Re: Does vmware2 wire pages? References: <3A89B7A0.B47D91E@Lustig.COM> <20010214072943.A365@delta.rc.ny.us> <3A96A29A.3BBF2614@elischer.org> <14998.46507.267723.148767@grasshopper.cs.duke.edu> <3A988DF4.9A1626E0@elischer.org> <200102250618.f1P6Igw11814@earth.backplane.com> <3A99E74A.38D7C087@elischer.org> <200102260548.f1Q5mpS29577@earth.backplane.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Matt Dillon wrote: > > :> :> Hacking vmware to set wired pages to PG_NOSYNC doesn't seem to help. > :> :> However, I have my own local hack which seems to help a great deal: > :> :> hacking the Linulator to treat all mmap'ed files as MAP_NOSYNC, in > :> :> combination with my fixes to vm_fault so as to correctly tag a page in > :> :> a MAP_NOSYNC map with PG_NOSYNC on a read fault. > :[...] > :> The vm_fault patch is correct. I was failing to set PG_NOSYNC for > :> the write-wiring case on a read-fault (i.e. a read fault for which > :> a later write is acceptable and will not cause another fault). > : > :so is it applied? > :can it be applied? > :I don't have a copy of it so I don't know what it is. > : > :Andrew, can you post your patches for the linuxulator too? > > It's Andrew's patch, so I am presuming that he wants to commit it. what about the change to the vm_fault code? > > -Matt -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Feb 25 21:59:53 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from syncopation-03.iinet.net.au (syncopation-03.iinet.net.au [203.59.24.49]) by hub.freebsd.org (Postfix) with SMTP id 5E7CA37B491 for ; Sun, 25 Feb 2001 21:59:48 -0800 (PST) (envelope-from julian@elischer.org) Received: (qmail 15859 invoked by uid 666); 26 Feb 2001 06:11:51 -0000 Received: from i091-108.nv.iinet.net.au (HELO elischer.org) (203.59.91.108) by mail.m.iinet.net.au with SMTP; 26 Feb 2001 06:11:51 -0000 Message-ID: <3A99F0AC.CEDE31CE@elischer.org> Date: Sun, 25 Feb 2001 21:59:08 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: Linuxulator and VMware fix Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Matt Dillon wrote: > > :> Hacking vmware to set wired pages to PG_NOSYNC doesn't seem to help. > :> However, I have my own local hack which seems to help a great deal: > :> hacking the Linulator to treat all mmap'ed files as MAP_NOSYNC, in > :> combination with my fixes to vm_fault so as to correctly tag a page in > :> a MAP_NOSYNC map with PG_NOSYNC on a read fault. [...] > The vm_fault patch is correct. I was failing to set PG_NOSYNC for > the write-wiring case on a read-fault (i.e. a read fault for which > a later write is acceptable and will not cause another fault). so is it applied? can it be applied? I don't have a copy of it so I don't know what it is. Andrew, can you post your patches for the linuxulator too? > > :> of is adding some functionality to the vmmon kernel module to force > :> the vmware app's mmap'ed regions to be MAP_NOSYNC. I don't know > :> enough about how vmware works to achieve this & have not had the time > :> to look into it further. > Vladimir says: > > Ok. From vmmon side memory wired in the next way: > m = PHYS_TO_VM_PAGE(paddr); > vm_page_wire(m); > > All those pages have a file as backed media (or in another words pages > are coming from mmaped file). How file mmaped it's not handled vmmmon - > vmmon just making lock/unlock memory and translation between virtual and > physical addresses. > :Matt and Vladimir, can the two of you figure out between you > :how to do this? Vladimir knows the vmware side and Matt knows the VM options > :available. Matt says: > > My feeling is that the linux emulation patch should try to stick as > close to linux as possible. So if Linux doesn't sync file-backed > dirty pages, our linux emulation of their mmap() call shouldn't either. > The question is whether it syncs then "not at all", "when asked" or "whenever it can".. Do we have a mode of operation that matches what they do? > For FreeBSD's native operation it's up in the air. Ultimately I believe > that the way Linux is doing it (not syncing pages dirtied through mmap > on a regular basis) is the way it will work in the future, for several > reasons. I assume this means the app must do an msync()? Does exit() imply an msync()? > First, file-backed writable mmap()'s (when used for > persistent store reasons rather then IPC) are dangerous. Program > memory corruption can leak through to the file. > Second, except for > the simplest of things (like a file copy), programmers generally need > much finer control over write sequencing of sensitive data. Hence > write() is used more often then a writeable mmap. > Third, the > distinction between file and anonymous-backed memory has become > fuzzier and fuzzier over the years to the point where most people > except mmap() to behave like normal VM behaves and less like write(). > > Fourth, and most importantly, filesystems are getting closer and > closer to becoming transactional. What we see now with journaling > filesystems is but a poor imitation to what we are likely to see 10 years > down the line. Transactional filesystems require an explicit > understanding of what is dirty, in what order things should be > committed, and must be able to handle parallel commits of non-conflicting > data (just like a database with transactional capabilities is able > to guarentee) - for a writable mmap()'d file this means using at least > msync() rather then just assuming that modifying memory will result > in proper ordering of writes to disk. > > So, for all those reasons, I believe that making MAP_NOSYNC the default > for linux emulation is perfectly acceptable, and that we might even want > to make it the default for FreeBSD (or at least try to apply our > sequential detection heuristics to writable mmap()s to optimize > sequential operations and treat the rest in a MAP_NOSYNC manner). > > -Matt Ok so I suggest we get andrew's patches into the emulator at least. Can someone who has Linux confirm that they in fact do act in this way? -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sun Feb 25 23:14:29 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id DC85A37B491 for ; Sun, 25 Feb 2001 23:14:27 -0800 (PST) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.2/8.9.3) id f1Q7DuC30091; Sun, 25 Feb 2001 23:13:56 -0800 (PST) (envelope-from dillon) Date: Sun, 25 Feb 2001 23:13:56 -0800 (PST) From: Matt Dillon Message-Id: <200102260713.f1Q7DuC30091@earth.backplane.com> To: Julian Elischer Cc: Andrew Gallatin , Vladimir Silyaev , freebsd-emulation@freebsd.org Subject: Re: Does vmware2 wire pages? References: <3A89B7A0.B47D91E@Lustig.COM> <20010214072943.A365@delta.rc.ny.us> <3A96A29A.3BBF2614@elischer.org> <14998.46507.267723.148767@grasshopper.cs.duke.edu> <3A988DF4.9A1626E0@elischer.org> <200102250618.f1P6Igw11814@earth.backplane.com> <3A99E74A.38D7C087@elischer.org> <200102260548.f1Q5mpS29577@earth.backplane.com> <3A99EFEB.3EDCD5D0@elischer.org> Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org : :Matt Dillon wrote: :> :> :> :> Hacking vmware to set wired pages to PG_NOSYNC doesn't seem to help. :> :> :> However, I have my own local hack which seems to help a great deal: :> :> :> hacking the Linulator to treat all mmap'ed files as MAP_NOSYNC, in :> :> :> combination with my fixes to vm_fault so as to correctly tag a page in :> :> :> a MAP_NOSYNC map with PG_NOSYNC on a read fault. :> :[...] :> :> The vm_fault patch is correct. I was failing to set PG_NOSYNC for :> :> the write-wiring case on a read-fault (i.e. a read fault for which :> :> a later write is acceptable and will not cause another fault). :> : :> :so is it applied? :> :can it be applied? :> :I don't have a copy of it so I don't know what it is. :> : :> :Andrew, can you post your patches for the linuxulator too? :> :> It's Andrew's patch, so I am presuming that he wants to commit it. : :what about the change to the vm_fault code? : My recommendation is that Andrew commit both patches (emulator and vm_fault code patch). -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Feb 27 7:21: 4 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from kiop.wiredmedia.co.uk (wiredmedia-2.dsl.easynet.co.uk [212.135.181.114]) by hub.freebsd.org (Postfix) with ESMTP id BD84437B719 for ; Tue, 27 Feb 2001 07:21:00 -0800 (PST) (envelope-from joe@tao.org.uk) Received: from tao.org.uk (postfix@genius.tao.org.uk [212.135.162.50] (may be forged)) by kiop.wiredmedia.co.uk (8.11.2/8.11.2) with ESMTP id f1RFQq383841 for ; Tue, 27 Feb 2001 15:26:54 GMT (envelope-from joe@tao.org.uk) Received: by tao.org.uk (Postfix, from userid 100) id CE7A3317C; Tue, 27 Feb 2001 15:20:43 +0000 (GMT) Date: Tue, 27 Feb 2001 15:20:43 +0000 From: Josef Karthauser To: emulation@freebsd.org Subject: Vmware and vn/md drives. Message-ID: <20010227152043.B7313@tao.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="b5gNqxB1S1yM7hjW" Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --b5gNqxB1S1yM7hjW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Has anyone got any experience of booting vmware from a vn or md device? I've got an image that I'd like to test, but vmware is complaining that it can't find /dev/md0, which is strange because it works with /dev/ad0. I wonder whether there's a devfs problem here, or something else at play. Joe p.s. I'm running -current. --b5gNqxB1S1yM7hjW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjqbxcoACgkQXVIcjOaxUBZ9FACdEcpPrc7DHVVWWF8iRqFzfArY QLoAoKiPvgwbROcK4Q0GKpVYo5txBmCE =PpXv -----END PGP SIGNATURE----- --b5gNqxB1S1yM7hjW-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Feb 27 14:56:33 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from drawbridge.ctc.com (drawbridge.ctc.com [147.160.99.35]) by hub.freebsd.org (Postfix) with ESMTP id 1606837B732 for ; Tue, 27 Feb 2001 14:56:24 -0800 (PST) (envelope-from cameron@ctc.com) Received: from server3.ctc.com (server3.ctc.com [147.160.1.6]) by drawbridge.ctc.com (8.10.1/8.10.1) with ESMTP id f1RMuNj12862 for ; Tue, 27 Feb 2001 17:56:23 -0500 (EST) Received: from ctcjst-mail1.ctc.com (ctcjst-mail1.ctc.com [147.160.34.14]) by server3.ctc.com (Switch-2.1.0/Switch-2.1.0) with ESMTP id f1RMuMs08259 for ; Tue, 27 Feb 2001 17:56:22 -0500 Received: by ctcjst-mail1.ctc.com with Internet Mail Service (5.5.2653.19) id ; Tue, 27 Feb 2001 17:56:58 -0500 Message-ID: <100A6E7AD9CBD31192E900508BB1E9E71416AB@ctcjst-mail1.ctc.com> From: "Cameron, Frank" To: "'freebsd-emulation@freebsd.org'" Subject: NDS on FreeBSD Date: Tue, 27 Feb 2001 17:56:58 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org A couple of weeks ago someone asked about running NDS for Linux on FreeBSD, here's a quick account of my adventures in this matter: The box is 5.0-CURRENT from Feb. 17. Initially the install process would not run, rpm would complain 'symlinked failed, file exists'. How much of this was necessary I don't know: I converted all of the rpms to cpio and installed them, some libraries related to cryptography services were not recognized as actually being shared libraries Then I manually installed the rpms with the switches to force installation and overwrite files. Now I am able to run both ConsoleOne and the NDS server (with some issues). ConsoleOne runs however it eventually crashes with a Java out of memory exception. Part of the install process installed a Linux JVM. The NDS server takes the box down after a few hours (process table full). (I'd get the actual error codes but I just started building XFree-4 on the box and it's my mp3 server; so, I don't want to kill it right now) Anyone who's interested can contact me for more info, otherwise I'm going to drop the issue for a while. -frank To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Feb 27 16:20:59 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by hub.freebsd.org (Postfix) with ESMTP id DAAA037B718; Tue, 27 Feb 2001 16:20:50 -0800 (PST) (envelope-from mb@imp.ch) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.11.1/8.11.1) with ESMTP id f1S0Gl008890; Wed, 28 Feb 2001 01:16:51 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Wed, 28 Feb 2001 01:17:12 +0100 (CET) From: Martin Blapp To: Marcel Moolenaar , Thomas Moestl Cc: freebsd-emulation@FreeBSD.ORG, current@FreeBSD.ORG Subject: [PATCH] for linux_connect (ugly) In-Reply-To: <3A6C7C25.A6101656@cup.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Thomas Moestl and I tried to fix linux_connect. Most of this patch is from Thomas Moestl. I did only a little part of it and testing. Staroffice5.2 has been broken about one year now, and it needs a fix with the same behaviour to work correctly with FreeBSD. This patch should be rewritten so it can be comitted to CURRENT and (IMPORTANT) to STABLE before 4.3 is out. --- src/sys/sys/socket.h.orig Wed Feb 28 01:02:42 2001 +++ src/sys/sys/socket.h Wed Feb 28 01:02:10 2001 @@ -79,6 +79,7 @@ #define SO_REUSEPORT 0x0200 /* allow local address & port reuse */ #define SO_TIMESTAMP 0x0400 /* timestamp received dgram traffic */ #define SO_ACCEPTFILTER 0x1000 /* there is an accept filter */ +#define SO_KNBCONN 0x2000 /* kluge bit for linuxulator connect */ /* * Additional options, not kept in so_options. --- src/sys/compat/linux/linux_socket.c.orig Wed Feb 28 00:58:00 2001 +++ src/sys/compat/linux/linux_socket.c Wed Feb 28 01:00:51 2001 @@ -41,6 +41,8 @@ #include #include #include +#include +#include #include #include @@ -424,8 +426,9 @@ int *avalsize; } */ bsd_getsockopt_args; void *status, *statusl; - int stat, statl = sizeof stat; + int stat, iconn, statl = sizeof stat; caddr_t sg; + struct file *fp; /* Check for non-blocking */ bsd_fcntl_args.fd = linux_args.s; @@ -453,9 +456,27 @@ if ((error = copyin(status, &stat, sizeof stat))) return (error); + /* + * Ugly kluge: some applications depend on 0 being + * returned only the first time. Therefore, we set + * the (otherwise invisible) SO_KNBCONN flag. + * If it is set, return EISCONN. + */ + error = holdsock(p->p_fd, linux_args.s, &fp); + if (error) + return (error); + iconn = ((struct socket *)fp->f_data)->so_options & + SO_KNBCONN; + ((struct socket *)fp->f_data)->so_options |= SO_KNBCONN; + fdrop(fp, p); + + if (iconn) + return (EISCONN); + p->p_retval[0] = stat; return (0); - } + } else + return (EISCONN); } return (error); Martin Martin Blapp, mb@imp.ch ------------------------------------------------ Improware AG, UNIX solution and service provider Zurlindenstrasse 29, 4133 Pratteln, Switzerland Phone: +41 79 370 26 05, Fax: +41 61 826 93 01 ------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Wed Feb 28 3:21:46 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from mailout00.sul.t-online.com (mailout00.sul.t-online.com [194.25.134.16]) by hub.freebsd.org (Postfix) with ESMTP id 6016737B719; Wed, 28 Feb 2001 03:21:41 -0800 (PST) (envelope-from shu@mailsurf.com) Received: from fwd02.sul.t-online.com by mailout00.sul.t-online.com with smtp id 14Y4fs-0003pW-00; Wed, 28 Feb 2001 12:21:40 +0100 Received: from venus.mailsurf.com (320051988339-0001@[62.158.240.43]) by fmrl02.sul.t-online.com with esmtp id 14Y4fc-1t0JE0C; Wed, 28 Feb 2001 12:21:24 +0100 Received: by venus.mailsurf.com (Postfix, from userid 1001) id 299AD1AB4B; Wed, 28 Feb 2001 12:21:23 +0100 (CET) Date: Wed, 28 Feb 2001 12:21:23 +0100 From: Sven Huster To: freebsd-questions@freebsd.org, freebsd-emulation@freebsd.org Subject: vmware2 strange behaviour Message-ID: <20010228122123.A7384@venus.mailsurf.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Sender: 320051988339-0001@t-dialin.net Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org hi there, i have some problems with vmware2 port if i create a new config for vmware evrything works just fine, but after some changes (last time i changed mousetype to ps/2) or just after a while (run for me two weeks without any problems) vmware freezes my pc and after hitting Ctrl-Alt-Backspace _twice_ the machine reboots. i have no idea what happend. i have one config with win2000 which i cant start anymore i create a new config swap over the disk file and cant also start anymore. FreeBSD 4-Stable 22/02/2001 Xfree86-4.0.2_6 vmware2-2.0.3.799_1 any ideas? where can i start, the prob is i cant supply any info about the crash cause the machine freezes completely. thanks regards -- Sven Huster Senior Unix System Administrator *BSD, Solaris, Linux To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Mar 1 5:33:18 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by hub.freebsd.org (Postfix) with ESMTP id 6C06A37B71A for ; Thu, 1 Mar 2001 05:33:14 -0800 (PST) (envelope-from daemon@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with local-bsmtp id 14YTCi-0005KX-00; Thu, 1 Mar 2001 14:33:12 +0100 Received: (from daemon@localhost) by kemoauc.mips.inka.de (8.11.2/8.11.1) id f21DJls13305 for freebsd-emulation@freebsd.org; Thu, 1 Mar 2001 14:19:47 +0100 (CET) (envelope-from daemon) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Linuxulator: sysvipc as modules? Date: Thu, 1 Mar 2001 13:19:47 +0000 (UTC) Message-ID: <97li9j$cvg$1@kemoauc.mips.inka.de> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-emulation@freebsd.org Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 5.0-CURRENT (Feb 20), alpha. I've removed SYSV* from my kernel configuration and instead rely on loading the corresponding modules (rc.conf: sysvipc_enable=YES): $ kldstat Id Refs Address Size Name [...] 10 1 0xfffffe0000b48000 14000 sysvmsg.ko 11 1 0xfffffe0000b66000 16000 sysvsem.ko 12 1 0xfffffe0000b80000 14000 sysvshm.ko [...] With this the Linuxulator fails to load: # kldload linux kldload: can't load linux: No such file or directory Accompanied by a kernel message: link_elf: symbol shmctl undefined -- Christian "naddy" Weisgerber naddy@mips.inka.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Mar 1 5:38:44 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 6ACF537B71A for ; Thu, 1 Mar 2001 05:38:41 -0800 (PST) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id OAA80128; Thu, 1 Mar 2001 14:38:39 +0100 (CET) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: naddy@mips.inka.de (Christian Weisgerber) Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: Linuxulator: sysvipc as modules? References: <97li9j$cvg$1@kemoauc.mips.inka.de> From: Dag-Erling Smorgrav Date: 01 Mar 2001 14:38:39 +0100 In-Reply-To: naddy@mips.inka.de's message of "Thu, 1 Mar 2001 13:19:47 +0000 (UTC)" Message-ID: Lines: 11 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org naddy@mips.inka.de (Christian Weisgerber) writes: > With this the Linuxulator fails to load: Are you sure your kernel and modules are up to date and in sync? BTW, just loading the linux module is enough, the sysvipc stuff will be loaded as dependencies. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Mar 1 8:52:55 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from mail.inka.de (quechua.inka.de [212.227.14.2]) by hub.freebsd.org (Postfix) with ESMTP id 49FE537B718 for ; Thu, 1 Mar 2001 08:52:53 -0800 (PST) (envelope-from daemon@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with local-bsmtp id 14YWJw-0005XD-02; Thu, 1 Mar 2001 17:52:52 +0100 Received: (from daemon@localhost) by kemoauc.mips.inka.de (8.11.2/8.11.1) id f21Glje00793 for freebsd-emulation@freebsd.org; Thu, 1 Mar 2001 17:47:45 +0100 (CET) (envelope-from daemon) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Re: Linuxulator: sysvipc as modules? Date: Thu, 1 Mar 2001 16:47:44 +0000 (UTC) Message-ID: <97lufg$e0$1@kemoauc.mips.inka.de> References: <97li9j$cvg$1@kemoauc.mips.inka.de> Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-emulation@freebsd.org Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dag-Erling Smorgrav wrote: > > With this the Linuxulator fails to load: > Are you sure your kernel and modules are up to date and in sync? Yes. 10-day old source tree. -- Christian "naddy" Weisgerber naddy@mips.inka.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Thu Mar 1 22: 3: 2 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from aeon.conundrum.com (aeon.conundrum.com [216.191.219.140]) by hub.freebsd.org (Postfix) with ESMTP id 4A92637B719 for ; Thu, 1 Mar 2001 22:02:59 -0800 (PST) (envelope-from mattp@conundrum.com) Received: from smtp.conundrum.com (smtp.conundrum.com [216.191.219.134]) by aeon.conundrum.com (8.9.3/8.9.2) with ESMTP id BAA28535 for ; Fri, 2 Mar 2001 01:02:58 -0500 (EST) (envelope-from mattp@conundrum.com) Date: Fri, 2 Mar 2001 01:02:58 -0500 (EST) From: Matt of the Long Red Hair To: freebsd-emulation@freebsd.org Subject: doscmd booting floppy on 4.1.1-STABLE Message-ID: X-URL: http://www.conundrum.com/~mattp/ X-PGP-Fingerprint: 40 E8 24 BC C1 98 00 F2 56 2F F6 7B 36 34 58 01 X-NIC-Handle: MP1229 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm having some issues getting doscmd going under 4.1.1-STABLE (Nov 4, 2000). I've started with the example from the man page, using the following .doscmd file: assign A: /dev/fd0.1440 1440 assign A: /dev/fd0.720 720 assign hard drive-c 1224 15 17 I have two bootable DOS floppies: an 720K IBM DOS 5.0 install and a 1.44M MS DOS 6.22 install. Neither seems to want to boot. My doscmd session looks like this: % doscmd -b Unknown interrupt 15 function 4101 Unknown interrupt 15 function 8706 at which point doscmd hangs -- I can ^C out of it. I've tried commenting out the assign lines I don't need, and tried a variety of fd0 device files to access the floppies.. fd0a, fd0c, rfd0.720, rfd0.1440, etc. and nothing works. When I seem to be on the right track, I get the interrupt errors as above, if I'm off track I simply get short read errors from the device. The 'drive-c' file has been touched, but even with that assign commented out I get the same errors. I've attempted this as root, and as a user in group operator (/dev/fd0* are all group operator), and I've even tried turning on the group write bit on /dev/fd0*. In short, I've run out of troubleshooting ideas, and am beginning to think that this is a problem with with 4.1.1-S as of the date I cvsup'd it. I have done a search through the -emulation archives, and haven't seen anything related to this. Is this possibly a known issue, or am I missing something obvious, or what? Any help is appreciated. Matt Pounsett ---------------------------------------------------------------------- ``Chaos often breeds life, when order breeds habit.'' -- Henry Brooks Adams To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Fri Mar 2 11:25: 7 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from sigbus.com (sigbus.com [207.211.10.110]) by hub.freebsd.org (Postfix) with ESMTP id 33E1A37B71C for ; Fri, 2 Mar 2001 11:25:05 -0800 (PST) (envelope-from henrich@sigbus.com) Received: (from henrich@localhost) by sigbus.com (8.9.3/8.9.3) id LAA01109 for freebsd-emulation@freebsd.org; Fri, 2 Mar 2001 11:25:04 -0800 (PST) (envelope-from henrich) Date: Fri, 2 Mar 2001 11:21:54 -0800 From: Charles Henrich To: Marcel Moolenaar Cc: freebsd-emulation@freebsd.com Subject: Re: Emulation troubles w/ Corporate Time Message-ID: <20010302112154.F644@sigbus.com> References: <20010222133352.C53517@sigbus.com> <3A960AFD.BD5DDC96@cup.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A960AFD.BD5DDC96@cup.hp.com>; from marcel@cup.hp.com on Thu, Feb 22, 2001 at 11:02:21PM -0800 X-Operating-System: FreeBSD 3.3-RELEASE X-PGP-Fingerprint: 1024/F7 FD C7 3A F5 6A 23 BF 76 C4 B8 C9 6E 41 A4 4F Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Perfect, that did it, thanks! > Charles Henrich wrote: > > > > Corporate Time is an enterprise calendering/scheduling software package > > that Im having some trouble running. When I run one componant it > > immediatly reboots the machine (if run as root) or seg faults if run as a > > user. linux_kdump reports: > > Make sure the component is properly branded: > > brandelf -t Linux > > -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) > 447-4222 Charles Henrich Manex Visual Effects henrich@sigbus.com http://www.sigbus.com/~henrich To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Mar 3 11: 5: 2 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from aeon.conundrum.com (aeon.conundrum.com [216.191.219.140]) by hub.freebsd.org (Postfix) with ESMTP id B663237B722 for ; Sat, 3 Mar 2001 11:04:57 -0800 (PST) (envelope-from mattp@conundrum.com) Received: from smtp.conundrum.com (smtp.conundrum.com [216.191.219.134]) by aeon.conundrum.com (8.9.3/8.9.2) with ESMTP id OAA82701 for ; Sat, 3 Mar 2001 14:04:56 -0500 (EST) (envelope-from mattp@conundrum.com) Date: Sat, 3 Mar 2001 14:04:55 -0500 (EST) From: Matt of the Long Red Hair To: freebsd-emulation@freebsd.org Subject: doscmd booting floppy on 4.1.1-STABLE Message-ID: X-URL: http://www.conundrum.com/~mattp/ X-PGP-Fingerprint: 40 E8 24 BC C1 98 00 F2 56 2F F6 7B 36 34 58 01 X-NIC-Handle: MP1229 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I haven't heard back from anyone, so I'm guessing this is something new.. nobody's seen it before? On the off chance that it'd been fixed recently, I cvsup'd a new 4.1.1-S and built a new world, but no change on DOS 5.0 and DOS 6.22 I also tried booting the current FreeDOS (beta5) but that also failed, except with a totally different error: % doscmd -b Signal 4 from DOS program ax=1fff bx=2601 cx=0a78 dx=07b8 si=5000 di=6be8 sp=13e6 bp=0000 cs=045e ss=0000 ds=43eb es=468a ip=c56c eflags=b0206 63 61 6e 6e 6f 74 20 61 6c 6c 6f 63 61 74 65 20 arpl %sp,0x6e(%bx+%di) 045e:c56c Illegal instruction Is anyone successfully booting any DOS with doscmd right now? I'm not really picky about the version of DOS I use.. I'd just like to get something going. I haven't even been able to get doscmd to run in standalone mode.. it always seems to want to boot a disk. I think next I'll try building a bootable DOS filesystem on a hard drive, and attempt to boot that. Maybe this problem is with the floppies only? I briefly looked at using dosemu instead, but I suppose the lack of a port should have tipped me off to how difficult that was going to be. It relies on as86/ld86 -- I'm guessing those are 16-bit linker/assembler -- which FreeBSD doesn't have. I notice most other *nixes do have these, even OpenBSD. How does FreeBSD deal with compiling 16-bit apps? I don't see any obvious substitute in the gcc install. Anyway, I'd be quite happy to hear anyone's thoughts on any of this. Cheers, Matt ---------------------------------------------------------------------- ``Chaos often breeds life, when order breeds habit.'' -- Henry Brooks Adams ---------- Forwarded message ---------- Date: Fri, 2 Mar 2001 01:02:58 -0500 (EST) From: Matt of the Long Red Hair To: freebsd-emulation@freebsd.org Subject: doscmd booting floppy on 4.1.1-STABLE I'm having some issues getting doscmd going under 4.1.1-STABLE (Nov 4, 2000). I've started with the example from the man page, using the following .doscmd file: assign A: /dev/fd0.1440 1440 assign A: /dev/fd0.720 720 assign hard drive-c 1224 15 17 I have two bootable DOS floppies: an 720K IBM DOS 5.0 install and a 1.44M MS DOS 6.22 install. Neither seems to want to boot. My doscmd session looks like this: % doscmd -b Unknown interrupt 15 function 4101 Unknown interrupt 15 function 8706 at which point doscmd hangs -- I can ^C out of it. I've tried commenting out the assign lines I don't need, and tried a variety of fd0 device files to access the floppies.. fd0a, fd0c, rfd0.720, rfd0.1440, etc. and nothing works. When I seem to be on the right track, I get the interrupt errors as above, if I'm off track I simply get short read errors from the device. The 'drive-c' file has been touched, but even with that assign commented out I get the same errors. I've attempted this as root, and as a user in group operator (/dev/fd0* are all group operator), and I've even tried turning on the group write bit on /dev/fd0*. In short, I've run out of troubleshooting ideas, and am beginning to think that this is a problem with with 4.1.1-S as of the date I cvsup'd it. I have done a search through the -emulation archives, and haven't seen anything related to this. Is this possibly a known issue, or am I missing something obvious, or what? Any help is appreciated. Matt Pounsett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Sat Mar 3 19: 2:33 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by hub.freebsd.org (Postfix) with ESMTP id B494737B718 for ; Sat, 3 Mar 2001 19:02:28 -0800 (PST) (envelope-from bts@babbleon.org) Received: from babbleon.org ([66.26.250.181]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Sat, 3 Mar 2001 22:01:58 -0500 Message-ID: <3AA1B01B.9F2626D0@babbleon.org> Date: Sat, 03 Mar 2001 22:01:47 -0500 From: The Babbler Organization: None to speak of X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-emulation@freebsd.org Subject: vmware networking Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm trying to get networking going with vmware under FreeBSD. I was going to set up host-only networking and use NATD to get to the Great Wide World under vmware. This is kinda lucky since host-only is apparently the only sort of networking that vmware supports under FreeBSD. Anyway, I was all ready to set this up when I read this from Akinori -Aki- MUSHA aka while searching for postings relating to FreeBSD and vmware. (I've learned to check these things out *before* I do anything new with FreeBSD now!): No need to do NAT. Just enable a gateway and add route to vmnet. It's a real, effective IP address. Consult "netstat -rn" and try it. If this question seems frequently asked, I'll put a plain explanation on "Hints.FreeBSD". :) Well, I admit it. I followed all I could on this thread, and I'm still stumped. And I admit it--I can't figure out *what* to make the route to. But I'll readily admit that, though I *have* read the man page on route and have (with some assistance) written firewalls on both Linux and FreeBSD, and have configured vmware fully on Linux for host-only networking, the mysteries of what, precisely FreeBSD's gateway vs. firewall vs. natd do, and all the capabilities of route still somewhat elude me. To make this a little more concrete, my vmware host has a physical ed0 interface, IP address 192.168.147.4. The gateway for this is another FreeBSD box, which has an IP address of 192.168.147.1. The 192.168.147.4 machine actually runs a local name server. (Though that's probably beside the point right now.) For vmware, the hosts' vmnet1 address is 192.168.242.1. The guest O/S is win98, and it is statically configured with an IP address of 192.168.242.2, with a gateway of 192.168.242.1. So . . . the 192.168.147 network is the physical ethernet, and the 192.148.242 network is the vmware logical ethernet. In each case, node #1 on the network is the gateway for that network. If I *don't* have gateway_enable set on the host, then the guest can ping itself and 192.168.242.1 (the hosts' vmnet1 address), but nothing more. I've tried both route add 192.168.242.1 192.168.147.1 and route add 192.168.242.2 192.168.147.1 and neither of those is it, though that seemed like the most logical thing to add to me. I also tried taking the message literally ("route to vmnet"), by reversing them, but that doesn't work, either. I also tried doing things like i7500# route add -net 192.168.242.0 192.168.147.1 but I got route: writing to routing socket: File exists which I guess isn't surprising since the netstat -r shows 192.168.242 link#3 UC 0 0 vmnet1 => i7500-vm 0:bd:9f:dc:64:6f UHLW 1 43 vmnet1 1010 Since I don't believe that I set up the above, I assume that it's part of the "automatic" setup that vmware does for me . . . and it seems to make sense; my 192.168.242 traffic goes to the i7500-vm virtual machine, just as my 192.168.147 internal traffic is directed to my gateway machine. But now I want the traffic *from* the vmware virtual machine that's not specifically meant for my machine to get passed up a level to my gateway, and I just can't figure out what to route to specify (other than the above, which don't work) to accomplish that. I already have 192.168.242.2 set up as a gateway for the vmware machine . . . Perhaps I'm going about this the wrong way. Should I change thing so that rather than having a whole seperate vmware network, I just make the vm machine have IP address 192.168.147.101 or something--an address on our "regular" network, and then I could just talk to it from my same 192.168.147.4 address as I use for the physical network card? I can't see quite how that would work. Color me confused. PS: If nothing else I'm sure I can do the natd route, but I hate to do it if it's not really necessary. If I *do* have gateway_enable set, then the guest can now successfully ping 192.168.147.4 (the ep0 address for the host), but it still can't ping 192.168.147.1 (the host's gateway address). That's cool and I never would have tried that by itself without the post from the archives. -- "Brian, the man from babble-on" bts@babbleon.org Brian T. Schellenberger http://www.babbleon.org Support http://www.eff.org. Support decss defendents. Support http://www.programming-freedom.org. Boycott amazon.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message