[lxc-users] init] <defunct>
Serge Hallyn
serge.hallyn at ubuntu.com
Mon Jul 20 15:00:31 UTC 2015
Does the failure with <defunct> happen immediately after booting
the container, or after the container has actually been working
ok for awhile?
You probably want to run the container a few times as something
like
lxc-start -n containername -L ~/console_output -- /sbin/init --debug --verbose
and see whether any useful upstart debug info is in ~/console_output.
-serge
Quoting Laurent Ducos (laurent.ducos at biblibre.com):
>
> Hello
> I have a problem on lxc , ubuntu trusty and lxc 1.0.7. Sometimes
> lxc-console -n container does not work but i can attach the
> container with lxc -attach . in ps auxwwf i see: [init] <defunct>
> [sshd] <defunct> [login] <defunct>
> For now the only solution is to reboot the container.
>
> The container configuration :
>
> lxc.mount = /var/lib/lxc/container1/fstab
> lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
> lxc.mount.entry = sysfs sys sysfs defaults 0 0
> lxc.mount.entry = /sys/fs/fuse/connections sys/fs/fuse/connections
> none bind,optional 0 0
> lxc.tty = 4
> lxc.pts = 1024
> lxc.arch = x86_64
> lxc.seccomp = /usr/share/lxc/config/common.seccomp
> lxc.cgroup.devices.deny = a
> lxc.cgroup.devices.allow = c *:* m
> lxc.cgroup.devices.allow = b *:* m
> lxc.cgroup.devices.allow = c 1:3 rwm
> lxc.cgroup.devices.allow = c 1:5 rwm
> lxc.cgroup.devices.allow = c 5:0 rwm
> lxc.cgroup.devices.allow = c 5:1 rwm
> lxc.cgroup.devices.allow = c 1:8 rwm
> lxc.cgroup.devices.allow = c 1:9 rwm
> lxc.cgroup.devices.allow = c 5:2 rwm
> lxc.cgroup.devices.allow = c 136:* rwm
> lxc.cgroup.devices.allow = c 254:0 rm
> lxc.cgroup.devices.allow = c 10:229 rwm
> lxc.cgroup.devices.allow = c 10:200 rwm
> lxc.cgroup.devices.allow = c 1:7 rwm
> lxc.cgroup.devices.allow = c 10:228 rwm
> lxc.cgroup.devices.allow = c 10:232 rwm
> lxc.utsname = container1
> lxc.network.type = veth
> lxc.network.flags = up
> lxc.network.link = lxcbr0
> lxc.network.hwaddr = 00:16:3e:81:75:b9
> lxc.cap.drop = sys_module
> lxc.cap.drop = mac_admin
> lxc.cap.drop = mac_override
> lxc.cap.drop = sys_time
> lxc.rootfs = /dev/lxc/container1
> lxc.pivotdir = lxc_putold
> --
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list