From owner-freebsd-emulation@FreeBSD.ORG Tue Sep 14 18:35:42 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 AB3DE16A4CE for ; Tue, 14 Sep 2004 18:35:42 +0000 (GMT) Received: from lakermmtao08.cox.net (lakermmtao08.cox.net [68.230.240.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2530C43D3F for ; Tue, 14 Sep 2004 18:35:42 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.71.51]) by lakermmtao08.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040914183541.ZEDI4360.lakermmtao08.cox.net@dolphin.local.net> for ; Tue, 14 Sep 2004 14:35:41 -0400 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with SMTP id i8EIZeSE086064 for ; Tue, 14 Sep 2004 13:35:40 -0500 (CDT) (envelope-from conrads@cox.net) Date: Tue, 14 Sep 2004 13:35:35 -0500 From: "Conrad J. Sabatier" To: freebsd-emulation@freebsd.org Message-ID: <20040914133535.3aa9ee21@dolphin.local.net> X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: /dev, /proc support in a chrooted Linux emulation environment 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: Tue, 14 Sep 2004 18:35:42 -0000 I've been exploring running Linux binaries under a chrooted Linux shell (entering the environment via "chroot /compat/linux /bin/bash"). I've had remarkable success in installing and running quite a few rpms beyond those found in the linux_base port, but have found that /dev support (as well as /proc) doesn't work as expected when running Linux apps within such an environment. Programs/scripts attempting to access, for example, /dev/null complain about no such file or device. The same for /dev/ttyX, /dev/zero, etc. Similar problems occur attempting to use /proc/*. I'm also experiencing some networking problems, mainly with DNS resolution, but for now, my main concern is /dev and /proc. I realize that the method I'm using for running Linux apps is not what was intended with FreeBSD's Linux emulation mode, but it's interesting enough that I want to continue delving into it. My goal is to have as near-complete a working Linux environment as possible, one that would support running practically any Linux app within this chrooted environment and would, for all intents and purposes, appear as a "real" Linux to any programs running within it. Are there any suggestions as to how I might remedy some of these problems? Or is this simply beyond the scope/capabilities of the Linux emulator at this time? -- Conrad J. Sabatier -- "In Unix veritas"