Can't start my lxc container

ported lxc to android9 arm64 device by cross-compilation chain, but encountered some problems when running lxc

$ CONFIG=./config lxc-checkconfig

— Namespaces —
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
newuidmap is not installed
newgidmap is not installed
Network namespace: enabled

— Control groups —
Cgroups: enabled

Cgroup v1 mount points:
/acct
/dev/memcg
/dev/stune
/dev/cpuctl
/dev/cpuset

Cgroup v2 mount points:
/dev/cg2_bpf

Cgroup v1 systemd controller: missing
Cgroup v1 freezer controller: missing
Cgroup v1 clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

— Misc —
Veth pair device: enabled, not loaded
Macvlan: enabled, not loaded
Vlan: enabled, not loaded
Bridges: enabled, not loaded
Advanced netfilter: enabled, not loaded
CONFIG_NF_NAT_IPV4: enabled, not loaded
CONFIG_NF_NAT_IPV6: enabled, not loaded
CONFIG_IP_NF_TARGET_MASQUERADE: enabled, not loaded
CONFIG_IP6_NF_TARGET_MASQUERADE: enabled, not loaded
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled, not loaded
CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled, not loaded
FUSE (for use with lxcfs): enabled, not loaded

— Checkpoint/Restore —
checkpoint restore: enabled
CONFIG_FHANDLE: enabled
CONFIG_EVENTFD: enabled
CONFIG_EPOLL: enabled
CONFIG_UNIX_DIAG: enabled
CONFIG_INET_DIAG: enabled
CONFIG_PACKET_DIAG: enabled
CONFIG_NETLINK_DIAG: enabled
File capabilities:

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /data/lxc/bin//lxc-checkconfig

This is my startup log

  • lxc-start busybox 20210430160843.254 INFO utils - utils.c:get_rundir:255 - XDG_RUNTIME_DIR isn’t set in the environment
    lxc-start busybox 20210430160843.255 INFO lxccontainer - lxccontainer.c:do_lxcapi_start:907 - argv = default_args——
    lxc-start busybox 20210430160843.256 INFO lxccontainer - lxccontainer.c:do_lxcapi_start:955 - Set process title to [lxc monitor] /data/lxc/containers busybox
    lxc-start busybox 20210430160843.257 INFO start - start.c:lxc_check_inherited:288 - Closed inherited fd 14
    lxc-start busybox 20210430160843.257 DEBUG lxccontainer - lxccontainer.c:wait_on_daemonized_start:812 - First child 5328 exited
    lxc-start busybox 20210430160843.258 INFO lxccontainer - lxccontainer.c:do_lxcapi_start:1090 - lxc_start argv: argv[0] = /sbin/init
    lxc-start busybox 20210430160843.258 INFO lsm - lsm/lsm.c:lsm_init:29 - LSM security driver nop
    lxc-start busybox 20210430160843.258 INFO utils - utils.c:get_rundir:255 - XDG_RUNTIME_DIR isn’t set in the environment
    lxc-start busybox 20210430160843.259 DEBUG terminal - terminal.c:lxc_terminal_peer_default:655 - No such device - The process does not have a controlling terminal
    lxc-start busybox 20210430160843.260 ERROR cgfsng - cgroups/cgfsng.c:cg_hybrid_get_controllers:698 - Found hierarchy not under /sys/fs/cgroup: “/acct rw,nosuid,nodev,noexec,relatime shared:21 - cgroup none rw,cpuacct

    lxc-start busybox 20210430160843.260 ERROR cgfsng - cgroups/cgfsng.c:cg_hybrid_get_controllers:698 - Found hierarchy not under /sys/fs/cgroup: “/dev/memcg rw,nosuid,nodev,noexec,relatime shared:5 - cgroup none rw,memory

    lxc-start busybox 20210430160843.260 ERROR cgfsng - cgroups/cgfsng.c:cg_hybrid_get_controllers:698 - Found hierarchy not under /sys/fs/cgroup: “/dev/stune rw,nosuid,nodev,noexec,relatime shared:6 - cgroup none rw,schedtune

    lxc-start busybox 20210430160843.260 ERROR cgfsng - cgroups/cgfsng.c:cg_hybrid_get_controllers:698 - Found hierarchy not under /sys/fs/cgroup: “/dev/cpuctl rw,nosuid,nodev,noexec,relatime shared:7 - cgroup none rw,cpu

    lxc-start busybox 20210430160843.260 ERROR cgfsng - cgroups/cgfsng.c:cg_hybrid_get_controllers:698 - Found hierarchy not under /sys/fs/cgroup: “/dev/cpuset rw,nosuid,nodev,noexec,relatime shared:8 - cgroup none rw,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent

    lxc-start busybox 20210430160843.260 ERROR cgfsng - cgroups/cgfsng.c:cg_hybrid_get_controllers:698 - Found hierarchy not under /sys/fs/cgroup: “/dev/cg2_bpf rw,nosuid,nodev,noexec,relatime shared:9 - cgroup2 cg2_bpf rw

    lxc-start busybox 20210430160843.260 ERROR cgfsng - cgroups/cgfsng.c:cg_hybrid_init:3007 - Invalid argument - Failed parsing mountpoint from “36 22 0:28 / /dev/cg2_bpf rw,nosuid,nodev,noexec,relatime shared:9 - cgroup2 cg2_bpf rw

    lxc-start busybox 20210430160843.261 INFO start - start.c:lxc_init:899 - Container “busybox” is initialized
    lxc-start busybox 20210430160843.268 INFO start - start.c:lxc_spawn:1723 - Cloned CLONE_NEWNS
    lxc-start busybox 20210430160843.268 INFO start - start.c:lxc_spawn:1723 - Cloned CLONE_NEWPID
    lxc-start busybox 20210430160843.268 INFO start - start.c:lxc_spawn:1723 - Cloned CLONE_NEWUTS
    lxc-start busybox 20210430160843.268 INFO start - start.c:lxc_spawn:1723 - Cloned CLONE_NEWIPC
    lxc-start busybox 20210430160843.268 INFO start - start.c:lxc_spawn:1723 - Cloned CLONE_NEWNET
    lxc-start busybox 20210430160843.268 DEBUG start - start.c:lxc_try_preserve_namespaces:170 - Preserved mnt namespace via fd 16
    lxc-start busybox 20210430160843.268 DEBUG start - start.c:lxc_try_preserve_namespaces:170 - Preserved pid namespace via fd 17
    lxc-start busybox 20210430160843.268 DEBUG start - start.c:lxc_try_preserve_namespaces:170 - Preserved uts namespace via fd 18
    lxc-start busybox 20210430160843.269 DEBUG start - start.c:lxc_try_preserve_namespaces:170 - Preserved ipc namespace via fd 19
    lxc-start busybox 20210430160843.269 DEBUG start - start.c:lxc_try_preserve_namespaces:170 - Preserved net namespace via fd 20
    lxc-start busybox 20210430160843.270 INFO start - start.c:do_start:1271 - Unshared CLONE_NEWCGROUP
    lxc-start busybox 20210430160843.272 DEBUG storage - storage/storage.c:get_storage_by_name:211 - Detected rootfs type “dir”
    lxc-start busybox 20210430160843.272 DEBUG conf - conf.c:lxc_mount_rootfs:1314 - Mounted rootfs “/data/lxc/containers/busybox/rootfs” onto “/data/lxc/lib/lxc/rootfs” with options “(null)”
    lxc-start busybox 20210430160843.272 INFO conf - conf.c:setup_utsname:773 - Set hostname to “busybox”
    lxc-start busybox 20210430160843.272 INFO conf - conf.c:mount_autodev:1100 - Preparing “/dev”
    lxc-start busybox 20210430160843.273 INFO conf - conf.c:mount_autodev:1147 - Prepared “/dev”
    lxc-start busybox 20210430160843.275 WARN conf - conf.c:mount_entry_on_absolute_rootfs:2240 - Ignoring mount point “/dev/shm”
    lxc-start busybox 20210430160843.275 INFO conf - conf.c:mount_entry:1974 - No such file or directory - Failed to mount “/sys/kernel/security” on “/data/lxc/lib/lxc/rootfs/sys/kernel/security” (optional)
    lxc-start busybox 20210430160843.275 INFO conf - conf.c:lxc_fill_autodev:1191 - Populating “/dev”
    lxc-start busybox 20210430160843.275 DEBUG conf - conf.c:lxc_fill_autodev:1206 - Created device node “/data/lxc/lib/lxc/rootfs/dev/full”
    lxc-start busybox 20210430160843.275 DEBUG conf - conf.c:lxc_fill_autodev:1206 - Created device node “/data/lxc/lib/lxc/rootfs/dev/null”
    lxc-start busybox 20210430160843.275 DEBUG conf - conf.c:lxc_fill_autodev:1206 - Created device node “/data/lxc/lib/lxc/rootfs/dev/random”
    lxc-start busybox 20210430160843.275 DEBUG conf - conf.c:lxc_fill_autodev:1206 - Created device node “/data/lxc/lib/lxc/rootfs/dev/tty”
    lxc-start busybox 20210430160843.276 DEBUG conf - conf.c:lxc_fill_autodev:1206 - Created device node “/data/lxc/lib/lxc/rootfs/dev/urandom”
    lxc-start busybox 20210430160843.276 DEBUG conf - conf.c:lxc_fill_autodev:1206 - Created device node “/data/lxc/lib/lxc/rootfs/dev/zero”
    lxc-start busybox 20210430160843.276 INFO conf - conf.c:lxc_fill_autodev:1268 - Populated “/dev”
    lxc-start busybox 20210430160843.276 DEBUG conf - conf.c:lxc_setup_dev_console:1730 - Mounted pts device “/dev/pts/1” onto “/data/lxc/lib/lxc/rootfs/dev/console”
    lxc-start busybox 20210430160843.276 INFO utils - utils.c:lxc_mount_proc_if_needed:1235 - I am 1, /proc/self points to “1”
    lxc-start busybox 20210430160843.308 DEBUG conf - conf.c:lxc_setup_devpts:1612 - Mount new devpts instance with options “gid=5,newinstance,ptmxmode=0666,mode=0620,max=1”
    lxc-start busybox 20210430160843.309 DEBUG conf - conf.c:lxc_setup_devpts:1631 - Created dummy “/dev/ptmx” file as bind mount target
    lxc-start busybox 20210430160843.309 DEBUG conf - conf.c:lxc_setup_devpts:1636 - Bind mounted “/dev/pts/ptmx” to “/dev/ptmx”
    lxc-start busybox 20210430160843.309 DEBUG conf - conf.c:lxc_allocate_ttys:971 - Created tty “/dev/pts/0” with master fd 16 and slave fd 17
    lxc-start busybox 20210430160843.309 INFO conf - conf.c:lxc_allocate_ttys:987 - Finished creating 1 tty devices
    lxc-start busybox 20210430160843.309 DEBUG conf - conf.c:lxc_setup_ttys:922 - Bind mounted “/dev/pts/0” onto “/dev/tty1”
    lxc-start busybox 20210430160843.309 INFO conf - conf.c:lxc_setup_ttys:931 - Finished setting up 1 /dev/tty device(s)
    lxc-start busybox 20210430160843.309 DEBUG conf - conf.c:setup_caps:2459 - Capabilities have been setup
    lxc-start busybox 20210430160843.309 NOTICE conf - conf.c:lxc_setup:3680 - The container “busybox” is set up
    lxc-start busybox 20210430160843.309 DEBUG start - start.c:lxc_spawn:1876 - Preserved cgroup namespace via fd 7
    lxc-start busybox 20210430160843.309 NOTICE utils - utils.c:lxc_setgroups:1404 - Dropped additional groups
    lxc-start busybox 20210430160843.309 NOTICE start - start.c:start:2098 - Exec’ing “/sbin/init”
    lxc-start busybox 20210430160843.310 ERROR start - start.c:start:2101 - No such file or directory - Failed to exec “/sbin/init”
    lxc-start busybox 20210430160843.310 ERROR sync - sync.c:sync_wait:41 - An error occurred in another process (expected sequence number 7)
    lxc-start busybox 20210430160843.310 DEBUG network - network.c:lxc_delete_network:3274 - Deleted network devices
    lxc-start busybox 20210430160843.310 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:834 - Received container state “ABORTING” instead of “RUNNING”
    lxc-start busybox 20210430160843.310 INFO utils - utils.c:get_rundir:255 - XDG_RUNTIME_DIR isn’t set in the environment
    lxc-start busybox 20210430160843.310 ERROR lxc_start - tools/lxc_start.c:main:308 - The container failed to start
    lxc-start busybox 20210430160843.310 ERROR lxc_start - tools/lxc_start.c:main:311 - To get more details, run the container in foreground mode
    lxc-start busybox 20210430160843.310 ERROR lxc_start - tools/lxc_start.c:main:314 - Additional information can be obtained by setting the –logfile and –logpriority options
    lxc-start busybox 20210430160843.311 ERROR start - start.c:
    lxc_start:2016 - Failed to spawn container “busybox”
    lxc-start busybox 20210430160843.311 INFO utils - utils.c:get_rundir:255 - XDG_RUNTIME_DIR isn’t set in the environment
    lxc-start busybox 20210430160843.311 INFO utils - utils.c:get_rundir:255 - XDG_RUNTIME_DIR isn’t set in the environment

Can you help me solve this problem? Thanks a lot, I am using this for the first time to ask a question