Can't launch containers on ceph or lvs thinpool

Ubuntu 20.04.4 LTS
“lxc info”

  driver: lxc
  driver_version: 4.0.12
  firewall: xtables
  kernel: Linux
  kernel_architecture: x86_64
  kernel_features:
    idmapped_mounts: "false"
    netnsid_getifaddrs: "true"
    seccomp_listener: "true"
    seccomp_listener_continue: "true"
    shiftfs: "false"
    uevent_injection: "true"
    unpriv_fscaps: "true"
  kernel_version: 5.4.0-107-generic
  lxc_features:
    cgroup2: "true"
    core_scheduling: "true"
    devpts_fd: "true"
    idmapped_mounts_v2: "true"
    mount_injection_file: "true"
    network_gateway_device_route: "true"
    network_ipvlan: "true"
    network_l2proxy: "true"
    network_phys_macvlan_mtu: "true"
    network_veth_router: "true"
    pidfd: "true"
    seccomp_allow_deny_syntax: "true"
    seccomp_notify: "true"
    seccomp_proxy_send_notify_fd: "true"
  os_name: Ubuntu
  os_version: "20.04"
  project: default
  server: lxd
  server_clustered: false
  server_event_mode: full-mesh
  server_name: neotess-manager-ubuntu-04
  server_pid: 1601
  server_version: "4.24"
  storage: dir | lvm | ceph
  storage_version: 1 | 2.03.07(2) (2019-11-30) / 1.02.167 (2019-11-30) / 4.41.0 |
    15.2.14
  storage_supported_drivers:
  - name: cephfs
    version: 15.2.14
    remote: true
  - name: dir
    version: "1"
    remote: false
  - name: lvm
    version: 2.03.07(2) (2019-11-30) / 1.02.167 (2019-11-30) / 4.41.0
    remote: false
  - name: zfs
    version: 0.8.3-1ubuntu12.13
    remote: false
  - name: ceph
    version: 15.2.14
    remote: true
  - name: btrfs
    version: 5.4.1
    remote: false

Storage : dir, lvs thinpool, ceph

Can’t start containers on lvs thin and on ceph

$ lxc info --show-log mycont
Name: mycont
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2022/04/15 16:28 UTC

Log:

lxc mycont 20220415171645.715 ERROR    conf - conf.c:run_buffer:321 - Script exited with status 1
lxc mycont 20220415171645.715 ERROR    start - start.c:lxc_init:847 - Failed to run lxc.hook.pre-start for container "mycont"
lxc mycont 20220415171645.715 ERROR    start - start.c:__lxc_start:2008 - Failed to initialize container "mycont"
lxc mycont 20220415171715.796 ERROR    lxccontainer - lxccontainer.c:wait_on_daemonized_start:869 - No such file or directory - Failed to receive the container state
lxc 20220415171715.796 ERROR    af_unix - af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20220415171715.796 ERROR    af_unix - af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20220415171715.796 ERROR    commands - commands.c:lxc_cmd_rsp_recv_fds:127 - Failed to receive file descriptors for command "get_state"
lxc 20220415171715.796 ERROR    af_unix - af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20220415171715.796 ERROR    af_unix - af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20220415171715.796 ERROR    commands - commands.c:lxc_cmd_rsp_recv_fds:127 - Failed to receive file descriptors for command "get_state"
lxc 20220415171715.796 ERROR    commands - commands.c:lxc_cmd_rsp_recv_fds:127 - Failed to receive file descriptors for command "get_state"
lxc 20220415171715.796 ERROR    commands - commands.c:lxc_cmd_rsp_recv_fds:127 - Failed to receive file descriptors for command "get_state"
lxc 20220415171715.796 ERROR    af_unix - af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20220415171715.796 ERROR    commands - commands.c:lxc_cmd_rsp_recv_fds:127 - Failed to receive file descriptors for command "get_state"
lxc 20220415171715.796 ERROR    af_unix - af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20220415171715.796 ERROR    commands - commands.c:lxc_cmd_rsp_recv_fds:127 - Failed to receive file descriptors for command "get_state"
lxc 20220415171715.796 ERROR    af_unix - af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20220415171715.796 ERROR    commands - commands.c:lxc_cmd_rsp_recv_fds:127 - Failed to receive file descriptors for command "get_state"

/var/snap/lxd/common/lxd/logs/lxd.log

...
=2022-04-15T17:15:16+0000 lvl=info msg="Starting container" action=start created=2022-04-15T16:28:56+0000 ephemeral=false instance=neotess-04 instanceType=container project=default stateful=false used=1970-01-01T00:00:00+0000
t=2022-04-15T17:15:17+0000 lvl=eror msg="The start hook failed" err="Failed to read template file: open /var/snap/lxd/common/lxd/containers/neotess-04/templates/cloud-init-meta.tpl: no such file or directory" instance=neotess-04
t=2022-04-15T17:15:47+0000 lvl=eror msg="Failed starting container" action=start created=2022-04-15T16:28:56+0000 ephemeral=false instance=neotess-04 instanceType=container project=default stateful=false used=1970-01-01T00:00:00+0000
t=2022-04-15T17:16:45+0000 lvl=info msg="Starting container" action=start created=2022-04-15T16:28:56+0000 ephemeral=false instance=neotess-04 instanceType=container project=default stateful=false used=1970-01-01T00:00:00+0000
t=2022-04-15T17:16:45+0000 lvl=eror msg="The start hook failed" err="Failed to read template file: open /var/snap/lxd/common/lxd/containers/neotess-04/templates/hostname.tpl: no such file or directory" instance=neotess-04
t=2022-04-15T17:17:15+0000 lvl=eror msg="Failed starting container" action=start created=2022-04-15T16:28:56+0000 ephemeral=false instance=neotess-04 instanceType=container project=default stateful=false used=1970-01-01T00:00:00+0000
...
$ sudo ls -l /var/snap/lxd/common/lxd/storage-pools/thinclient/containers/mycont/
total 0

Thanks for your attention,

This is a duplicate of: