sailfish-containers / lxc-templates-desktop

LXC templates adapted to SailfishOS
GNU Lesser General Public License v2.1
9 stars 2 forks source link

Problem #6

Open Htylol opened 4 years ago

Htylol commented 4 years ago

lxc-start mycontainer 20200902042916.209 ERROR lxc_cgfsng - cgroups/cgfsng.c:cg_hybrid_get_controllers:738 - Found hierarchy not under /sys/fs/cgroup: "/dev/cg2_bpf rw,nosuid,nodev,noexec,relatime shared:24 - cgroup2 cg2_bpf rw " lxc-start mycontainer 20200902042916.210 ERROR lxc_cgfsng - cgroups/cgfsng.c:cg_hybrid_init:2376 - Failed parsing mountpoint from "46 25 0:34 / /dev/cg2_bpf rw,nosuid,nodev,noexec,relatime shared:24 - cgroup2 cg2_bpf rw " lxc-start mycontainer 20200902042916.217 ERROR lxc_cgfsng - cgroups/cgfsng.c:create_path_for_hierarchy:1257 - Failed to create cgroup "/sys/fs/cgroup/schedtune//lxc/mycontainer"

.... lxc_cgfsng - cgroups/cgfsng.c:create_path_for_hierarchy:1257 - Failed to create cgroup "/sys/fs/cgroup/schedtune//lxc/mycontainer-999" lxc-start mycontainer 20200902042917.682 ERROR lxc_cgfsng - cgroups/cgfsng.c:cgfsng_create:1334 - Failed to create cgroup "/sys/fs/cgroup/schedtune//lxc/mycontainer-999" lxc-start mycontainer 20200902042917.682 ERROR lxc_cgfsng - cgroups/cgfsng.c:cgfsng_create:1312 - Too many conflicting cgroup names lxc-start mycontainer 20200902042917.682 ERROR lxc_start - start.c:lxc_spawn:1587 - Failed creating cgroups lxc-start mycontainer 20200902042917.682 ERROR lxc_start - start.c:__lxc_start:1887 - Failed to spawn container "mycontainer"

How fix this? 1 2

r3vn commented 4 years ago

Hello @Htylol, Which kernel version are you running?

Htylol commented 4 years ago

Screenshot-20-09-04-08-15-42 4.4.156, docker works, lxc doesn't

Htylol commented 4 years ago

Screenshot_2020-09-04_05-26-49 Screenshot_2020-09-04_05-26-02 Screenshot_2020-09-04_05-25-11

Htylol commented 4 years ago

Understood in general, the command devel-su umount /sys/fs/cgroup/schedtune helped. Screenshot-20-09-08-04-33-56 A stupid question, of course, but where in sailfish os to write this so that this command works automatically during system startup?