The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.
To install and configure the software that is required to run Linux Containers:
Use yum to install the
btrfs-progs
package.[root@host ~]#
yum install btrfs-progs
Install the
lxc
andwget
packages.[root@host ~]#
yum install lxc wget
This command installs all of the required packages, such as
libvirt
,libcgroup
, andlxc-libs
. The LXC template scripts are installed in/usr/share/lxc/templates
. LXC uses wget to download packages from the Oracle Linux Yum Server.Start the Control Groups (cgroups) service,
cgconfig
, and configure the service to start at boot time.[root@host ~]#
service cgconfig start
[root@host ~]#chkconfig cgconfig on
LXC uses the cgroups service to control the system resources that are available to containers.
Start the virtualization management service,
libvirtd
, and configure the service to start at boot time.[root@host ~]#
service libvirtd start
[root@host ~]#chkconfig libvirtd on
LXC uses the virtualization management service to support network bridging for containers.
If you are going to compile applications that require the LXC header files and libraries, install the
lxc-devel
package.[root@host ~]#
yum install lxc-devel