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

C. L. Martinez carlopmart at gmail.com
Wed Oct 29 06:46:39 UTC 2014


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??


More information about the lxc-users mailing list