Skip to content
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

debian template creates non-working jessie containers #335

Closed
ghost opened this issue Sep 29, 2014 · 9 comments
Closed

debian template creates non-working jessie containers #335

ghost opened this issue Sep 29, 2014 · 9 comments

Comments

@ghost
Copy link

ghost commented Sep 29, 2014

jessie has systemd by default. the default jessie containers created with the debian template don't work with systemd. you need at least to set lxc.autodev=1 and lxc.kmsg=0 in the config.

@danielkza
Copy link
Contributor

I can confirm I'm running into issues as well, seems to be just a matter of creating per-release overrides for jessie and sid with the correct configurations.

@tpo
Copy link
Contributor

tpo commented Nov 23, 2014

If you add lxc.autodev=1 and lxc.kmsg=0 to the config as you mentioned above, then will the user be able to switch between systemd and non-systemd inits or not?

@tpo
Copy link
Contributor

tpo commented Nov 23, 2014

See also the proposed patch to the template https://lists.linuxcontainers.org/pipermail/lxc-devel/2014-November/010893.html and discussion, and related Debian bugs: https://bugs.debian.org/766233, https://bugs.debian.org/761197 and ttps://bugs.debian.org/766216

@stgraber
Copy link
Member

This should have been resolved recently with a change to lxc-debian.

There's still more ongoing work to get systemd to work properly in lxc though (especially unprivileged containers).

@tpo
Copy link
Contributor

tpo commented Nov 25, 2014

I think @stgraber is referring to commit a9bf60b

@stgraber
Copy link
Member

Correct

@CameronNemo
Copy link
Contributor

@stgraber are there any negatives to having lxc.autodev = 1 if the init is not systemd?

@stgraber
Copy link
Member

stgraber commented Dec 1, 2014

The most obvious problem at the moment is that lxc.autodev doesn't work with unprivileged containers. But once we've got the autodev rework done (as is currently being discussed on the mailing-list), there shouldn't be any reason not to make it a default.

The main reason someone would want it off then is if they need a specific configuration for /dev which needs to be persistent across reboots.

@CameronNemo
Copy link
Contributor

Oh, I see. I am trying to adjust the previously mentioned commit to make it easier to reconfigure for systemd in the guest when the guest originally had another init system, and when/if you make autodev the default it will be pretty much down to "comment out this line in getty@.service, add lxc.kmsg = 0 to your lxc config".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants