From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Jenkins Date: Mon, 01 Sep 2008 10:26:46 +0000 Subject: Re: How to create /dev/pts Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org jimbob palmer wrote: > Hello, > > I am running Ubuntu 8.04.1 in a container (openvz). > > Ubuntu uses udev, and the /dev/pts device does not exist in the container. > > I can cheat, and run > cd /dev && /sbin/MAKEDEV pty && /sbin/MAKEDEV tty > manually with a chroot, but this is a hack. > > RHEL has the makedev.d directory which solves my problem quite easily. > > I wondered if there is a correct way of doing this with just udev? Normally Ubuntu uses the devpts filesystem. The ultimate solution is for this to be container-ized as discussed recently on LKML. (IIRC the result was to avoid container-specific magic and just allow multiple independent mounts of devpts). So I think this is an OpenVZ issue and you need to find out how OpenVZ is supposed to work here. My guess is your "hack" is actually the correct solution for the time being. You just need to add the commands to an init script somewhere. Alan