[lxc-users] How to start a container on boot
Guillaume VINCENT
gvincent at oslab.fr
Thu Apr 9 20:21:55 UTC 2015
Thank you Serge for the information
I will look at the code for a patch
Le 09/04/2015 22:18, Serge Hallyn a écrit :
> Quoting Guillaume VINCENT (gvincent at oslab.fr):
>> hi,
>> I'm using lxd and I created a simple container
>> when I restart my server, my container is stopped
>>
>> +------+---------+------+------+
>> | NAME | STATE | IPV4 | IPV6 |
>> +------+---------+------+------+
>> | mail | STOPPED | | |
>> +------+---------+------+------+
>>
>> I created manually config file in container folder (should I ? lxc
>> launch should create empty config file no ?)
>>
>> vim /var/lib/lxd/lxc/mail/config
> Hi,
>
> lxd doesn't actually use that file. The container configuration
> is stored in a database (for fast querying of large # containers).
>
> What you want currently isn't implemented, but it is in the spec
> to be implemented "soon". If it's of interest to you, patches are
> welcome :)
>
> See the 'Startup' section in the file specs/daemon-behavior.md
> (https://github.com/lxc/lxd/blob/master/specs/daemon-behavior.md)
> for more details.
>
>> I put the following in my config file
>>
>> lxc.start.auto = 1
>>
>> LXC_AUTO is set to "true" in /etc/default/lxc
>>
>> lxc-autostart did nothing
>> and when I restart my server, my container is always STOPPED
>>
>> am I missing something ?
>> _______________________________________________
>> 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
More information about the lxc-users
mailing list