简体   繁体   English

如何在centOS 5(2.6.18内核)上安装LXC(或其他Linux容器)而不修改内核?

[英]How to install LXC (or other linux container) on centOS 5 (2.6.18 kernel) without modify kernel?

[Background] [背景]

I would like to regulate the resource allocation between different processes running on CentOS 5. I am not familiar with related tools. 我想规范在CentOS 5上运行的不同进程之间的资源分配。我不熟悉相关工具。 I have searched for a while and think LXC may be a good choice (Please correct me if I am wrong). 我搜索了一段时间,认为LXC可能是一个不错的选择(如果我错了,请纠正我)。 But the problem is that the kernel version of our CentOS is 2.6.18, which does not have LXC built in. And it is a shared cluster. 但是问题是我们的CentOS的内核版本是2.6.18,它没有内置LXC。它是一个共享集群。 I do have sudo authority but I am not allowed to modify the kernel. 我确实具有sudo权限,但不允许修改内核。 The tutorials I found all require to modify the kernel or recompile it somehow. 我发现所有教程都需要修改内核或以某种方式重新编译。

[Question] [题]

How can I install and use LXC (or other light weight linux virtualization tools) on CentOS 5 (2.6.18 kernel) without modify the kernel? 如何在CentOS 5(2.6.18内核)上安装和使用LXC(或其他轻量级Linux虚拟化工具)而无需修改内核?

Thanks 谢谢

In order to install it without changing the kernel, someone will have had to back-port it to the 2.6.18 EL5 kernel, and compile it as a kernel module. 为了在不更改内核的情况下安装它,必须有人将其反向移植到2.6.18 EL5内核,并将其编译为内核模块。

Assuming you have a recent CentOS EL5 kernel, KVM is a good option as it's a kernel module and doesn't require a kernel change, like xen does. 假设您使用的是最新的CentOS EL5内核,那么KVM是一个不错的选择,因为它是内核模块,不需要像xen一样更改内核。 You just have to have hardware that supports virtualization. 您只需要具有支持虚拟化的硬件即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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