Subject: Re: [vserver] cgroups soon incompatible with Libvirt
From: Sergiusz Pawlowicz <sergiusz@pawlowicz.name>
Date: Thu, 26 Dec 2013 04:56:38 +0000

On Wed, Dec 25, 2013 at 8:46 AM, Ben Green <ben@bristolwireless.net> wrote:
> Quoting Sergiusz Pawlowicz <sergiusz@pawlowicz.name>:
>
>
>>
>> I am not sure how to fix it and enable the structure suggested by Daniel.
>
>
> In order that util-vserver has matching settings I'd do this:
>
> service util-vserver stop
> mount -t tmpfs cgroup_root /sys/fs/cgroup
> touch /etc/vservers/.defaults/cgroup/per-ss
> echo "/sys/fs/cgroup" >  /etc/vservers/.defaults/cgroup/mnt
> service util-vserver start
>
> The tmpfs mount ensures that util-vserver can create the necessary
> directories.
>
> No idea how you'd get this to work on boot with whatever other process you
> have mounting the cgroup hierachy.

Hi Ben,
cgroups work well after your help :-) But mount -t tmpfs cgroup_root
/sys/fs/cgroup was not required, as ubuntu sets it automatically
during the startup, using some magic and then
/usr/sbin/create_default_cgroups

Thanks a lot!
Serge