加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – LXC – Cgroup内存控制器:丢失

发布时间:2020-12-13 19:55:57 所属栏目:Linux 来源:网络整理
导读:我正在尝试在我的Debian 6上安装LXC(0.7.4.1),但是当我运行lxc-checkconfig时,我得到“Cgroup内存控制器:丢失” root@lxcsrv01:~# lxc-checkconfigKernel config /proc/config.gz not found,looking in other places...Found kernel config file /boot/conf
我正在尝试在我的Debian 6上安装LXC(0.7.4.1),但是当我运行lxc-checkconfig时,我得到“Cgroup内存控制器:丢失”
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.

>添加后退的apt-line
>运行“apt-get install linux-image-3.2.0-0.bpo.4-amd64”(或i866为-686)
>将内核引导选项“cgroup_enable = memory”添加到引导加载程序设置
(例如/ etc / default / grub)启用它.
>重启

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读