特殊:Badtitle/NS100:LXC:修订间差异
小 以内容'{{From|https://help.ubuntu.com/community/LXC}} {{Languages|UbuntuHelp:LXC}} == Overview == LinuX Containers (LXC) provide lightweight virtualization that lets you isolate p…'创建新页面 |
(没有差异)
|
2010年5月19日 (三) 23:11的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/LXC }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/af | • {{#if: UbuntuHelp:LXC|Afrikaans| [[::LXC/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/ar | • {{#if: UbuntuHelp:LXC|العربية| [[::LXC/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/az | • {{#if: UbuntuHelp:LXC|azərbaycanca| [[::LXC/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/bcc | • {{#if: UbuntuHelp:LXC|جهلسری بلوچی| [[::LXC/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/bg | • {{#if: UbuntuHelp:LXC|български| [[::LXC/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/br | • {{#if: UbuntuHelp:LXC|brezhoneg| [[::LXC/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/ca | • {{#if: UbuntuHelp:LXC|català| [[::LXC/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/cs | • {{#if: UbuntuHelp:LXC|čeština| [[::LXC/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/de | • {{#if: UbuntuHelp:LXC|Deutsch| [[::LXC/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/el | • {{#if: UbuntuHelp:LXC|Ελληνικά| [[::LXC/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/es | • {{#if: UbuntuHelp:LXC|español| [[::LXC/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/fa | • {{#if: UbuntuHelp:LXC|فارسی| [[::LXC/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/fi | • {{#if: UbuntuHelp:LXC|suomi| [[::LXC/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/fr | • {{#if: UbuntuHelp:LXC|français| [[::LXC/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/gu | • {{#if: UbuntuHelp:LXC|ગુજરાતી| [[::LXC/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/he | • {{#if: UbuntuHelp:LXC|עברית| [[::LXC/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/hu | • {{#if: UbuntuHelp:LXC|magyar| [[::LXC/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/id | • {{#if: UbuntuHelp:LXC|Bahasa Indonesia| [[::LXC/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/it | • {{#if: UbuntuHelp:LXC|italiano| [[::LXC/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/ja | • {{#if: UbuntuHelp:LXC|日本語| [[::LXC/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/ko | • {{#if: UbuntuHelp:LXC|한국어| [[::LXC/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/ksh | • {{#if: UbuntuHelp:LXC|Ripoarisch| [[::LXC/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/mr | • {{#if: UbuntuHelp:LXC|मराठी| [[::LXC/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/ms | • {{#if: UbuntuHelp:LXC|Bahasa Melayu| [[::LXC/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/nl | • {{#if: UbuntuHelp:LXC|Nederlands| [[::LXC/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/no | • {{#if: UbuntuHelp:LXC|norsk| [[::LXC/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/oc | • {{#if: UbuntuHelp:LXC|occitan| [[::LXC/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/pl | • {{#if: UbuntuHelp:LXC|polski| [[::LXC/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/pt | • {{#if: UbuntuHelp:LXC|português| [[::LXC/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/ro | • {{#if: UbuntuHelp:LXC|română| [[::LXC/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/ru | • {{#if: UbuntuHelp:LXC|русский| [[::LXC/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/si | • {{#if: UbuntuHelp:LXC|සිංහල| [[::LXC/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/sq | • {{#if: UbuntuHelp:LXC|shqip| [[::LXC/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/sr | • {{#if: UbuntuHelp:LXC|српски / srpski| [[::LXC/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/sv | • {{#if: UbuntuHelp:LXC|svenska| [[::LXC/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/th | • {{#if: UbuntuHelp:LXC|ไทย| [[::LXC/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/tr | • {{#if: UbuntuHelp:LXC|Türkçe| [[::LXC/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/vi | • {{#if: UbuntuHelp:LXC|Tiếng Việt| [[::LXC/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/yue | • {{#if: UbuntuHelp:LXC|粵語| [[::LXC/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/zh | • {{#if: UbuntuHelp:LXC|中文| [[::LXC/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/zh-hans | • {{#if: UbuntuHelp:LXC|中文(简体)| [[::LXC/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:LXC | UbuntuHelp:LXC | {{#if: | :}}LXC}}/zh-hant | • {{#if: UbuntuHelp:LXC|中文(繁體)| [[::LXC/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:LXC|:LXC|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :LXC/zh | | {{#ifexist: LXC/zh | | {{#ifeq: {{#titleparts:LXC|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:LXC|1|-1|}} | zh | | }}
Overview
LinuX Containers (LXC) provide lightweight virtualization that lets you isolate processes and resources without the need to provide instruction interpretation mechanisms and other complexities of full virtualization.
Notes
- Upstream libvirt should support LXC.
- KVM + LXC can function properly on same host.
- 64bit OS using a 32bit container.
User case examples
- Isolate single processes, (I.E. a webserver).
- VPS
- LTSP
- Software build, testing, upgrading (think sandboxing)
External link - How to Ubuntu 10.04 LXC containers
Host configuration
External link - Ubuntu and Fedora Hosts
kernel requirements
The Linux container capabilities are part of the main stream linux kernel and require kernel version >= 2.6.27 (well working as of 2.6.31). There are no requirements to compile a kernel or apply patches.
User space tools (lxc)
The user space tools, or lxc, are a set of scripts that manage linux containers. You may install the lxc user space tools from the Ubuntu repositories.
sudo apt-get install lxc
Or download the latest stable package from sourceforge and compile them yourself. The lxc project maintains a git repository for a bleeding edge set of tools.
Networking
There are several networking options available, the consensus appears to be that bridging your network card is the best option. As such I will cover bridging your network card here, hopefully this information can be expanded.
Container configuration
options/examples for config files chroot/debootstrap/febootstrap lxc-debian / lxc-fedora lxc-console / ssh into containers