docs:lxc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| docs:lxc [2014-07-02 11:06] – matkor | docs:lxc [2016-08-21 00:36] (current) – [LXC - Linux Container Tools] glen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== 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, | + | [[https:// |
| + | |||
| + | LXC is pretty low level, very flexible and covers just about every containment feature supported by the upstream kernel. For a completely fresh and intuitive user experience with a single command line tool to manage your containers see [[LXD]]. | ||
| **Resources** | **Resources** | ||
| - | * [[http:// | ||
| * [[https:// | * [[https:// | ||
| * [[http:// | * [[http:// | ||
| Line 21: | Line 22: | ||
| * [[package> | * [[package> | ||
| * cgroups mounted, use [[package> | * cgroups mounted, use [[package> | ||
| + | |||
| + | <note warning> | ||
| + | |||
| + | * [[http:// | ||
| + | * http:// | ||
| + | </ | ||
| ===== Guest creation ===== | ===== Guest creation ===== | ||
| Line 65: | Line 72: | ||
| ===== Common problems / Useful tricks ===== | ===== Common problems / Useful tricks ===== | ||
| + | |||
| + | ==== lxc-start has no output ==== | ||
| + | |||
| + | In case '' | ||
| ==== lxc-stop is not graceful ==== | ==== lxc-stop is not graceful ==== | ||
| Line 126: | Line 137: | ||
| ==== general ==== | ==== general ==== | ||
| - | static networking, set '' | + | static networking, set '' |
| ==== network using macvlan in bridge mode ==== | ==== network using macvlan in bridge mode ==== | ||
| Line 133: | Line 144: | ||
| - you can't filter guest straffic | - you can't filter guest straffic | ||
| - host can use seme default interface with and without guests running. | - host can use seme default interface with and without guests running. | ||
| - | - you HAVE to set mac. If not - on every container start you'll have different | + | - one have better |
| - | - iptables is initialized from lxc.hook.pre-mount hook (ran in the container' | + | - iptables is initialized from lxc.hook.pre-mount hook (ran in the container' |
| first boot with '' | first boot with '' | ||
| Line 161: | Line 172: | ||
| ==== network using bridged veth interfaces | ==== network using bridged veth interfaces | ||
| + | ==== More raeding about network ==== | ||
| + | |||
| + | [[http:// | ||
| ===== Sample configs ===== | ===== Sample configs ===== | ||
| ==== full config ==== | ==== full config ==== | ||
docs/lxc.1404291999.txt.gz · Last modified: 2014-07-02 11:06 (external edit)