* General setup
** Control Group support
---> Namespace cgroup subsystem
---> Freezer cgroup subsystem
---> Cpuset support
----> Simple CPU accounting cgroup subsystem
----> Resource counters
----> Memory resource controllers for Control Groups
** Group CPU scheduler
---> Basis for grouping tasks (Control Groups)
** Namespaces support
---> UTS namespace
---> IPC namespace
---> User namespace
---> Pid namespace
---> Network namespace
* Security options
--> File POSIX Capabilities
* Device Drivers
** Network device support
---> Virtual ethernet pair device
mkdir -p /var/lxc/cgroup
mount -t cgroup cgroup /var/lxc/cgroup
./configure --prefix=/
make
make install
ifconfig eth0 down
brctl addbr br0
brctl setfd br0 0
brctl addif br0 eth0
ifconfig eth0 0.0.0.0 up
ifconfig bdr0 192.168.1.2/24 up
route add default gw 192.168.1.1
/sbin/start_udev
mount -n /dev/pts >/dev/null 2>&1
none /dev/pts devpts rw 0 0
DEVICE=eth0
IPADDR=192.168.1.102
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
NAME=eth0
NETWORKING="yes"
GATEWAY="192.168.1.1"
HOSTNAME="centos_ssh"
chroot /var/lxc/centos/rootfs
passwd
lxc.utsname = centos_ssh
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.ipv4 = 192.168.1.101/24
lxc.network.name = eth0
lxc.mount = /var/lxc/centos/fstab
lxc.rootfs = /var/lxc/centos/rootfs
/dev /var/lxc/centos/rootfs/dev none bind 0 0
/dev/pts /var/lxc/centos/rootfs/dev/pts none bind 0 0
lxc-create -n centos -f /var/lxc/centos/lxc-centos.conf
lxc-info -n centos
'centos' is STOPPED
lxc-start -n centos
INIT: no more processes left in this runlevel
rootfs
|-- bin
|-- dev
| |-- pts
| `-- shm
| `-- network
|-- etc
|-- lib
|-- proc
|-- root
|-- sbin
|-- sys
|-- usr
`-- var
|-- empty
|-- lib
| `-- empty
`-- run
lxc.utsname = simple
lxc.mount = /var/lxc/simple/fstab
lxc.rootfs = /var/lxc/simple/rootfs
/lib /var/lxc/simple/rootfs/lib none ro,bind 0 0
/bin /var/lxc/simple/rootfs/bin none ro,bind 0 0
/usr /var/lxc/simple/rootfs/usr none ro,bind 0 0
/sbin /var/lxc/simple/rootfs/sbin none ro,bind 0 0
lxc-create -n simple -f /var/lxc/simple/lxc-simple.conf
lxc-execute -n centos /bin/ls
lxc-cgroup -n centos cpuset.cpus 0
lxc-cgroup -n centos memory.limit_in_bytes 128M
lxc-stop -n centos
lxc-destroy -n centos
lxc-ps --lxc
centos 7480 ? 00:00:00 init
centos 7719 ? 00:00:00 syslogd
centos 7736 ? 00:00:00 sshd
lxc-info -n centos
'centos' is RUNNING
lxc-freeze -n centos
lxc-unfreeze -n centos
Source: https://habr.com/ru/post/74808/