From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] (openvz) Unable to open pty: No such file or directory Date: Mon, 31 Dec 2007 15:40:46 +0300 Message-ID: <20071231124046.GA26437@wo.int.altlinux.org> (raw) In-Reply-To: <20071231115612.GB28022@osdn.org.ua> [-- Attachment #1: Type: text/plain, Size: 1628 bytes --] On Mon, Dec 31, 2007 at 01:56:12PM +0200, Michael Shigorin wrote: > С template cache, который наблюдается здесь: > http://download.openvz.org/template/precreated/contrib/altlinux-4.0-i586.tar.gz Чья это работа? > под ALS4.0.1/x86_64 вылазит проблема, описанная здесь: > http://www.freesource.info/wiki/AltLinux/Dokumentacija/OpenVZ#h3287-18 > > --- > Если огребаем такое: > > # vzctl enter 101 > enter into VE 101 failed > Unable to open pty: No such file or directory > > -- то дело в /dev/tty, /dev/ptmx и (не)смонтированном /dev/pts/. > Надо добавить в /etc/fstab этого VE нечто вроде > > devpts /dev/pts devpts gid=5,mode=620 0 0 > --- > > Из темплейта там (как и в HN) наблюдается: > > --- > devpts /dev/pts devpts nosuid,noexec,gid=tty,mode=620 0 0 > --- > > Замена "gid=tty" на "gid=5" достаточна для исправления ситуации. В нормальной ситуации эта замена не нужна. Другими словами, в этом template cache сломано что-то ещё. > Надо будет собрать рабочие template cache для i586/x86_64 Это ведь тривиально: $ cat tarify.sh #!/bin/sh -e cd / tar --create --file=- --numeric-owner --one-file-system --sparse -- * $ hsh --save --init --pkg-build=, && hsh-install basesystem bzip2 apt etcnet glibc hostinfo less sysklogd vim-console netlist openssh-server rsync time shadow-edit shadow-groups (да, здесь есть избыточность) && hsh-fakedev -r /dev/tty && hsh-fakedev -r /dev/ptmx && hsh-run --root --execute tarify.sh >altlinux-`uname -m`-sshd.tar && gzip -9 altlinux-`uname -m`-sshd.tar Не говоря уже про готовые шаблоны для spt*/mkimage. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-12-31 12:40 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-12-31 11:56 Michael Shigorin 2007-12-31 12:40 ` Dmitry V. Levin [this message] 2007-12-31 13:36 ` [Sysadmins] [SOLVED] " Michael Shigorin 2008-01-05 12:34 ` [Sysadmins] " Alexey Borovskoy 2008-01-08 22:51 ` Michael Shigorin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20071231124046.GA26437@wo.int.altlinux.org \ --to=ldv@altlinux.org \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git