[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt-users] libvirt with lxc: internal error The 'cpuacct', 'devices' & 'memory' cgroups controllers must be mounted



On 11/07/2012 07:21 AM, unicell wrote:
> Hi,
> 
> I'm running OpenStack to manage LXC instance through libvirt. The same
> setting runs perfectly well on Ubuntu 12.04, while on CentOS 6u3, libvirt
> dumped following message when starting lxc instance.
> 
> virsh -c lxc:/// start instance-00000032
> error: internal error The 'cpuacct', 'devices' & 'memory' cgroups
> controllers must be mounted
> 
> 
> Really appreciated if someone could shed some lights. Seems to some libvirt
> / cgroup settings related.
> 
> $ cat /proc/mounts
> ..
> none /cgroup cgroup
> rw,relatime,net_prio,perf_event,blkio,net_cls,freezer,devices,memory,cpuacct,cpu,ns,cpuset
> 0 0

That leading 'none' in the first field of your mount output looks fishy;
on my systems, I see that field as 'cgroup'.  Perhaps that means you
haven't really mounted cgroups after all, in which case, that explains
why libvirt is complaining that it can't run LXC domains (where cgroups
is a prerequisite).

> $ chkconfig --list | grep cg
> cgconfig        0:off   1:off   2:off   3:off   4:off   5:off   6:off

That also looks fishy; on my RHEL 6.3 system, I see:
cgconfig       	0:off	1:off	2:on	3:on	4:on	5:on	6:off

because libvirt enables the cgconfig service as a prerequisite.  Since
CentOS derives from RHEL, it makes me wonder what you have done to get
your system configured differently.

> Log message with LIBVIRT_DEBUG=1 if that is helpful.
> http://pastebin.com/LjZ6Euma

That looks like you traced the client, not the actual libvirtd process
that was actually trying to use cgroups.  But enabling the cgconfig
service then restarting libvirtd may be all the more you need to do.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]