[lxc-users] properly shutdown jessie container on wheezy host

Saint Michael venefax at gmail.com
Fri Nov 13 16:06:39 UTC 2015


It is is not solved. It should work.

On Fri, Nov 13, 2015 at 11:01 AM, Alex Mestiashvili <
alex at biotec.tu-dresden.de> wrote:

> It seem I found the problem, if I mount /run as tmpfs
>
> lxc.mount.entry = tmpfs run tmpfs
> nosuid,nodev,noexec,mode=0755,size=128m 0 0
>
> then telinit 0 inside the container doesn't work, though /run/initctl is
> present:
>
> ls -l /run/initctl
> prw------- 1 root root 0 Nov 13 15:54 /run/initctl
>
> I tried to remove nodev and noexec mount options, but even with
>
> lxc.mount.entry = tmpfs run tmpfs rw
>
> I get "timeout opening/writing control channel /run/initctl"
>
> it would be nice to know why it doesn't work, but as I only need
> /run/shm to be tmpfs, the problem can be considered resolved.
>
>
> On 11/13/2015 03:29 PM, Alex Mestiashvili wrote:
> > Hi All,
> >
> > Is there a way to properly shutdown Jessie container on a Wheezy host ?
> > lxc version is 0.8.0~rc1-8+deb7u2
> >
> >  lxc-shutdown -n $host  which is basically
> >
> >  chroot /var/lib/lxc/${_CONTAINER}/rootfs telinit 0
> >
> > ends up in:
> >
> > "telinit: timeout opening/writing control channel /run/initctl"
> >
> > with no change to the host.
> >
> > Of course I can ssh/console to the container, run shutdown and then use
> > lxc-stop to kill it, but may be there is a workaround for a direct
> > shutdown ?
> >
> > Thank you!
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> >
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151113/8cab2686/attachment.html>


More information about the lxc-users mailing list