openwrt / openwrt/packages

<cgroupfs-mount> systemd mount missing, lxc container will not start

Open
#22,586 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Environment: (amd64)

Description:
cgroupfs-mount scripts seems not updated anymore
is it possible to include the patch to mount systemd?
lxc can not run latest debian and ubuntu images

https://github.com/tianon/cgroupfs-mount/pull/16/commits/794b82755846de2ec94f20bea79772378809d8f8
cgroupfs-mount

root@OpenWrt:~# lxc-start debian_buster -F
Failed to mount cgroup at /sys/fs/cgroup/systemd: Operation not permitted
[!!!!!!] Failed to mount API filesystems.
Exiting PID 1...

temporary fix:

mkdir -p /sys/fs/cgroup/systemd
mount -t cgroup -o none,name=systemd systemd /sys/fs/cgroup/systemd

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in utils/cgroupfs-mount and compare the package with the linked upstream cgroupfs-mount commit. Reproduce the failure with lxc-start on a Debian or Ubuntu image, then verify that the systemd cgroup mounts and the container starts without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.