From owner-freebsd-current Mon Jun 1 13:16:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA22525 for freebsd-current-outgoing; Mon, 1 Jun 1998 13:16:30 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA22442 for ; Mon, 1 Jun 1998 13:16:17 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id MAA00869; Mon, 1 Jun 1998 12:09:40 -0700 (PDT) Message-Id: <199806011909.MAA00869@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: bag@sinbin.demos.su (Alex G. Bulushev) cc: eivind@yes.no (Eivind Eklund), sepotvin@videotron.ca, current@FreeBSD.ORG Subject: Re: I see one major problem with DEVFS... In-reply-to: Your message of "Mon, 01 Jun 1998 12:16:37 +0400." <199806010816.MAA12889@sinbin.demos.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 01 Jun 1998 12:09:39 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > there are several problems with dev's in a chroot'ed enviroment, > for example a real system (we use it): > 1. about 500 chroot'ed "virtual mashines", the /dev containes only > necessary devices (tty??) for each VM (created by mknod when VM created) > 2. users fs (on main server) with VM (end /dev for each VM) mounted via nfs > on several hosts where users realy work (chroot on nfs) > 3. each VM can created or deleted while system working on main server > > and what about future of this scheme with new devfs ideas? > mount devfs for each VM on main server and hosts where users work? > and unmount devfs on each host before VM deleted? That's the most logical way of doing it. It would be quite straightforward to mount a DEVFS and have it not populated by default (eg. mount -t devfs -o empty ...). Then your mknods run as "normal" creating the devices you want. DEVFS is per-system. You cannot export a DEVFS via NFS (it makes no sense to do so - devices there are only relevant to the host system). -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message