Re: [libvirt] [PATCH 2/2] LXC: rework mounting cgroupfs in container

2013-04-08 Thread Gao feng
On 2013/04/05 19:29, Daniel P. Berrange wrote: On Fri, Apr 05, 2013 at 10:16:43AM +0800, Gao feng wrote: On 2013/03/27 13:26, Gao feng wrote: On 2013/03/20 16:14, Gao feng wrote: There are 3 reason we need to rework the cgroupfs mounting in container. 1, Yin Olivia reported a failed to

Re: [libvirt] [PATCH 2/2] LXC: rework mounting cgroupfs in container

2013-04-07 Thread Yin Olivia-R63875
Hi Feng, I need run the below steps with libvirt-1.0.3. $ mkdir /cgroup $ mount -t tmpfs cgroup /cgroup $ mkdir /cgroup/{freezer,devices,memory,cpuacct,cpuset} $ mount -t cgroup -ofreezer cgroup /cgroup/freezer $ mount -t cgroup -odevices cgroup /cgroup/devices $ mount -t cgroup -omemory cgroup

Re: [libvirt] [PATCH 2/2] LXC: rework mounting cgroupfs in container

2013-04-07 Thread Gao feng
Hi Yin, On 2013/04/08 11:54, Yin Olivia-R63875 wrote: Hi Feng, I need run the below steps with libvirt-1.0.3. $ mkdir /cgroup $ mount -t tmpfs cgroup /cgroup $ mkdir /cgroup/{freezer,devices,memory,cpuacct,cpuset} $ mount -t cgroup -ofreezer cgroup /cgroup/freezer $ mount -t cgroup

Re: [libvirt] [PATCH 2/2] LXC: rework mounting cgroupfs in container

2013-04-05 Thread Daniel P. Berrange
On Fri, Apr 05, 2013 at 10:16:43AM +0800, Gao feng wrote: On 2013/03/27 13:26, Gao feng wrote: On 2013/03/20 16:14, Gao feng wrote: There are 3 reason we need to rework the cgroupfs mounting in container. 1, Yin Olivia reported a failed to mount cgroup problem, now we given that

Re: [libvirt] [PATCH 2/2] LXC: rework mounting cgroupfs in container

2013-04-04 Thread Gao feng
On 2013/03/27 13:26, Gao feng wrote: On 2013/03/20 16:14, Gao feng wrote: There are 3 reason we need to rework the cgroupfs mounting in container. 1, Yin Olivia reported a failed to mount cgroup problem, now we given that the name of cgroup mount point is same with the subsystem type,

Re: [libvirt] [PATCH 2/2] LXC: rework mounting cgroupfs in container

2013-03-26 Thread Gao feng
On 2013/03/20 16:14, Gao feng wrote: There are 3 reason we need to rework the cgroupfs mounting in container. 1, Yin Olivia reported a failed to mount cgroup problem, now we given that the name of cgroup mount point is same with the subsystem type, Or libvirt_lxc will fail to

[libvirt] [PATCH 2/2] LXC: rework mounting cgroupfs in container

2013-03-20 Thread Gao feng
There are 3 reason we need to rework the cgroupfs mounting in container. 1, Yin Olivia reported a failed to mount cgroup problem, now we given that the name of cgroup mount point is same with the subsystem type, Or libvirt_lxc will fail to start. 2, The cgroup configuration is leaked to