ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] (openvz) Unable to open pty: No such file or directory
@ 2007-12-31 11:56 Michael Shigorin
  2007-12-31 12:40 ` Dmitry V. Levin
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Shigorin @ 2007-12-31 11:56 UTC (permalink / raw)
  To: sysadmins

	Здравствуйте.
С 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 для i586/x86_64
или понять, что не так с vzctl start...

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Sysadmins] (openvz) Unable to open pty: No such file or directory
  2007-12-31 11:56 [Sysadmins] (openvz) Unable to open pty: No such file or directory Michael Shigorin
@ 2007-12-31 12:40 ` Dmitry V. Levin
  2007-12-31 13:36   ` [Sysadmins] [SOLVED] " Michael Shigorin
  2008-01-05 12:34   ` [Sysadmins] " Alexey Borovskoy
  0 siblings, 2 replies; 5+ messages in thread
From: Dmitry V. Levin @ 2007-12-31 12:40 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Sysadmins] [SOLVED] (openvz) Unable to open pty: No such file or directory
  2007-12-31 12:40 ` Dmitry V. Levin
@ 2007-12-31 13:36   ` Michael Shigorin
  2008-01-05 12:34   ` [Sysadmins] " Alexey Borovskoy
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Shigorin @ 2007-12-31 13:36 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

On Mon, Dec 31, 2007 at 03:40:46PM +0300, Dmitry V. Levin wrote:
> > Замена "gid=tty" на "gid=5" достаточна для исправления ситуации.

Это не так.

> В нормальной ситуации эта замена не нужна.  Другими словами,
> в этом template cache сломано что-то ещё.

Всё гораздо проще :)

VE=NNN; vzctl start $VE; sleep 1; vzctl enter $VE

Интересно, получается ли добавить в vzctl такую проверку,
чтоб не спать вручную...

> > Надо будет собрать рабочие template cache для i586/x86_64
> Это ведь тривиально:

Да я в общем-то в курсе, просто локально имеют хождение две
нерабочие версии -- без apt и без etcnet :)

> $ 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.

Тоже спасибо.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Sysadmins] (openvz) Unable to open pty: No such file or directory
  2007-12-31 12:40 ` Dmitry V. Levin
  2007-12-31 13:36   ` [Sysadmins] [SOLVED] " Michael Shigorin
@ 2008-01-05 12:34   ` Alexey Borovskoy
  2008-01-08 22:51     ` Michael Shigorin
  1 sibling, 1 reply; 5+ messages in thread
From: Alexey Borovskoy @ 2008-01-05 12:34 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

* Вторник 01 января 2008 Dmitry V. Levin

> Не говоря уже про готовые шаблоны для spt*/mkimage.

Это где такое раздают?

-- 
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63  2753 E37A 9E3F 11F3 BDE1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Sysadmins] (openvz) Unable to open pty: No such file or directory
  2008-01-05 12:34   ` [Sysadmins] " Alexey Borovskoy
@ 2008-01-08 22:51     ` Michael Shigorin
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Shigorin @ 2008-01-08 22:51 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

On Sun, Jan 06, 2008 at 12:34:10AM +1200, Alexey Borovskoy wrote:
> > Не говоря уже про готовые шаблоны для spt*/mkimage.
> Это где такое раздают?

В составе spt был, помнится.  http://wiki.sisyphus.ru/devel/spt

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-01-08 22:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-31 11:56 [Sysadmins] (openvz) Unable to open pty: No such file or directory Michael Shigorin
2007-12-31 12:40 ` Dmitry V. Levin
2007-12-31 13:36   ` [Sysadmins] [SOLVED] " Michael Shigorin
2008-01-05 12:34   ` [Sysadmins] " Alexey Borovskoy
2008-01-08 22:51     ` Michael Shigorin

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