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

2014-02-16 Thread arnaud gaboury
I can see the overall setup was not so bad. When I start the container this way : gabx@hortensia ➤➤ ~ # systemd-nspawn -bD /dahlia container boots. gabx@hortensia ➤➤ ~ % machinectl -l MACHINE CONTAINER SERVICE dahlia container nspawn 1 machines

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

2014-02-16 Thread arnaud gaboury
A few ideas : how do you boot ? I boot at console login with gabx % startx Did you : systemctl enable systemd-nspawn@machine.service ? I didn't

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

2014-02-16 Thread arnaud gaboury
On Sun, Feb 16, 2014 at 12:20 PM, Tom Kuther wrote: > Am 16.02.2014 11:56, schrieb arnaud gaboury: >>> └» systemd-cgls >> >> > > That would be strange. With your machine-dahlia.slice config and the > partition setting in your domain.xml, I am not quite sur of a good setting of the partition. See m

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

2014-02-16 Thread Tom Kuther
Am 16.02.2014 11:56, schrieb arnaud gaboury: >> └» systemd-cgls > > That's the point : I do not see any machine.slice in the tree :-( > That would be strange. With your machine-dahlia.slice config and the partition setting in your domain.xml, you should have machine.slice -> machine-dahlia.slice

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

2014-02-16 Thread arnaud gaboury
Three more thins I have some doubts about : 1- the guest : shall I mount it at rootfs in /dahlia or /machine/dahlia ? I have tried both. 2- in my dahlia.xml : /machine/dahlia Is that correct for a /dahlia OR /machine/dahlia guest mount point ? I do have any .scope unit file (normal ?) neith

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

2014-02-16 Thread arnaud gaboury
> └» systemd-cgls That's the point : I do not see any machine.slice in the tree :-( gabx@hortensia ➤➤ ~aur/libvirt-git % systemctl status libvirt-guests.service libvirt-guests.service - Suspend Active Libvirt Guests Loaded: loaded (/usr/lib/systemd/system/libvirt-guests.service; enabled) Ac

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

2014-02-16 Thread Tom Kuther
Am 16.02.2014 00:52, schrieb 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 > cp

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

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
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
> > 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
> 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 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 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 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 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 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

[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