简体   繁体   中英

Kernel configurations for lxc

我正在配置Linux内核3.10.31ltsi,并想增加对LXC的支持,据我了解,cgroup和名称空间应可用于LXC,但是menuconfig中需要包括哪些配置?

You should use a script called "lxc-checkconfig" (which is part of LXC) to check whether your kernel supports or not all required settings; see https://linuxcontainers.org/lxc/manpages/man1/lxc-checkconfig.1.html

As a side note, I think that LXC uses by default all namespaces; this means that you should set CONFIG_UTS_NS, CONFIG_IPC_NS, CONFIG_USER_NS, CONFIG_PID_NS, CONFIG_NET_NS, and the mount namesapces (forgot it's config entry). Regarding cgroups - not sure, probably the memory, cpu and I/O cgroups controllers are mandatory, and maybe some more; use the lxc-checkconfig script.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM