[lxc-users] Autostart lxc containers in a CentOS7 host

Florent Peterschmitt florent at peterschmitt.fr
Wed Oct 29 16:03:02 UTC 2014


Le 29/10/2014 07:46, C. L. Martinez a écrit :
> Hi all,
> 
>  I have installed some lxc containers under a CentOS7 host (5 CentOS
> based and 3 Ubuntu). All works ok, but I need to start automatically
> some of these containers when host reboots or it is restarted.
> 
>  Are these the correct steps?
> 
> a) Enable lxc service: systemctl enable lxc.service
> 
> b) Reconfigure lxc container config file with the following options:
> 
> # Autostart
> lxc.start.auto = 1
> lxc.start.delay = 5
> 
> lxc.start.order = 100
> 
> Am I right??

Yes.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20141029/a5828514/attachment.sig>


More information about the lxc-users mailing list