linux - LXC - Cgroup 内存 Controller : missing

标签 linux kernel debian lxc

我正在尝试在我的 Debian 6 上安装 LXC (0.7.4.1),但是当我运行 lxc-checkconfig 时,我得到“Cgroup 内存 Controller :丢失”

root@lxcsrv01:~# lxc-checkconfig
Kernel config /proc/config.gz not found, looking in other places...
Found kernel config file /boot/config-2.6.32-5-686
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled

--- Control groups ---
Cgroup: enabled
Cgroup namespace: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: missing
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: enabled
enabled

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig

根据谷歌搜索,我需要重新编译我的内核,但我不知道如何。 有人可以向我解释如何执行此操作吗?

最好的问候

最佳答案

Debian 6 的内核没有内存 cgroup 功能。 但是,您可以在没有它的情况下运行 lxc。

如果你需要内存cgroup,安装新内核很容易 来自 backports .

  1. 添加apt-line of backports
  2. 运行“apt-get install linux-image-3.2.0-0.bpo.4-amd64”(或 -686 用于 i386)
  3. 将内核引导选项“cgroup_enable=memory”添加到您的引导加载程序设置 (例如/etc/default/grub)以启用它。
  4. 重启

或者,如果你想重新编译内核,你可以使用Debian的kernel-package系统; http://newbiedoc.sourceforge.net/system/kernel-pkg.html

关于linux - LXC - Cgroup 内存 Controller : missing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15604055/

相关文章:

windows - 无论如何调试一个安全启动的Windows内核?

linux - 是否有 Linux 系统调用可以让我在另一个进程的上下文中进行系统调用?

linux - Linux 内核中类似 mprotect() 的功能

docker - apt-get update 失败,但退出状态仍然成功,这破坏了我的 docker 缓存

c++ - 无法链接到 FFmpeg 库

linux - 如何在 Linux 上清除磁盘 I/O 缓存?

linux - 为我的 Plesk 域之一启用 PHP 5.4 (fastcgi) 会导致 500 错误

php 上传文件错误#8(当它是 Linux 可执行文件时)

linux - 使用 awk 和 sed 从 STDIN 重新格式化并执行

linux - 使用 Ansible provisioner 重启 Vagrant 机器时同步文件夹丢失