From owner-freebsd-questions@FreeBSD.ORG Thu Jul 19 03:34:19 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 615EB16A402 for ; Thu, 19 Jul 2007 03:34:19 +0000 (UTC) (envelope-from tony@techvalley.ca) Received: from mail2.techvalley.ca (mail2.techvalley.ca [66.199.130.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0A64D13C4BA for ; Thu, 19 Jul 2007 03:34:19 +0000 (UTC) (envelope-from tony@techvalley.ca) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail2.techvalley.ca (Postfix) with ESMTP id C49F32304CD; Wed, 18 Jul 2007 20:34:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at techvalley.ca Received: from mail2.techvalley.ca ([127.0.0.1]) by localhost (mail2.techvalley.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kCn0MwulCJz9; Wed, 18 Jul 2007 20:34:16 -0700 (PDT) Received: from mail.techvalley.ca (S010600121701f0ec.vs.shawcable.net [24.85.106.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail2.techvalley.ca (Postfix) with ESMTP id 93E122304CC; Wed, 18 Jul 2007 20:34:16 -0700 (PDT) Received: from monsoon.techvalley.ca ([192.168.1.1]) by mail.techvalley.ca (8.13.8/8.13.8) with ESMTP id l6J3cttR011170; Wed, 18 Jul 2007 20:38:56 -0700 (PDT) (envelope-from tony@techvalley.ca) Message-Id: <7.0.1.0.0.20070718202853.01bf3108@techvalley.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Wed, 18 Jul 2007 20:34:21 -0700 To: Christopher Cowart From: Tech Valley Internet - Tony Kivits In-Reply-To: <20070719023259.GA27888@rescomp.berkeley.edu> References: <7.0.1.0.0.20070718181625.01d5eeb0@techvalley.ca> <20070719023259.GA27888@rescomp.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: /dev/random in jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2007 03:34:19 -0000 At 07:32 PM 7/18/2007, Christopher Cowart wrote: >On Wed, Jul 18, 2007 at 06:30:50PM -0700, Tech Valley Internet - >Tony Kivits wrote: > > I am attempting to run portions (if not all) of the software called > > HSphere inside of jailed subsystems of FreeBSD. I am able to create > > the jails no problem but the devices /dev/random and /dev/urandom are > > not created automatically in the jail despite the fact that a handful > > of other devices are mounted correctly when the jail is created. > > > > Is there a specific reason for these devices not being created in a > > jail or is there a way to create these devices so that they will be > > available inside a jail? > >We run bind instances in FreeBSD jails. This is how we get /dev/random: > >| # /etc/devfs.rules: >| [devfsrules_thin_jail=100] >| add include $devfsrules_hide_all >| add include $devfsrules_unhide_basic > >| # /etc/rc.conf: >| jail_cachingdns_devfs_enable="YES" >| jail_cachingdns_devfs_ruleset="devfsrules_thin_jail" > >HTH, > >-- >Chris Cowart >Lead Systems Administrator >Network & Infrastructure Services, RSSP-IT >UC Berkeley > Thanks Chris, So if my jail is called "cp", the only thing that I would have to change from your scripts would be replace to replace "cachingdns" with "cp"? Tony