[lxc-devel] lxc-start hangs when starting a new container

Matty matty91 at gmail.com
Tue Jun 30 22:33:18 UTC 2009


I have an lxc container that keeps hanging when I run 'lxc-start -n
<GUEST NAME>'. When I strace lxc-start, I see the following:

$ strace lxc-start -n test
   ..............
open("/usr/local/var/lib/lxc/test/state", O_WRONLY) = 13
flock(13, LOCK_EX)                      = 0
ftruncate(13, 0)                        = 0
write(13, "RUNNING"..., 7)              = 7
close(13)                               = 0
socket(PF_FILE, SOCK_DGRAM, 0)          = 13
sendto(13, "\0\0\0\0test\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
4104, 0, {sa_family=AF_FILE, path=@"lxc-monitor"...}, 110) = -1
ECONNREFUSED (Connection refused)
close(13)                               = 0
close(13)                               = -1 EBADF (Bad file descriptor)
close(14)                               = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 13
bind(13, {sa_family=AF_FILE, path=@"test"...}, 110) = 0
listen(13, 100)                         = 0
fcntl(13, F_SETFD, FD_CLOEXEC)          = 0
epoll_create(1)                         = 14
epoll_ctl(14, EPOLL_CTL_ADD, 12, {EPOLLIN, {u32=17707440, u64=17707440}}) = 0
epoll_ctl(14, EPOLL_CTL_ADD, 13, {EPOLLIN, {u32=17707504, u64=17707504}}) = 0

I starting the container with 2.6.[29-31pre] kernels and with the
latest lxc code, and they all appear to exhibit this behavior. Has
anyone seen this before? Any idea what the lxc-monitor socket is used
for?

Thanks,
- Ryan
--
http://prefetch.net




More information about the lxc-devel mailing list