On 2013/03/05 17:48, Hu Tao 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? > YES Libvirt can successfully create cgroup for lxc doamin, the problem is we trying to mount cgroup in container and in special case we failed. > And, in the case can libvirt lxc give a user-friendly message to user > about what user can do? > Yes, maybe this is the best solution. -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list