Difference between revisions of "CentOS 7.x lxc container hanging issue"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>CentOS_7.x_lxc_troubleshooting|CentOS 7.x lxc troubleshooting</yambe:breadcrumb> =CentOS 7.x lxc container hanging issue= CentOS 7.x lxc containers on top o...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>CentOS_7.x_lxc_troubleshooting|CentOS 7.x lxc troubleshooting</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x virtualization|Virtualization]] > [[CentOS 7.x lxc|Lxc]] > [[CentOS 7.x lxc troubleshooting|Troubleshooting]] > [[CentOS 7.x lxc container hanging issue]]
=CentOS 7.x lxc container hanging issue=


CentOS 7.x lxc containers on top of CentOS 7.x base host hang.  This is perhaps due to wrong config file.  CentOS 7.x is more similar to Fedora than CentOS 6.x.  CentOS config file is suitable for CentOS 6.x.  Hence for CentOS 7.x we need to change config file to fedora after container is created as follows:
CentOS 7.x lxc containers on top of CentOS 7.x base host hang.  This is perhaps due to wrong config file.  CentOS 7.x is more similar to Fedora than CentOS 6.x.  CentOS config file is suitable for CentOS 6.x.  Hence for CentOS 7.x we need to change config file to fedora after container is created as follows:
Line 13: Line 12:


Steps learned from https://vfamilyserver.org/blog/2015/05/centos-7-lxc-container-slow-boot/
Steps learned from https://vfamilyserver.org/blog/2015/05/centos-7-lxc-container-slow-boot/
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x virtualization|Virtualization]] > [[CentOS 7.x lxc|Lxc]] > [[CentOS 7.x lxc troubleshooting|Troubleshooting]] > [[CentOS 7.x lxc container hanging issue]]

Latest revision as of 09:00, 25 August 2022

Home > CentOS > CentOS 7.x > Virtualization > Lxc > Troubleshooting > CentOS 7.x lxc container hanging issue

CentOS 7.x lxc containers on top of CentOS 7.x base host hang. This is perhaps due to wrong config file. CentOS 7.x is more similar to Fedora than CentOS 6.x. CentOS config file is suitable for CentOS 6.x. Hence for CentOS 7.x we need to change config file to fedora after container is created as follows:

  1. Create CentOS 7.x container as usual
  2. After container is created edit its config file '/var/lib/lxc/<container-name>/config' and replace following line
    lxc.include = /usr/share/lxc/config/fedora.common.conf
    Filename centos is changed to fedora for CentOS7 containers
  3. Start the container with new configuration and now it should work fine.

Steps learned from https://vfamilyserver.org/blog/2015/05/centos-7-lxc-container-slow-boot/


Home > CentOS > CentOS 7.x > Virtualization > Lxc > Troubleshooting > CentOS 7.x lxc container hanging issue