Wednesday, April 3, 2019

Oracle Linux 6 -- Install and Configure Linux Containers

Problem

You want to install Linux Containers software on you Oracle Linux 6 box

Solution

Prepare your yum. If you are using a proxy, specify the proxy setting in /etc/yum.conf:

proxy=http://<host>:<port>
proxy_username=<username>
proxy_password=<password>

Configure repositories:

# cd /etc/yum.repos.d/
# wget https://yum.oracle.com/public-yum-ol6.repo

Once yum and repositories has been configured, install required packages:

# yum install btrfs-progs# yum install lxc

This command should also install required packages libvirt, libcgroup and lxc-libs.

Once all required packages installed, enable services:

# service cgconfig start
# chkconfig cgconfig on

# service libvirtd start
# chkconfig libvirtd on

No comments: