mirror of
https://github.com/games-on-whales/LXC2Docker.git
synced 2026-10-15 12:52:04 +00:00
[PR #52] [MERGED] fix(cgroup): give host-namespace containers a private cgroup ns #53
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/LXC2Docker#53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/LXC2Docker/pull/52
Author: @JBailes
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @JBailes
Base:
main← Head:fix/cgroup-namespace-for-host-mode📝 Commits (2)
59fde6afix(cgroup): give host-namespace containers a private cgroup ns00fe473test(cgroup): cover cgroup namespace cloning for host-mode containers📊 Changes
2 files changed (+33 additions, -1 deletions)
View changed files
📝
internal/lxc/config.go(+8 -1)➕
internal/lxc/namespace_cgroup_test.go(+25 -0)📄 Description
Wolf app/compositor sibling containers aborted at cgroup setup (
Force-mounting the unified cgroup hierarchy without cgroup namespace support is currently not supported → Failed to mount /sys/fs/cgroup → ABORTING), so Moonlight got Error 2 / a black screen.When a container shares a host namespace (Wolf shares host IPC for shared memory),
rewriteConfigemits an explicitlxc.namespace.clonelist — which omittedcgroup, leaving the container in the host cgroup namespace. On cgroup v2,lxc.mount.auto = ...cgroup:rwthen force-mounts the unified hierarchy, which LXC rejects without a private cgroup ns. cgroup namespaces are supported on the host (verified), so addcgroupto the clone list. Follows the sibling-mount translation fix (#51) — this is the next abort in the chain.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.