Failed to create net_prio:lxc/MyContainer

Hello! I’m very new to Ubuntu and LXC and trying to reproduce the container creation from a book!

NAME="Ubuntu"
VERSION="14.04.6 LTS, Trusty Tahr"

lxc-ls  --version
1.0.10

But I found this in the logs after
lxc-start -d -n MyContainer --logfile=/var/log/lxc/lxc.log

lxc-start 1595188211.388 ERROR lxc_cgmanager - cgmanager.c:lxc_cgmanager_create:301 - call to cgmanager_create_sync failed: invalid request
lxc-start 1595188211.388 ERROR lxc_cgmanager - cgmanager.c:lxc_cgmanager_create:303 - Failed to create net_prio:lxc/MyContainer
lxc-start 1595188211.388 ERROR lxc_cgmanager - cgmanager.c:cgm_create:650 - Error creating cgroup net_prio:lxc/MyContainer
lxc-start 1595188211.388 ERROR lxc_start - start.c:lxc_spawn:910 - failed creating cgroups
lxc-start 1595188211.388 ERROR lxc_start - start.c:__lxc_start:1149 - failed to spawn ‘MyContainer’
lxc-start 1595188216.396 ERROR lxc_start_ui - lxc_start.c:main:341 - The container failed to start.
lxc-start 1595188216.396 ERROR lxc_start_ui - lxc_start.c:main:343 - To get more details, run the container in foreground mode.
lxc-start 1595188216.396 ERROR lxc_start_ui - lxc_start.c:main:345 - Additional information can be obtained by setting the --logfile and --logpriority options.

Could you help me to find the mistake please?

UPD
debug is

lxc-start 1595192329.171 INFO     lxc_start_ui - lxc_start.c:main:264 - using rcfile /home/aikawa/.local/share/lxc/MyContainer/config
  lxc-start 1595192329.171 INFO     lxc_utils - utils.c:get_rundir:229 - XDG_RUNTIME_DIR isn't set in the environment.
  lxc-start 1595192329.172 INFO     lxc_confile - confile.c:config_idmap:1385 - read uid map: type u nsid 0 hostid 36524 range 1
  lxc-start 1595192329.172 INFO     lxc_confile - confile.c:config_idmap:1385 - read uid map: type g nsid 0 hostid 60000 range 8700
  lxc-start 1595192329.172 WARN     lxc_log - log.c:lxc_log_init:331 - lxc_log_init called with log already initialized
  lxc-start 1595192329.172 WARN     lxc_cgmanager - cgmanager.c:cgm_get:985 - do_cgm_get exited with error
  lxc-start 1595192329.173 INFO     lxc_start - start.c:lxc_check_inherited:225 - closed inherited fd 3
  lxc-start 1595192329.173 INFO     lxc_start - start.c:lxc_check_inherited:225 - closed inherited fd 5
  lxc-start 1595192329.176 WARN     lxc_start - start.c:lxc_check_inherited:228 - inherited fd 3
  lxc-start 1595192329.176 WARN     lxc_start - start.c:lxc_check_inherited:228 - inherited fd 3
  lxc-start 1595192329.176 INFO     lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver nop
  lxc-start 1595192329.176 INFO     lxc_utils - utils.c:get_rundir:229 - XDG_RUNTIME_DIR isn't set in the environment.
  lxc-start 1595192329.176 DEBUG    lxc_start - start.c:setup_signal_fd:263 - sigchild handler set
  lxc-start 1595192329.177 DEBUG    console - console.c:lxc_console_peer_default:476 - no console peer
  lxc-start 1595192329.177 INFO     lxc_conf - conf.c:chown_mapped_root:3898 - chown_mapped_root: container root is our uid;  no need to chown
  lxc-start 1595192329.177 INFO     lxc_start - start.c:lxc_init:463 - 'MyContainer' is initialized
  lxc-start 1595192329.177 INFO     lxc_start - start.c:lxc_check_inherited:225 - closed inherited fd 3
  lxc-start 1595192329.177 INFO     lxc_start - start.c:lxc_check_inherited:225 - closed inherited fd 5
  lxc-start 1595192329.177 DEBUG    lxc_start - start.c:__lxc_start:1127 - Not dropping cap_sys_boot or watching utmp
  lxc-start 1595192329.178 INFO     lxc_start - start.c:lxc_spawn:851 - Cloning a new user namespace
  lxc-start 1595192329.178 INFO     lxc_cgroup - cgroup.c:cgroup_init:62 - cgroup driver cgmanager initing for MyContainer
  lxc-start 1595192329.178 ERROR    lxc_cgmanager - cgmanager.c:lxc_cgmanager_create:301 - call to cgmanager_create_sync failed: invalid request
  lxc-start 1595192329.178 ERROR    lxc_cgmanager - cgmanager.c:lxc_cgmanager_create:303 - Failed to create net_prio:lxc/MyContainer
  lxc-start 1595192329.178 ERROR    lxc_cgmanager - cgmanager.c:cgm_create:650 - Error creating cgroup net_prio:lxc/MyContainer
  lxc-start 1595192329.178 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: net_prio:lxc/MyContainer did not exist
  lxc-start 1595192329.178 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: perf_event:lxc/MyContainer did not exist
  lxc-start 1595192329.178 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: name=systemd:lxc/MyContainer did not exist
  lxc-start 1595192329.178 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: pids:lxc/MyContainer did not exist
  lxc-start 1595192329.178 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: hugetlb:lxc/MyContainer did not exist
  lxc-start 1595192329.178 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: devices:lxc/MyContainer did not exist
  lxc-start 1595192329.178 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: blkio:lxc/MyContainer did not exist
  lxc-start 1595192329.179 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: net_cls:lxc/MyContainer did not exist
  lxc-start 1595192329.179 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: cpuset:lxc/MyContainer did not exist
  lxc-start 1595192329.179 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: cpuacct:lxc/MyContainer did not exist
  lxc-start 1595192329.179 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: cpu:lxc/MyContainer did not exist
  lxc-start 1595192329.179 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: memory:lxc/MyContainer did not exist
  lxc-start 1595192329.179 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: freezer:lxc/MyContainer did not exist
  lxc-start 1595192329.179 ERROR    lxc_start - start.c:lxc_spawn:910 - failed creating cgroups
  lxc-start 1595192329.179 INFO     lxc_utils - utils.c:get_rundir:229 - XDG_RUNTIME_DIR isn't set in the environment.
  lxc-start 1595192329.179 ERROR    lxc_start - start.c:__lxc_start:1149 - failed to spawn 'MyContainer'
  lxc-start 1595192329.179 INFO     lxc_utils - utils.c:get_rundir:229 - XDG_RUNTIME_DIR isn't set in the environment.
  lxc-start 1595192329.179 INFO     lxc_utils - utils.c:get_rundir:229 - XDG_RUNTIME_DIR isn't set in the environment.
  lxc-start 1595192329.180 INFO     lxc_monitor - monitor.c:lxc_monitor_sock_name:178 - using monitor sock name lxc/c6eb552b68aa2d5c//home/aikawa/.local/share/lxc
  lxc-start 1595192329.181 WARN     lxc_cgmanager - cgmanager.c:cgm_get:985 - do_cgm_get exited with error
  lxc-start 1595192334.186 ERROR    lxc_start_ui - lxc_start.c:main:341 - The container failed to start.
  lxc-start 1595192334.186 ERROR    lxc_start_ui - lxc_start.c:main:343 - To get more details, run the container in foreground mode.
  lxc-start 1595192334.186 ERROR    lxc_start_ui - lxc_start.c:main:345 - Additional information can be obtained by setting the --logfile and --logpriority options.

I’ve made this

https://unix.stackexchange.com/a/177028/423314

and now have

lxc-start 1595193258.252 INFO     lxc_start_ui - lxc_start.c:main:264 - using rcfile /home/aikawa/.local/share/lxc/MyContainer/config
  lxc-start 1595193258.252 INFO     lxc_confile - confile.c:config_idmap:1385 - read uid map: type u nsid 0 hostid 36524 range 1
  lxc-start 1595193258.252 INFO     lxc_confile - confile.c:config_idmap:1385 - read uid map: type g nsid 0 hostid 60000 range 8700
  lxc-start 1595193258.252 WARN     lxc_log - log.c:lxc_log_init:331 - lxc_log_init called with log already initialized
  lxc-start 1595193258.253 WARN     lxc_cgmanager - cgmanager.c:cgm_get:985 - do_cgm_get exited with error
  lxc-start 1595193258.254 INFO     lxc_start - start.c:lxc_check_inherited:225 - closed inherited fd 3
  lxc-start 1595193258.254 INFO     lxc_start - start.c:lxc_check_inherited:225 - closed inherited fd 5
  lxc-start 1595193258.258 WARN     lxc_start - start.c:lxc_check_inherited:228 - inherited fd 3
  lxc-start 1595193258.258 WARN     lxc_start - start.c:lxc_check_inherited:228 - inherited fd 3
  lxc-start 1595193258.258 INFO     lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver nop
  lxc-start 1595193258.258 DEBUG    lxc_start - start.c:setup_signal_fd:263 - sigchild handler set
  lxc-start 1595193258.258 DEBUG    console - console.c:lxc_console_peer_default:476 - no console peer
  lxc-start 1595193258.258 INFO     lxc_conf - conf.c:chown_mapped_root:3898 - chown_mapped_root: container root is our uid;  no need to chown
  lxc-start 1595193258.258 INFO     lxc_start - start.c:lxc_init:463 - 'MyContainer' is initialized
  lxc-start 1595193258.259 INFO     lxc_start - start.c:lxc_check_inherited:225 - closed inherited fd 3
  lxc-start 1595193258.259 INFO     lxc_start - start.c:lxc_check_inherited:225 - closed inherited fd 5
  lxc-start 1595193258.259 DEBUG    lxc_start - start.c:__lxc_start:1127 - Not dropping cap_sys_boot or watching utmp
  lxc-start 1595193258.259 INFO     lxc_start - start.c:lxc_spawn:851 - Cloning a new user namespace
  lxc-start 1595193258.259 INFO     lxc_cgroup - cgroup.c:cgroup_init:62 - cgroup driver cgmanager initing for MyContainer
  lxc-start 1595193258.260 ERROR    lxc_cgmanager - cgmanager.c:lxc_cgmanager_create:301 - call to cgmanager_create_sync failed: invalid request
  lxc-start 1595193258.260 ERROR    lxc_cgmanager - cgmanager.c:lxc_cgmanager_create:303 - Failed to create pids:lxc/MyContainer
  lxc-start 1595193258.260 ERROR    lxc_cgmanager - cgmanager.c:cgm_create:650 - Error creating cgroup pids:lxc/MyContainer
  lxc-start 1595193258.261 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: pids:lxc/MyContainer did not exist
  lxc-start 1595193258.261 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: hugetlb:lxc/MyContainer did not exist
  lxc-start 1595193258.261 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: devices:lxc/MyContainer did not exist
  lxc-start 1595193258.261 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: blkio:lxc/MyContainer did not exist
  lxc-start 1595193258.261 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: net_cls:lxc/MyContainer did not exist
  lxc-start 1595193258.261 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: cpuset:lxc/MyContainer did not exist
  lxc-start 1595193258.261 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: cpuacct:lxc/MyContainer did not exist
  lxc-start 1595193258.261 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: cpu:lxc/MyContainer did not exist
  lxc-start 1595193258.261 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: memory:lxc/MyContainer did not exist
  lxc-start 1595193258.261 INFO     lxc_cgmanager - cgmanager.c:cgm_remove_cgroup:528 - cgroup removal attempt: freezer:lxc/MyContainer did not exist
  lxc-start 1595193258.261 ERROR    lxc_start - start.c:lxc_spawn:910 - failed creating cgroups
  lxc-start 1595193258.261 ERROR    lxc_start - start.c:__lxc_start:1149 - failed to spawn 'MyContainer'
  lxc-start 1595193258.262 INFO     lxc_monitor - monitor.c:lxc_monitor_sock_name:178 - using monitor sock name lxc/c6eb552b68aa2d5c//home/aikawa/.local/share/lxc
  lxc-start 1595193258.263 WARN     lxc_cgmanager - cgmanager.c:cgm_get:985 - do_cgm_get exited with error

cat /proc/self/cgroup is

13:net_prio:/user/36524.user/6.session

12:perf_event:/user/36524.user/6.session

11:name=systemd:/user/36524.user/6.session

10:pids:/

9:hugetlb:/user/36524.user/6.session

8:devices:/user/36524.user/6.session

7:blkio:/user/36524.user/6.session

6:net_cls:/user/36524.user/6.session

5:cpuset:/user/36524.user/6.session

4:cpuacct:/user/36524.user/6.session

3:cpu:/user/36524.user/6.session

2:memory:/user/36524.user/6.session

1:freezer:/user/36524.user/6.session

PS! sorry for my English!

Is it possible for you to use a newer version of Ubuntu and LXC? That version is very old.