-
Notifications
You must be signed in to change notification settings - Fork 15
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
cgroupfs problem #11
Comments
also not sure if this is relevant, but my root FS is btrfs |
lilipod does not use or is related to systemd. Must be something else 🤔 |
In that case I have no idea what is wrong, it was just a guess I made. If there is anything I can do to help say so. The thing I was trying to do is not critical to anything so if it's just me having this issue then don't worry about prioritizing any effort, its OK if this stays unsolved. I just wanted to report the issue :) Thank you for your time. |
Can you share the steps to reproduce? I can setup an environment asap. Can also be related to missing cgroups support https://github.com/89luca89/lilipod?tab=readme-ov-file#to-do |
for me, the |
I'm coming back to this subject with a few points. nb :
this folder that can't be created was manually pre-created before the
in the hope that this information will help move the problem forward. regards, lacsaP. |
If this is a systemd-based system then you don't modify folder permissions but instead let systemd manage and provide elevated privileges. It's probably out of the scope of lilipod to do this for you given it's meant to be a bare-bones container manager but some documentation in the README for setting up systemd services would be great. |
Wanted to share my setup this morning in case it solves your or anyone else's issue. I'm using Nixos to generate a systemd user slice. module.nix # These kernel params not absolutely necessary as v2 should be available on any reasonably up-to-date system
boot.kernelParams = [
"cgroup_no_v1=all"
"systemd.unified_cgroup_hierarchy=1"
];
systemd.user.slices.lilipod = {
name = "lilipod.slice";
aliases = [ "llp.slice" ];
description = "Run lilipod containers in a controlled process";
documentation = [ "man:systemdSlice(5)" ];
sliceConfig = {
CPUQuota = "50%";
DefaultMemoryAccounting = "yes";
MemoryMax = "50%";
};
after = [ "multi-user.target" ];
wantedBy = [ "multi-user.target" ];
}; That will generate this systemd unit file, or you can write the file to
Adjust the resource limits to suit your needs, restart systemd (or reboot). Now you can launch a rootless container without super user privileges:
|
this is just a wild guess, but I'm trying this on Artix linux, the distro like void or alpine has no systemD. The reason I think the problem is related to lilipod is because I remember seeing issues related to cgroupfs with other container systems involving systemD.
I might be 100% wrong and the issue could be something else, I am not a person who knows a lot about containers. If this issue is related to distrobox, then please let me know, so I can go and open the issue there instead (and sorry if that's the case).
The text was updated successfully, but these errors were encountered: