[lxc-devel] Erroneous "cgroup is not mounted" when using cgconfig (libcgroup)

Ward, David - 0663 - MITLL david.ward at ll.mit.edu
Sun Oct 3 15:06:10 UTC 2010


The 'cgconfig' tool from libcgroup (http://libcg.sourceforge.net) can be used to mount one or more instances of the cgroup virtual filesystem, instead of using the 'mount' command.  However, cgconfig does not update /etc/mtab, although the mounted cgroup filesystems do appear in /proc/mounts.  (I am using Fedora 13.)

Since lxc commands such as 'lxc-execute' just search /etc/mtab to see if any cgroup filesystem is mounted, this causes them to fail with "cgroup is not mounted", even though this is not the case.

It seems to me that either:
  1) cgconfig should update /etc/mtab, or
  2) lxc should search /proc/mounts instead of /etc/mtab
     (change one line in src/lxc/cgroup.c)

Which is the correct solution?

Thanks,

David



More information about the lxc-devel mailing list