macaroni-os / macaroni-os/mark-issues

[core-kit] [kernel] We need to turn on `MEMCG_V1` support in `sys-kernel/debian-sources` for our old `qemu`

Open
#212 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Our aged QEMU expects `CONFIG_MEMCG_V1=y`, but the `debian-sources` kernel config does not turn it on. The issue can be fixed by enabling that option in the ebuild, using the function that exists for that purpose. The symptom is that `libvirt` VMs don't start, because the expected `memgroup-v1` facility doesn't exist, so there isn't a dir for it where there should be.

Now that things are working again, the exact error message is lost (it doesn't get logged), but it's something like "No such file or directory" for a path like `/sys/fs/cgroup/memory/machine/qemu-8-v0.libvirt-qemu/memory.use_hierarchy`.

(It seems `CONFIG_MEMCG_V1` is a new kconfig option in `linux-6.11`)

Contributor guide

No contributing guide indexed for this repository

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 the sys-kernel/debian-sources ebuild and locate the existing function used to enable kernel configuration options. Enable CONFIG_MEMCG_V1=y there, then verify that the generated kernel configuration includes it and that the memgroup-v1 facility is available for libvirt QEMU VMs.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.