[libvirt] failed to mount cgroup

unicell unicell at gmail.com
Thu Mar 7 13:18:30 UTC 2013


On Tue, Mar 5, 2013 at 5:48 PM, Hu Tao <hutao at cn.fujitsu.com> wrote:

> On Tue, Mar 05, 2013 at 05:29:02PM +0800, Gao feng wrote:
> > On 2013/03/05 14:43, Yin Olivia-R63875 wrote:
> > > Hi,
> > >
> > > I tried to run libvirt-1.0.2 with LXC as below, but it failed to mount
> cgroup.
> > >
> >
> > You should change your cgroup configuration as below
> > cgroup on /sys/fs/cgroup/cpuset type cgroup
> (rw,nosuid,nodev,noexec,relatime,cpuset)
> > cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup
> (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
> > cgroup on /sys/fs/cgroup/memory type cgroup
> (rw,nosuid,nodev,noexec,relatime,memory)
> > cgroup on /sys/fs/cgroup/devices type cgroup
> (rw,nosuid,nodev,noexec,relatime,devices)
> > cgroup on /sys/fs/cgroup/freezer type cgroup
> (rw,nosuid,nodev,noexec,relatime,freezer)
> > cgroup on /sys/fs/cgroup/net_cls type cgroup
> (rw,nosuid,nodev,noexec,relatime,net_cls)
> > cgroup on /sys/fs/cgroup/blkio type cgroup
> (rw,nosuid,nodev,noexec,relatime,blkio)
> > cgroup on /sys/fs/cgroup/perf_event type cgroup
> (rw,nosuid,nodev,noexec,relatime,perf_event)
> >
> > Libvirt lxc doesn't support configure cgroup as you did below now.
>
> Why? IIRC old systems mount cgroup at /cgroup by default. This means
> libvirt lxc has backward compatibility on supporting cgroup?


I think it is due to the upstream kernel change, which is merged in 2.6.36
version.

Discussion thread here for your reference.
http://thread.gmane.org/gmane.linux.kernel/1013171

--
Qiu Yu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130307/adae6cf3/attachment-0001.htm>


More information about the libvir-list mailing list