Container support is not provided in stock distributions. You'll need to install it separately. The level of support across distributions is inconsistent. The lxc container system was developed by Canonical, so Ubuntu distributions have complete container support. Debian 9 (Stretch) is better than Debian 8 (Jessie) in this regard.
Fedora has limited support for lxc containers. It is easy to create privileged containers and a bridged Ethernet connection, but as of Fedora 25, the cgmanager service required for unprivileged containers is unavailable.
SuSE supports limited use of lxc. SuSE's libvirt-lxc package is similar but not identical to lxc. SuSE's libvirt-lxc package is not covered in this chapter. A privileged container with no Ethernet is easy to create under SuSE, but it does not support unprivileged containers and bridged Ethernet.
Here's how to install lxc support on major distributions.
For Ubuntu, use the following code:
# apt-get install lxc1
Next we have Debian. Debian distributions may only include the security repositories in /etc/apt/sources.list. If so, you'll need to add deb http://ftp.us.debian.org/debian stretch main contrib to /etc/apt/sources.list and then perform apt-get update before, loading the lxc package:
# apt-get install lxc
For OpenSuSE, use the following code:
# zypper install lxc
RedHat, Fedora:
For Red Hat/Fedora-based systems, add the following Epel repository:
# yum install epel-release
Once you've done this, install the following packages before you install lxc support:
# yum install perl libvirt debootstrap
The libvirt package provides networking support, and debootstrap is required to run Debian-based containers:
# yum install lxc lxc-templates tunctl bridge-utils