Replies: 2 comments 2 replies
-
The only way I know how to do this without the reboot is to include the modified It may be possible to make it configurable via cloud-init, but that will also require additional work (we use |
Beta Was this translation helpful? Give feedback.
-
@jandubois I understand the situation. I've tried to read through the Lima code as much as possible and noticed that the code utilizing
Thank you. I have attempted a build before, so it seems doable. I will give it a try. |
Beta Was this translation helpful? Give feedback.
-
Hello, thank you always for the fantastic development.
I am setting up a rootless podman environment using the alpine image. To check stats information through
podman stats
, it's necessary to utilize cgroup v2. However, the default mode for alpine is hybrid, and thus it cannot be utilized as is.I have figured out that in alpine using OpenRC, by writing
rc_cgroup_mode=unified
in/etc/conf.d/cgroups
, we can utilize cgroup v2. However, to apply the cgroup mode to the machine, a reboot is necessary.Currently, it seems that when utilizing alpine with lima, on the initial boot
rc_cgroup_mode=hybrid
mode is enforced. This is because the cgroup service is started in10-alpine-prep.sh
, and also, it seems that operations such as updating/etc/*
before this boot process are not permitted.Although there is no issue if the machine is rebooted now, is there no way to apply cgroup v2 mode from the initial boot? If not, would it be reasonable to request this feature?
I tried setting a file with
provision.[n].mode: "boot"
in the lima template, but as far as I understand, this is supported only in cloud-init. Is it not possible to use such a mode in alpine too?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions