From owner-freebsd-isp Wed Dec 12 19:52:26 2001 Delivered-To: freebsd-isp@freebsd.org Received: from november.debolaz.com (november.debolaz.com [193.71.19.191]) by hub.freebsd.org (Postfix) with ESMTP id 5F14437B417 for ; Wed, 12 Dec 2001 19:52:21 -0800 (PST) Received: from amphibic.com (november [193.71.19.191]) by november.debolaz.com (Postfix) with SMTP id 6029F136031; Thu, 13 Dec 2001 04:52:20 +0100 (CET) Received: from 62.179.128.205 (proxying for unknown) (SquirrelMail authenticated user debolaz) by www.debolaz.com with HTTP; Thu, 13 Dec 2001 04:52:20 +0100 (CET) Message-ID: <42555.62.179.128.205.1008215540.squirrel@www.debolaz.com> Date: Thu, 13 Dec 2001 04:52:20 +0100 (CET) Subject: RE: Linux compatibility inside jail system From: "Anders Nor Berle" To: In-Reply-To: <10F29E27A956D511B0940050DA8D86A9340D3C@apmail.dagupan.com> References: <10F29E27A956D511B0940050DA8D86A9340D3C@apmail.dagupan.com> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: X-Mailer: SquirrelMail (version 1.2.0 [cvs]) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Yes, when you say that, I recall a little hack is neccesary. Basically, the port wants to do 2 things which cannot be done inside a jail. (1) Set the sysctl "kern.fallback_elf_brand" to 3 (LINUX_ELF) (2) Make a a /dev/null device inside the linux chrooted environment. The first is obvious to accomplish, simply set it outside the jail. Sysctls are global. So to do this, you'd simply write: sysctl -w kern.fallback_elf_brand=3 Then, you comment out this code in the linux_base-7 Makefile, which I believe is located at line 136 and 150. The second is slightly more tricky, but shouldnt be any problem. make a directory called /compat/linux/dev inside the jail, chdir to it and write: mknod null c 2 2 Then, comment out this too in your Makefile (Line 130). Then, try installing it again and tell me how it works. :) > I think I already have linux_compat -- how do I install it from inside the jail? I've > tried it but it complained about mknod not being able to access something... > >> Install the linux_compat module, in the nonjail part of the system, then simply >> install the port emulators/linux_base-7 (or another if you prefer an older version) >> inside your jail, and if I recall correctly, that should be about it. >> >>> How did you do it? Can you give me the steps? >>> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message