[arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread arnaud gaboury
Dear list, I am bulding a VM using libvirt and lxc for linux container. I have an issue with my cgroups settings: gabx@hortensia ➤➤ ~ # virsh start dahlia error: Failed to start domain dahlia error: internal error: No valid cgroup for machine dahlia My environement: Host : Arch Linux - systemd

Re: [arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread Tom Kuther
Am 15.02.2014 14:37, schrieb arnaud gaboury: > Dear list, > > I am bulding a VM using libvirt and lxc for linux container. I have an > issue with my cgroups settings: > > gabx@hortensia ➤➤ ~ # virsh start dahlia > error: Failed to start domain dahlia > error: internal error: No valid cgroup for m

Re: [arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread arnaud gaboury
On Sat, Feb 15, 2014 at 5:41 PM, Tom Kuther wrote: > Am 15.02.2014 14:37, schrieb arnaud gaboury: >> Dear list, >> >> I am bulding a VM using libvirt and lxc for linux container. I have an >> issue with my cgroups settings: >> >> gabx@hortensia ➤➤ ~ # virsh start dahlia >> error: Failed to start d

Re: [arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread arnaud gaboury
> Thank you Tom for your long and precise help. I think I will give up > libvirt and go to LXC. Btw, the container does not need so much > settings offer by libvirt management. > For your info, /etc/cgconfig is needed and read by systemd > cgconfig.service. But there is no need in fact to enable th

Re: [arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread Tom Kuther
Am 15.02.2014 18:03, schrieb arnaud gaboury: > Thank you Tom for your long and precise help. I think I will give up > libvirt and go to LXC. Btw, the container does not need so much > settings offer by libvirt management. > For your info, /etc/cgconfig is needed and read by systemd > cgconfig.servi

Re: [arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread Leonid Isaev
On Sat, 15 Feb 2014 21:04:43 +0100 arnaud gaboury wrote: > > Thank you Tom for your long and precise help. I think I will give up > > libvirt and go to LXC. Btw, the container does not need so much > > settings offer by libvirt management. > > For your info, /etc/cgconfig is needed and read by sy

Re: [arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread arnaud gaboury
> What LXC version do you use? lxc-git 1.0.0.rc2.1.g5112cd7-1

Re: [arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread arnaud gaboury
> > Are you planning to use LXC with lxc.id_map (so, user namespace)? > That completely failed here. If you succeed, please let us know how. I would like to use user namespace facility. Until now, I didn't try to set up lxc.id_map -- google.com/+arnaudgabourygabx

Re: [arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread arnaud gaboury
I guess my lxc container is borken: root@hortensia ➤➤ /etc/netctl # CONFIG=/var/lib/lxc/dahlia/config /usr/sbin/lxc-checkconfig --- Namespaces --- Namespaces: required Utsname namespace: missing Ipc namespace: required Pid namespace: required User namespace: missing Network namespace: missing Mul

Re: [arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread arnaud gaboury
> I see cgconfig.service comes from libcgroup. Never heard of it before, > so not sure how it fits in the systemd picture. > > ~Tom with cgconfig.service anble or disable, it doesn't change anything: I still get this error: gabx@hortensia ➤➤ ~ # lxc-start -n dahlia -d lxc-start: command get_cgr

Re: [arch-general] libvirt / lxc : no valid cgroup for machine

2014-02-15 Thread arnaud gaboury
> > - Systemd creates all necessary cgroups How can I be sure systemd created them ? Are the command line & results below OK ? gabx@hortensia ➤➤ ~aur/libvirt-git # cat /proc/cgroups #subsys_namehierarchynum_cgroupsenabled cpuset321 cpu421 cpuacct421