New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation request: autostart #529
Comments
I found a workaround, albeit a silly one. If I set This is due to the defaults in the upstart job where the bootgroup variable defines that as the first group to start. I verified before testing it, that In essence it means that I need two settings in order to make the |
Hi, There's more to add to this issue. In previous versions of LXC, "lxc.start.order" had to be high for the container to start before others. Somewhere on the path of evolution, the meaning of this setting was inverted! Now, the lower the number, the higher is the priority. All my containers where starting in the wrong order after upgrade of LXC! I haven't seen any documentation update to mention that :-( |
It was mentioned very prominently in the release announcement for 2.0. |
Hi,
I'm trying to get the autostart feature to work with root-owned userns-containers on Ubuntu. LXC version is 1.0.7 on Trusty (14.04).
Now I have read #161 and initially I was using the method of setting
lxc.start.auto = 1
.When I list the containers with
lxc-ls
the autostart settings are shown as desired.There are two things that I figure may be an issue in my setup. In
/etc/lxc/lxc.conf
I set:where the target path is a btrfs volume with one subvolume per container.
Second thing is that the configuration snippet containing the
lxc.start.auto = 1
is in fact inside a subfolder in/etc/lxc
and gets included in the main configuration (/data/LXC/*/config
) vialxc.include
.Additionally
lxc-autostart -a
starts up all the containers that are configured to autostart in the configured order.So I'm wondering how would I debug this and where can I find documentation on how LXC parses the configuration and by which mechanism the autostart kicks in during system startup.
Thanks,
// Oliver
PS:
lxc-autostart -L
gives no output, which explains why the upstart job doesn't autostart containers.PPS: I also tried adding the
lxc.start.auto = 1
to the container config (not in an include) and reverted to/var/lib/lxc
to no avail.The text was updated successfully, but these errors were encountered: