[Users] How to mount devpts?

Jun OKAJIMA okajima at digitalinfra.co.jp
Fri Oct 24 06:28:49 EDT 2008


I tried to use Ubuntu ISO image as VE,
and failed.

What I did is below.
In short, mounting devpty on host (hardware node) side FS
is okay, but VE side FS is not okay.

Any help?

          --- Okajima, Jun. Tokyo, Japan.
              http://www.digitalinfra.co.jp/
              http://www.machboot.com/
              http://www.colinux.org/



1. Install Ubuntu 8.04 hardy to VMware.
2. Install OpenVZ kernel and vzctl and vzquota from apt-line.
3. Reboot with OpenVZ kernel.
and I did like this.
First, insert Hardy ISO image to VMware virtual CD-ROM drive.
[HN]# vzctl set 777
[HN]# mount -t squashfs -o loop,ro /media/cdrom01 \
      /var/lib/private/777
[HN]# vzctl start 777
      -> OK.
[HN]# vzctl enter 777
      -> Fail. 777 does not have devpty.
"Unable to open pty: No such file or directory"
[HN]# vzctl exec 777 mount -v -t devpts none /dev/pts
      -> Fail.
     "mount: none already mounted or /dev/pts busy"
[HN]# vzctl exec 777 ls -la /dev/pty
      -> Nothing there.
[HN]# vzctl exec 777 mount -v -t devpty none /mnt
      -> also fails. The problem occurs on all dirs.
[HN]# grep devpty /proc/filesystems
      -> Okay.
[HN]# cat /proc/mounts | grep devpty
      -> Okay.
[HN]# ls -la /dev/devpty (checking host FS)
      -> Okay.
[HN]# mkdir /tmp/devpty_test
[HN]# mount -t devpty none /tmp/devpty_test
[HN]# ls -la /tmp/devpty_test
      -> Okay.
         On the host system, devpts works well.


More information about the Users mailing list