Home » International » Russian » *SOLVED* Slackware in VE
*SOLVED* Slackware in VE [message #8381] |
Sat, 18 November 2006 07:51 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
enpx
Messages: 50 Registered: October 2006
|
Member |
|
|
Здравствуйте!
Требуется завести VE со слакварью. Как обычно, взял шаблон с openvz.org, создал VE, запустил, пытаюсь войти:
# vzctl enter 103
enter into VE 103 failed
Unable to open pty: No such file or directory
Что делать дальше?
[Updated on: Mon, 20 November 2006 07:45] by Moderator Report message to a moderator
|
|
|
Re: Slackware in VE [message #8386 is a reply to message #8381] |
Sat, 18 November 2006 13:09 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
Это происходит только с VE,основанными на slackware template?
Сделайте, пожалуйста, strace vzctl'а (strace -f ...).
Пошлите ещё листинг диhектории /dev внутри VE:
ls -l /vz/root/<veid>/dev (на HN)
Какое ядро вы используете, версию vzctl?
Спасибо!
[Updated on: Sat, 18 November 2006 13:10] Report message to a moderator
|
|
|
Re: Slackware in VE [message #8391 is a reply to message #8386] |
Sat, 18 November 2006 17:40 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
enpx
Messages: 50 Registered: October 2006
|
Member |
|
|
Quote: | Это происходит только с VE,основанными на slackware template?
|
Да. С CentOS c openvz.org и самодельными альтовскими все нормально
Quote: |
Сделайте, пожалуйста, strace vzctl'а (strace -f ...).
|
# strace -f vzctl enter 103
execve("/usr/sbin/vzctl", ["vzctl", "enter", "103"], [/* 26 vars */]) = 0
uname({sys="Linux", node="vm.donpac.ru", ...}) = 0
brk(0) = 0x91fc000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=10115, ...}) = 0
mmap2(NULL, 10115, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f52000
close(3) = 0
open("/usr/lib/libvzctl.so.0.0.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0PP\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=125436, ...}) = 0
mmap2(NULL, 128356, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x674000
mmap2(0x692000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d) = 0x692000
close(3) = 0
open("/lib/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \f\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9568, ...}) = 0
mmap2(NULL, 12400, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2e9000
mmap2(0x2eb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x2eb000
close(3) = 0
open("/lib/libutil.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\f\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9628, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f51000
mmap2(NULL, 12428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x111000
mmap2(0x113000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x113000
close(3) = 0
open("/usr/lib/libsetproctitle.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\250\4\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=3168, ...}) = 0
mmap2(NULL, 6516, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xcb6000
mmap2(0xcb7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xcb7000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\336U\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1098384, ...}) = 0
mmap2(NULL, 1109076, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x18a000
mmap2(0x293000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x108) = 0x293000
mmap2(0x296000, 11348, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x296000
close(3) = 0
mprotect(0x293000, 4096, PROT_READ) = 0
munmap(0xb7f52000, 10115) = 0
brk(0) = 0x91fc000
brk(0x921d000) = 0x921d000
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
open("/etc/vz/vz.conf", O_RDONLY) = 3
stat64("/etc/vz/vz.conf", {st_mode=S_IFREG|0644, st_size=729, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=729, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f54000
read(3, "## Global parameters\nVIRTUOZZO=y"..., 4096) = 729
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7f54000, 4096) = 0
open("/var/log/vzctl.log", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=12292, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f54000
fstat64(3, {st_mode=S_IFREG|0644, st_size=12292, ...}) = 0
_llseek(3, 12292, [12292], SEEK_SET) = 0
stat64("/etc/vz//conf//103.conf", {st_mode=S_IFREG|0644, st_size=1697, ...}) = 0
open("/etc/vz//conf//103.conf", O_RDONLY) = 4
stat64("/etc/vz//conf//103.conf", {st_mode=S_IFREG|0644, st_size=1697, ...}) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1697, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f53000
read(4, "# Copyright (C) 2000-2006 SWsof"..., 4096) = 1697
read(4, "", 4096) = 0
close(4) = 0
munmap(0xb7f53000, 4096) = 0
fcntl64(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl64(1, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl64(2, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
open("/dev/vzctl", O_RDWR) = 4
ioctl(4, 0x400c2e05, 0xbfe51260) = 0
close(3) = 0
munmap(0xb7f54000, 4096) = 0
ioctl(4, 0x400c2e05, 0xbfe51270) = 0
pipe([3, 5]) = 0
pipe([6, 7]) = 0
pipe([8, 9]) = 0
syscall_511(0x67, 0x91fd488, 0x400c2e05, 0x679153, 0x91fd488, 0xbfe512a8, 0xffffffda, 0x7b, 0x7b, 0, 0, 0x1ff, 0x23aa42, 0x73, 0x246, 0xbfe510cc, 0x7b, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 10
fcntl64(10, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(10, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(10) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 10
fcntl64(10, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(10, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(10) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 10
fstat64(10, {st_mode=S_IFREG|0644, st_size=1854, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f54000
read(10, "#\n# Please refer to nsswitch.con"..., 4096) = 1854
read(10, "", 4096) = 0
close(10) = 0
munmap(0xb7f54000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 10
fstat64(10, {st_mode=S_IFREG|0644, st_size=10115, ...}) = 0
mmap2(NULL, 10115, PROT_READ, MAP_PRIVATE, 10, 0) = 0xb7f52000
close(10) = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 10
read(10, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\33\0"..., 512) = 512
fstat64(10, {st_mode=S_IFREG|0644, st_size=34236, ...}) = 0
mmap2(NULL, 37512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 10, 0) = 0x115000
mmap2(0x11d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 10, 0x7) = 0x11d000
close(10) = 0
munmap(0xb7f52000, 10115) = 0
open("/etc/passwd", O_RDONLY) = 10
fcntl64(10, F_GETFD) = 0
fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
fstat64(10, {st_mode=S_IFREG|0644, st_size=1832, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f54000
read(10, "root:x:0:0:System Administrator:"..., 4096) = 1832
close(10) = 0
munmap(0xb7f54000, 4096) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 10
fcntl64(10, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(10, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(10) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 10
fcntl64(10, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(10, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(10) = 0
open("/etc/group", O_RDONLY) = 10
fcntl64(10, F_GETFD) = 0
fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
fstat64(10, {st_mode=S_IFREG|0644, st_size=1087, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f54000
read(10, "root:x:0:\nbin:x:1:root\ndaemon:x:"..., 4096) = 1087
close(10) = 0
munmap(0xb7f54000, 4096) = 0
rt_sigaction(SIGCHLD, {0x804c950, [], SA_RESTORER|SA_NOCLDSTOP, 0x1b13d8}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
fork(Process 25322 attached
) = 25322
[pid 25321] close(3) = 0
[pid 25321] close(7) = 0
[pid 25321] close(9) = 0
[pid 25321] read(8, <unfinished ...>
[pid 25322] ioctl(0, TIOCGWINSZ, {ws_row=55, ws_col=143, ws_xpixel=1020, ws_ypixel=719}) = 0
[pid 25322] ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
[pid 25322] close(5) = 0
[pid 25322] close(6) = 0
[pid 25322] close(8) = 0
[pid 25322] getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
[pid 25322] open("/dev/null", O_RDWR) = 5
[pid 25322] dup2(5, 0) = 0
[pid 25322] dup2(5, 1) = 1
[pid 25322] dup2(5, 2) = 2
[pid 25322] close(5) = 0
[pid 25322] close(6) = -1 EBADF (Bad file descriptor)
...
[pid 25322] close(1023) = -1 EBADF (Bad file descriptor)
[pid 25322] dup2(7, 1) = 1
[pid 25322] dup2(7, 2) = 2
[pid 25322] chdir("/var/lib/vz/root/103") = 0
[pid 25322] chroot("/var/lib/vz/root/103") = 0
[pid 25322] setsid() = 25322
[pid 25322] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 25322] rt_sigaction(SIGHUP, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGILL, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGTRAP, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGABRT, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGBUS, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGFPE, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGKILL, {SIG_DFL}, NULL, 8) = -1 EINVAL (Invalid argument)
[pid 25322] rt_sigaction(SIGUSR1, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGSEGV, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGUSR2, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGALRM, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGTERM, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGSTKFLT, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGCHLD, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGCONT, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGSTOP, {SIG_DFL}, NULL, 8) = -1 EINVAL (Invalid argument)
[pid 25322] rt_sigaction(SIGTSTP, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGTTIN, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGTTOU, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGURG, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGXCPU, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGXFSZ, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGVTALRM, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGPROF, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGWINCH, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGIO, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGPWR, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGSYS, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGRTMIN, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(SIGRT_1, {SIG_DFL}, NULL, 8) = 0
...
[pid 25322] rt_sigaction(SIGRT_32, {SIG_DFL}, NULL, 8) = 0
[pid 25322] rt_sigaction(65, {SIG_DFL}, NULL, 8) = -1 EINVAL (Invalid argument)
[pid 25322] ioctl(4, 0x400c2e05, 0xbfe510e0) = 103
[pid 25322] close(4) = 0
[pid 25322] open("/dev/ptmx", O_RDWR) = 4
[pid 25322] statfs("/dev/pts", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=262144, f_bfree=243302, f_bavail=243302, f_files=200000, f_ff
ree=186385, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
[pid 25322] statfs("/dev/", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=262144, f_bfree=243302, f_bavail=243302, f_files=200000, f_ffree
=186385, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
[pid 25322] close(4) = 0
[pid 25322] open("/dev/ptyp0", O_RDWR) = -1 ENXIO (No such device or address)
...
[pid 25322] open("/dev/ptyef", O_RDWR) = -1 ENXIO (No such device or address)
[pid 25322] write(2, "Unable to open pty", 18) = 18
[pid 25322] write(2, ": No such file or directory", 27) = 27
[pid 25322] write(2, "\n", 1) = 1
[pid 25322] write(9, "\377\377\377\377", 4) = 4
[pid 25322] exit_group(-1) = ?
Process 25322 detached
<... read resumed> "\377\377\377\377", 4) = 4
--- SIGCHLD (Child exited) @ 0 (0) ---
sigreturn() = ? (mask now [])
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f54000
write(1, "enter into VE 103 failed\n", 25enter into VE 103 failed
) = 25
fcntl64(6, F_GETFL) = 0 (flags O_RDONLY)
fcntl64(6, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
read(6, "Unable to open pty: No such file"..., 10239) = 46
write(1, "Unable to open pty: No such file"..., 46Unable to open pty: No such file or directory
) = 46
read(6, "", 10239) = 0
waitpid(25322, [{WIFEXITED(s) && WEXITSTATUS(s) == 255}], 0) = 25322
close(5) = 0
close(6) = 0
close(4) = 0
munmap(0xb7f54000, 4096) = 0
exit_group(65280) = ?
Process 25321 detached
Quote: |
Пошлите ещё листинг диhектории /dev внутри VE:
ls -l /vz/root/<veid>/dev (на HN)
|
это в аттаче, слишком много ...
Quote: |
Какое ядро вы используете, версию vzctl?
|
# uname -a
Linux vm 2.6.16-ovz-smp-alt7 #1 SMP Fri Sep 22 22:45:00 MSD 2006 i686 GNU/Linux
# vzctl --version
vzctl version 3.0.12
Вам спасибо!
-
Attachment: dev
(Size: 133.72KB, Downloaded 275 times)
|
|
|
Re: Slackware in VE [message #8393 is a reply to message #8391] |
Sat, 18 November 2006 17:47 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
enpx
Messages: 50 Registered: October 2006
|
Member |
|
|
Quote: |
[pid 25322] open("/dev/ptyp0", O_RDWR) = -1 ENXIO (No such device or address)
...
[pid 25322] open("/dev/ptyef", O_RDWR) = -1 ENXIO (No such device or address)
[pid 25322] write(2, "Unable to open pty", 18) = 18
[pid 25322] write(2, ": No such file or directory", 27) = 27
[pid 25322] write(2, "\n", 1) = 1
[pid 25322] write(9, "\377\377\377\377", 4) = 4
[pid 25322] exit_group(-1) = ?
Process 25322 detached
|
Но все на месте:
[root@vm ~]# vzctl exec 103 ls -l /dev/ptyp0
crw-rw-rw- 1 root tty 2, 0 Jun 6 11:42 /dev/ptyp0
[root@vm ~]# ls -l /dev/ptyp0
crw--w---- 1 root tty 2, 0 Jan 1 2000 /dev/ptyp0
[root@vm ~]# vzctl exec 103 ls -l /dev/ptyef
crw-rw-rw- 1 root tty 2, 255 Jun 6 11:42 /dev/ptyef
[root@vm ~]# ls -l /dev/ptyef
crw--w---- 1 root tty 2, 255 Jan 1 2000 /dev/ptyef
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Aug 30 00:35:23 GMT 2024
Total time taken to generate the page: 0.03593 seconds
|