OpenVZ - "container enter failed"

Проблема

 # vzctl enter 104
 enter into VE 104 failed
 Unable to open pty: No such file or directory
 

Решение

 # vzctl exec  104 /sbin/MAKEDEV tty
 # vzctl exec 104 /sbin/MAKEDEV pty
 # vzctl enter 104

CentOS/RHEL VPS

  • Edit the file /etc/rc.sysinit (symlink from /etc/rc.d/rc.sysinit)
  • Comment out line 338 as follows:
 #/sbin/start_udev
  • OPTIONAL, SOMETIMES REQUIRED: Add the following lines after /sbin/start_udev:
 /sbin/MAKEDEV tty
 /sbin/MAKEDEV pty
  • Reboot your VPS

Ubuntu/Debian VPS

 # vzctl exec VEID update-rc.d -f udev remove
 # vzctl restart VEID

Ссылки

Комментарии

 
blog/2011/12/14-openvz_-_container_enter_failed.txt · Последние изменения: 2011/12/14 17:27 — Антон Бугреев · []