[lxc-devel] lxc-start behavior in lxc1.0

William Dauchy wdauchy at gmail.com
Mon Apr 14 13:02:54 UTC 2014


Hello,

With lxc0.9 I was used to do:
lxc-start -n XX -- /bin/bash
in order to debug my own init script.

now with lxc1.0, I can't get any shell but I need to use lxc-attach instead.
here is the last strace logs:
open("/proc/6951/ns/net", O_RDONLY)     = 16
epoll_create(2)                         = 17
fcntl(17, F_SETFD, FD_CLOEXEC)          = 0
epoll_ctl(17, EPOLL_CTL_ADD, 13, {EPOLLIN, {u32=13236672, u64=13236672}}) = 0
epoll_ctl(17, EPOLL_CTL_ADD, 14, {EPOLLIN, {u32=13236736, u64=13236736}}) = 0
epoll_ctl(17, EPOLL_CTL_ADD, 4, {EPOLLIN, {u32=13236800, u64=13236800}}) = 0
epoll_wait(17, {{EPOLLIN, {u32=13236672, u64=13236672}}}, 10, 4294967295) = 1
read(13, "\21\0\0\0\0\0\0\0\1\0\0\0\36\33\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
128) = 128
waitid(P_PID, 6951, {}, WNOHANG|WEXITED|WNOWAIT, NULL) = 0
epoll_wait(17, {{EPOLLIN, {u32=13236736, u64=13236736}}}, 10, 4294967295) = 1
read(14, "bash: cannot set terminal proces"..., 1024) = 114
epoll_wait(17, {{EPOLLIN, {u32=13236736, u64=13236736}}}, 10, 4294967295) = 1
read(14, "root at cgroups0:/# ", 1024)     = 17
epoll_wait(17,

I guess this new behavior is expected but I was wondering why since it
was really helpful for debug purpose (i.e check if the FS was ok and
start my init manually)

Regards

-- 
William


More information about the lxc-devel mailing list