[lxc-users] lxc-autostart in Centos 7

Saint Michael venefax at gmail.com
Thu Apr 28 11:17:53 UTC 2016


It works. Many thanks.
I wonder why these services are not on by default.


On Thu, Apr 28, 2016 at 3:09 AM, Fajar A. Nugraha <list at fajar.net> wrote:

> On Thu, Apr 28, 2016 at 11:54 AM, Saint Michael <venefax at gmail.com> wrote:
> > In Ubuntu you boot the box and all the containers marked for auto-start
> > do start. In Centos 7 they do not.
> > I have been using /etc/rc.local but it does create an issue when the
> machine
> > reboots, for Centos hangs there for several minutes.
> > Any idea how to make Centos work as well as Ubuntu for LXC, both 2.0 and
> > earlier versions?
>
> It depends on who provide your packages, or how you build it.
>
> In my C6, self-packaged, I ended up with /etc/rc.d/init.d/lxc, so
> enabling autostart is a matter of "chkconfig lxc-net on" and
> "chkconfig lxc on"
>
> For C7, you could probably try "systemctl status lxc" and "systemctl
> status lxc-net". If it says disabled, enable it.
>
> --
> Fajar
> _______________________________________________
> 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/20160428/c08f233c/attachment.html>


More information about the lxc-users mailing list