User Tools

Site Tools


docs:lxc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
docs:lxc [2013-11-19 00:46]
glen [Guest creation]
docs:lxc [2013-11-19 00:47]
glen structuring
Line 1: Line 1:
-/* pragma: section-numbers 2 */+====== LXC Linux Container Tools ======
  
- 
-====== LXC - Linux Container Tools ====== 
 LXC is a tool to create and manage containers. It contains a full featured container with the isolation / virtualization of the pids, the ipc, the utsname, the mount points, /proc, /sys, the network and it takes into account the control groups. It is very light, flexible, and provides a set of tools around the container like the monitoring with asynchronous events notification,​ or the freeze of the container. This package is useful to create Virtual Private Server, or to run isolated applications like bash or sshd.  LXC is a tool to create and manage containers. It contains a full featured container with the isolation / virtualization of the pids, the ipc, the utsname, the mount points, /proc, /sys, the network and it takes into account the control groups. It is very light, flexible, and provides a set of tools around the container like the monitoring with asynchronous events notification,​ or the freeze of the container. This package is useful to create Virtual Private Server, or to run isolated applications like bash or sshd. 
- 
- 
  
 ===== Resources ===== ===== Resources =====
Line 19: Line 15:
   * [[http://​libvirt.org/​drvlxc.html|libvirt LXC driver]]   * [[http://​libvirt.org/​drvlxc.html|libvirt LXC driver]]
   * [[http://​www.freedesktop.org/​wiki/​Software/​systemd/​ContainerInterface/​|Systemd Container Interface]]   * [[http://​www.freedesktop.org/​wiki/​Software/​systemd/​ContainerInterface/​|Systemd Container Interface]]
-===== Contents ===== 
-/* UndefinedMacro:​ TableOfContents(None) */  
  
- +===== Guest creation ​=====
- +
-==== Guest creation ====+
  
 Build the guest container. Build the guest container.
  
-=== Bare minimum, no template ===+==== Bare minimum, no template ​====
  
 <file bash> <file bash>
Line 43: Line 35:
 this just creates ''​$LXC_ROOT/​test''​ directory with ''​config''​ copied from ''/​etc/​lxc/​default.conf''​ inside. this just creates ''​$LXC_ROOT/​test''​ directory with ''​config''​ copied from ''/​etc/​lxc/​default.conf''​ inside.
  
-=== PLD Linux from template ===+==== PLD Linux from template ​====
  
 create guest with default config using pld template: create guest with default config using pld template:
Line 65: Line 57:
  
 !!! WARNING: pld template for LXC is yet to be written !!!  !!! WARNING: pld template for LXC is yet to be written !!! 
-==== Vserver comparision ====+ 
 +===== Vserver comparision ​=====
  
 ^ Vserver ^ LXC ^ Notes ^ ^ Vserver ^ LXC ^ Notes ^
Line 72: Line 65:
 | vserver test stop | lxc-stop -n test | | vserver test stop | lxc-stop -n test |
 | vserver-stat | %%lxc-ls --fancy --running%% | you need ''​python3-lxc''​ installed for this tool | | vserver-stat | %%lxc-ls --fancy --running%% | you need ''​python3-lxc''​ installed for this tool |
 +
 +===== Sample configs =====
  
 ==== config for network ==== ==== config for network ====
docs/lxc.txt · Last modified: 2016-08-21 00:36 by glen