CentOS 7.x installing lxc

From Notes_Wiki
Revision as of 05:24, 23 January 2017 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>CentOS_7.x_lxc|CentOS 7.x lxc</yambe:breadcrumb> =CentOS 7.x installing lxc= To install lxc use following steps: # Install lxc package using #:<pre> #::...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>CentOS_7.x_lxc|CentOS 7.x lxc</yambe:breadcrumb>

CentOS 7.x installing lxc

To install lxc use following steps:

  1. Install lxc package using
    yum -y install epel-release
    yum -y install debootstrap perl libvirt libcap-devel libcgroup wget bridge-utils
    yum -y install lxc lxc-templates lxc-extra
  2. Check that system supports lxc
    lxc-checkconfig
    Before booting a new kernel its support for lxc-can be checked using:
    CONFIG=/boot/config-3.10.0-514.2.2.el7.x86_64 /bin/lxc-checkconfig
    where config-3.10.0-514.2.2.el7.x86_64 should be replaced with configuration file for new kernel
  3. Start and enable lxc on boot
    systemctl start lxc.service
    systemctl enable lxc.service
    systemctl status lxc.service
  4. Reboot base host for more stability


Refer:


<yambe:breadcrumb>CentOS_7.x_lxc|CentOS 7.x lxc</yambe:breadcrumb>