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

C. L. Martinez carlopmart at gmail.com
Thu Oct 30 11:07:08 UTC 2014


On Wed, Oct 29, 2014 at 4:03 PM, Florent Peterschmitt
<florent at peterschmitt.fr> wrote:
> 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.

Thanks Florent.


More information about the lxc-users mailing list