This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 842979 - [Regression] lxc domain fail to start due to not exist cgroup dir
[Regression] lxc domain fail to start due to not exist cgroup dir
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt (Show other bugs)
x86_64 Linux
high Severity high
: rc
: ---
Assigned To: Daniel Berrange
Virtualization Bugs
: Regression
Depends On:
Blocks: 805361
  Show dependency treegraph
Reported: 2012-07-25 04:15 EDT by Wayne Sun
Modified: 2013-02-21 02:19 EST (History)
9 users (show)

See Also:
Fixed In Version: libvirt-0.10-1.2.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-02-21 02:19:48 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:

Attachments (Terms of Use)

  None (edit)
Description Wayne Sun 2012-07-25 04:15:46 EDT
Description of problem:
Fail to start LXC guest, the /sys/fs/cgroup directory is not exist in rhel6 kernel yet. 

Version-Release number of selected component (if applicable):
# rpm -q libvirt kernel

How reproducible:

Steps to Reproduce:
1. Define a LXC guest
# cat toy.xml
<domain type='lxc'>
    <type arch='x86_64'>exe</type>
  <clock offset='utc'/>
    <interface type='network'>
      <source network='default'/>
    <console type='pty'>
      <target port='0'/>

# virsh -c lxc:/// define toy.xml
Domain toy defined from toy.xml

2. Start the LXC guest
virsh # start toy
error: Failed to start domain toy
error: internal error guest failed to start: PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=d1f4798b-bebf-d93c-1d97-fe1c1cb7c780 LIBVIRT_LXC_UUID=d1f4798b-bebf-d93c-1d97-fe1c1cb7c780 LIBVIRT_LXC_NAME=toy /bin/sh
2012-07-25 07:26:47.994+0000: 1: info : libvirt version: 0.9.13, package: 3.el6 (Red Hat, Inc.<>, 2012-07-20-03:24:32,
2012-07-25 07:26:47.994+0000: 1: error : lxcContainerIdentifyCGroups:1282 : Unable to read directory /sys/fs/cgroup: No such file or directory
2012-07-25 07:26:47.996+0000: 18089: info : libvirt version: 0.9.13, package: 3.el6 (Red Hat, Inc.<>, 2012-07-20-03:24:32,
2012-07-25 07:26:47.996+0000: 18089: error : virCommandWait:2314 : internal error Child process (ip link set veth1 netns 18090) status unexpected: exit status 2

Actual results:
Fail to start with wrong cgroup dir. 

Expected results:
Start LXC domain successfully. 

Additional info:
This works on libvirt-0.9.10-21.el6.x86_64.
Comment 4 Daniel Veillard 2012-09-14 02:45:02 EDT
libvirt-0.10-1.2.el6 was build specifically to resume QE testing with LXC

Comment 5 yanbing du 2012-09-14 03:22:22 EDT
The cgroup fixed in libvirt-0.10-1.2.el6, but there's an another problem cause LXC domain can't start, and i file a new bug 857341 to track it.
So this bug can be VERIFIED.
Comment 7 min zhan 2012-09-29 06:46:50 EDT
Move to VERIFIED per Comment 5
Comment 8 errata-xmlrpc 2013-02-21 02:19:48 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

Note You need to log in before you can comment on or make changes to this bug.