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

kata-agent: enabling cgroups-v2 by systemd.unified_cgroup_hierarchy #9383

Merged
merged 1 commit into from Apr 2, 2024

Conversation

Apokleos
Copy link
Contributor

Configure the system to mount cgroups-v2 by default during system boot by the systemd system, We must add the systemd.unified_cgroup_hierarchy=1 parameter to kernel cmdline, which will be passed by kernel_params in configuration.toml. To enable cgroup-v2, just add systemd.unified_cgroup_hierarchy=true[1] to kernel_params.

Fixes: #9336

Copy link
Member

@justxuewei justxuewei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks!

Copy link
Member

@Tim-Zhang Tim-Zhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Configure the system to mount cgroups-v2 by default during system boot
by the systemd system, We must add systemd.unified_cgroup_hierarchy=1
parameter to kernel cmdline, which will be passed by kernel_params in
configuration.toml.
To enable cgroup-v2, just add systemd.unified_cgroup_hierarchy=true[1]
to kernel_params.

Fixes: kata-containers#9336

Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
@Apokleos
Copy link
Contributor Author

Apokleos commented Apr 1, 2024

/test

@Apokleos Apokleos merged commit fa8049a into kata-containers:main Apr 2, 2024
296 of 302 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/small Small and simple task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It fails to run a kata containers on host with cgroup v2.
4 participants