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

cgroups don't get mounted inside LXD container #187

Closed
palica opened this issue Nov 24, 2017 · 3 comments
Closed

cgroups don't get mounted inside LXD container #187

palica opened this issue Nov 24, 2017 · 3 comments

Comments

@palica
Copy link

palica commented Nov 24, 2017

Running LXD 2.* on openrc host and starting openrc container doesn't mount any cgroup inside the container.

  driver: lxc
  driver_version: 2.0.9
  kernel: Linux
  kernel_architecture: x86_64
  kernel_version: 4.13.10-1-dl3x0-g7-r1
  server: lxd
  server_pid: 18280
  server_version: "2.20"
  storage: btrfs
  storage_version: 4.10.2
@palica
Copy link
Author

palica commented Nov 25, 2017

LXD/LXC people told me that OpenRC should take care of mounting cgroups inside container.

See:
LXD issue - https://github.com/lxc/lxd/issues/4052
LXD Forum - https://discuss.linuxcontainers.org/t/running-lxd-an-openrc-container-on-a-openrc-system-trouble-with-cgroups/843

@palica
Copy link
Author

palica commented Nov 26, 2017

Solution to this would be something like removing cgroupsfs mount logic from the sysfs initscript and putting it in separate initscript and running it also in lxc containers.

I have made some edits to the sysfs initscript inside container and this is working for me.

Now cgroups get mounted also inside lxc/lxd container.

@palica
Copy link
Author

palica commented Nov 27, 2017

Or implementing a detection if /sys is already mounted and skipping that part of script ...

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

No branches or pull requests

1 participant