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

Stéphane Graber stgraber at ubuntu.com
Mon Apr 14 13:43:03 UTC 2014


On Mon, Apr 14, 2014 at 03:02:54PM +0200, William Dauchy wrote:
> 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)


Hmm, "lxc-start -n blah -- /bin/bash" still seems to work fine (well, as
well as this usually does, console initialization isn't done properly,
... but I get a bash prompt at least).

What do you get on screen when you do it?

> 
> Regards
> 
> -- 
> William
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140414/4c1c12d0/attachment.sig>


More information about the lxc-devel mailing list