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

Fixes for LXC / LXD container support #188

Merged
merged 4 commits into from
Sep 19, 2020
Merged

Conversation

ahktenzero
Copy link

Support LXD installed via snapd, which is the recommended installation method.

Update the regex for matching container cgroups (since LXC 3.1, containers have separate lxc.payload and lxc.monitor cgroups for the container processes and the monitor).

Recognise containers in LXD projects (added in LXD 4.0) and generate the proper command to restart them.

@liske liske self-requested a review July 11, 2020 18:02
@liske liske added this to the v3.6 milestone Jul 11, 2020
perl/lib/NeedRestart/CONT/LXC.pm Outdated Show resolved Hide resolved
James TD Smith added 4 commits August 18, 2020 11:57
This is the recommended way to install LXD and puts the container dirs in
/var/snap/lxd/common/lxd/containers instead of /var/lib/lxd/containers.
LXC containers on newer versions of LXC are under the lxc.payload cgroup, update
the cgroup regex to match this too.
Check if containers are in a project and add the appropriate parameter to the
restart command.
@liske liske merged commit 2711efa into liske:master Sep 19, 2020
@liske
Copy link
Owner

liske commented Sep 19, 2020

Thanks and sorry for the long delay. I somehow missed your update.

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

Successfully merging this pull request may close these issues.

2 participants