[arch-general] libvirt / lxc : no valid cgroup for machine
Tom Kuther
tom at kuther.net
Sun Feb 16 06:20:16 EST 2014
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 -> machine-lxc...scope
What does "machinectl -l" spit out?
└» machinectl -l
MACHINE CONTAINER SERVICE
lxc-arch-web1 container libvirt-lxc
└» machinectl status lxc-arch-web1
lxc-arch-web1(xxx)
Since: Sa 2014-02-15 22:09:04 CET; 14h ago
Leader: 28398
Service: libvirt-lxc; class container
Unit: machine-lxc\x2darch\x2dweb1.scope
├─ [... the cgroup tree again ..]
> gabx at hortensia ➤➤ ~aur/libvirt-git % ls -al /sys/fs/cgroup
> total 0
> drwxr-xr-x 10 root root 240 Feb 15 23:39 ./
> drwxr-xr-x 7 root root 0 Feb 15 23:39 ../
> drwxr-xr-x 3 root root 0 Feb 15 23:39 blkio/
> drwxr-xr-x 3 root root 0 Feb 15 23:39 cpu,cpuacct/
> drwxr-xr-x 3 root root 0 Feb 15 23:39 cpuset/
> drwxr-xr-x 3 root root 0 Feb 15 23:39 devices/
> drwxr-xr-x 3 root root 0 Feb 15 23:39 freezer/
> drwxr-xr-x 3 root root 0 Feb 15 23:39 memory/
> drwxr-xr-x 3 root root 0 Feb 15 23:39 net_cls/
> drwxr-xr-x 4 root root 0 Feb 15 23:39 systemd/
> lrwxrwxrwx 1 root root 11 Feb 15 23:39 cpu -> cpu,cpuacct/
> lrwxrwxrwx 1 root root 11 Feb 15 23:39 cpuacct -> cpu,cpuacct/
>
> Do you have anything more inside this dir ? I can not find machine.slice
> I think I must have a closer look at my systemd setup. Can you tell em yours ?
As said, it's all in the systemd/ subdir there.
└» ls -l /sys/fs/cgroup/systemd/
insgesamt 0
-rw-r--r-- 1 root root 0 15. Feb 18:12 cgroup.clone_children
--w--w--w- 1 root root 0 15. Feb 18:12 cgroup.event_control
-rw-r--r-- 1 root root 0 15. Feb 18:12 cgroup.procs
-r--r--r-- 1 root root 0 15. Feb 18:12 cgroup.sane_behavior
drwxr-xr-x 3 root root 0 15. Feb 22:09 machine.slice
-rw-r--r-- 1 root root 0 15. Feb 18:12 notify_on_release
-rw-r--r-- 1 root root 0 15. Feb 18:12 release_agent
drwxr-xr-x 98 root root 0 15. Feb 18:27 system.slice
-rw-r--r-- 1 root root 0 15. Feb 18:12 tasks
drwxr-xr-x 3 root root 0 15. Feb 18:12 user.slice
~tom
More information about the arch-general
mailing list