Start failed of openwrt lxc

1. lxc-create -n test1 -t busybox -o /var/busy -l TRACE
2. lxc-execute -n test1 -o /var/busy -l TRACE
3. config
root@OpenWrt:/etc/lxc# cat /srv/lxc/test1/config
lxc.net.0.type = empty
lxc.rootfs.path = dir:/srv/lxc/test1/rootfs
lxc.signal.halt = SIGUSR1
lxc.signal.reboot = SIGTERM
lxc.uts.name = "test1"
lxc.autodev = 1
lxc.tty.max = 5
lxc.pty.max = 1
lxc.cap.drop = sys_module mac_admin mac_override sys_time
lxc.init.cmd = /sbin/init
lxc.mount.auto = cgroup:mixed proc:mixed sys:ro
lxc.mount.entry = shm dev/shm tmpfs defaults,create=dir 0 0
lxc.mount.entry = mqueue dev/mqueue mqueue defaults,optional,create=dir 0 0
lxc.mount.entry = /lib lib none ro,bind 0 0
lxc.mount.entry = /usr/lib usr/lib none ro,bind 0 0
4. error log

 
root@OpenWrt:/srv/lxc/test1# cat /var/busy
lxc-execute test1 20241016072124.896 ERROR    parse - parse.c:lxc_file_for_each_line_mmap:78 - No such file or directory - Failed to open file "-n"
lxc-execute test1 20241016072124.896 ERROR    lxc_execute - tools/lxc_execute.c:main:167 - Failed to load rcfile
lxc-execute test1 20241016072147.482 TRACE    commands - commands.c:lxc_server_init:2078 - Created abstract unix socket "/srv/lxc/test1/command"
lxc-execute test1 20241016072147.482 TRACE    start - start.c:lxc_init_handler:757 - Unix domain socket 4 for command server is ready
lxc-execute test1 20241016072147.482 TRACE    execute - execute.c:lxc_execute:49 - Doing lxc_execute
lxc-execute test1 20241016072147.482 INFO     lsm - lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver nop
lxc-execute test1 20241016072147.482 TRACE    start - start.c:lxc_init:781 - Initialized LSM
lxc-execute test1 20241016072147.482 TRACE    start - start.c:lxc_serve_state_clients:486 - Set container state to STARTING
lxc-execute test1 20241016072147.482 TRACE    start - start.c:lxc_serve_state_clients:489 - No state clients registered
lxc-execute test1 20241016072147.482 TRACE    start - start.c:lxc_init:787 - Set container state to "STARTING"
lxc-execute test1 20241016072147.482 TRACE    start - start.c:lxc_init:843 - Set environment variables
lxc-execute test1 20241016072147.483 TRACE    start - start.c:lxc_init:848 - Ran pre-start hooks
lxc-execute test1 20241016072147.483 TRACE    start - start.c:setup_signal_fd:373 - Created signal file descriptor 7
lxc-execute test1 20241016072147.483 TRACE    start - start.c:lxc_init:861 - Set up signal fd
lxc-execute test1 20241016072147.483 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_hierarchy_add:456 - Adding cgroup hierarchy mounted at systemd and base cgroup (null)
lxc-execute test1 20241016072147.483 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_hierarchy_add:459 - The hierarchy contains the name=systemd controller
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_hierarchy_add:456 - Adding cgroup hierarchy mounted at  and base cgroup (null)
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_hierarchy_add:459 - The hierarchy contains the cpuset controller
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_hierarchy_add:459 - The hierarchy contains the cpu controller
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_hierarchy_add:459 - The hierarchy contains the io controller
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_hierarchy_add:459 - The hierarchy contains the memory controller
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_hierarchy_add:459 - The hierarchy contains the pids controller
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_hierarchy_add:459 - The hierarchy contains the rdma controller
lxc-execute test1 20241016072147.484 TRACE    cgroup - cgroups/cgroup.c:cgroup_init:40 - Initialized cgroup driver cgfsng
lxc-execute test1 20241016072147.484 TRACE    cgroup - cgroups/cgroup.c:cgroup_init:45 - Hybrid cgroup layout
lxc-execute test1 20241016072147.484 TRACE    start - start.c:lxc_init:868 - Initialized cgroup driver
lxc-execute test1 20241016072147.484 TRACE    start - start.c:lxc_init:875 - Read seccomp policy
lxc-execute test1 20241016072147.484 TRACE    start - start.c:lxc_init:882 - Initialized LSM
lxc-execute test1 20241016072147.484 INFO     start - start.c:lxc_init:884 - Container "test1" is initialized
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:__cgroup_tree_create:715 - Created 10(lxc.monitor.test1) cgroup
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:__cgroup_tree_create:715 - Created 11(lxc.monitor.test1) cgroup
lxc-execute test1 20241016072147.484 INFO     cgfsng - cgroups/cgfsng.c:cgfsng_monitor_create:1028 - The monitor process uses "lxc.monitor.test1" as cgroup
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_enter:1178 - Moved monitor into cgroup 12
lxc-execute test1 20241016072147.484 TRACE    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_enter:1178 - Moved monitor into cgroup 13
lxc-execute test1 20241016072147.484 DEBUG    storage - storage/storage.c:get_storage_by_name:209 - Detected rootfs type "dir"
lxc-execute test1 20241016072147.485 TRACE    conf - conf.c:lxc_rootfs_init:587 - Pinned rootfs 15(.lxc_keep)
lxc-execute test1 20241016072147.485 TRACE    conf - conf.c:lxc_rootfs_init:603 - Unlinked pinned file 14(.lxc_keep)
lxc-execute test1 20241016072147.485 TRACE    sync - sync.c:lxc_sync_init:139 - Initialized synchronization infrastructure
lxc-execute test1 20241016072147.485 TRACE    cgfsng - cgroups/cgfsng.c:__cgroup_tree_create:715 - Created 10(lxc.payload.test1) cgroup
lxc-execute test1 20241016072147.485 TRACE    cgfsng - cgroups/cgfsng.c:__cgroup_tree_create:715 - Created 11(lxc.payload.test1) cgroup
lxc-execute test1 20241016072147.485 INFO     cgfsng - cgroups/cgfsng.c:cgfsng_payload_create:1136 - The container process uses "lxc.payload.test1" as inner and "lxc.payload.test1" as limit cgroup
lxc-execute test1 20241016072147.487 TRACE    start - start.c:lxc_spawn:1705 - Spawned container directly into target cgroup via cgroup2 fd 20
lxc-execute test1 20241016072147.487 TRACE    start - start.c:lxc_spawn:1745 - Cloned child process 12775
lxc-execute test1 20241016072147.487 TRACE    start - start.c:core_scheduling:1563 - No new core scheduling domain requested
lxc-execute test1 20241016072147.487 TRACE    utils - utils.c:lxc_can_use_pidfd:1819 - Kernel supports pidfds
lxc-execute test1 20241016072147.487 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWNS
lxc-execute test1 20241016072147.487 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWPID
lxc-execute test1 20241016072147.487 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWUTS
lxc-execute test1 20241016072147.487 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWIPC
lxc-execute test1 20241016072147.487 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWNET
lxc-execute test1 20241016072147.487 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved mnt namespace via fd 22 and stashed path as mnt:/proc/12774/fd/22
lxc-execute test1 20241016072147.487 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved pid namespace via fd 23 and stashed path as pid:/proc/12774/fd/23
lxc-execute test1 20241016072147.487 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved uts namespace via fd 24 and stashed path as uts:/proc/12774/fd/24
lxc-execute test1 20241016072147.487 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved ipc namespace via fd 25 and stashed path as ipc:/proc/12774/fd/25
lxc-execute test1 20241016072147.488 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved net namespace via fd 26 and stashed path as net:/proc/12774/fd/26
lxc-execute test1 20241016072147.488 TRACE    cgfsng - cgroups/cgfsng.c:cgfsng_payload_enter:1237 - Moved container into /sys/fs/cgroup/systemd/lxc.payload.test1 cgroup via 19
lxc-execute test1 20241016072147.488 TRACE    sync - sync.c:lxc_sync_barrier_child:97 - Parent waking child with sequence startup and waiting with sequence configure
lxc-execute test1 20241016072147.488 TRACE    start - start.c:lxc_spawn:1705 - Spawned container directly into target cgroup via cgroup2 fd 20
lxc-execute test1 20241016072147.489 TRACE    sync - sync.c:lxc_sync_wait_parent:110 - Child waiting for parent with sequence startup
lxc-execute test1 20241016072147.489 TRACE    sync - sync.c:lxc_sync_wake_parent:104 - Child waking parent with sequence configure
lxc-execute test1 20241016072147.489 TRACE    start - start.c:lxc_spawn:1837 - Allocated new network namespace id
lxc-execute test1 20241016072147.489 TRACE    sync - sync.c:lxc_sync_wake_child:122 - Parent waking child with sequence post-configure
lxc-execute test1 20241016072147.489 TRACE    sync - sync.c:lxc_sync_wait_child:116 - Parent waiting for child with sequence idmapped-mounts
lxc-execute test1 20241016072147.489 INFO     start - start.c:do_start:1207 - Unshared CLONE_NEWCGROUP
lxc-execute test1 20241016072147.489 TRACE    sync - sync.c:lxc_sync_wait_parent:110 - Child waiting for parent with sequence post-configure
lxc-execute test1 20241016072147.490 TRACE    conf - conf.c:turn_into_dependent_mounts:3919 - Turned all mount table entries into dependent mount
lxc-execute test1 20241016072147.490 TRACE    mount_utils - mount_utils.c:can_use_mount_api:582 - Kernel supports mount api
lxc-execute test1 20241016072147.490 TRACE    dir - storage/dir.c:dir_mount:196 - Mounted "/srv/lxc/test1/rootfs" onto "/usr/lib/lxc/rootfs"
lxc-execute test1 20241016072147.490 DEBUG    conf - conf.c:lxc_mount_rootfs:1432 - Mounted rootfs "/srv/lxc/test1/rootfs" onto "/usr/lib/lxc/rootfs" with options "(null)"
lxc-execute test1 20241016072147.490 TRACE    conf - conf.c:lxc_mount_rootfs:1440 - Container uses separate rootfs. Opened container's rootfs
lxc-execute test1 20241016072147.490 INFO     conf - conf.c:setup_utsname:875 - Set hostname to "test1"
lxc-execute test1 20241016072147.490 DEBUG    network - network.c:lxc_network_setup_in_child_namespaces_common:3948 - Network device "lo" has been setup
lxc-execute test1 20241016072147.490 INFO     network - network.c:lxc_setup_network_in_child_namespaces:4005 - Finished setting up network devices with caller assigned names
lxc-execute test1 20241016072147.490 INFO     conf - conf.c:mount_autodev:1215 - Preparing "/dev"
lxc-execute test1 20241016072147.490 TRACE    mount_utils - mount_utils.c:__fs_prepare:177 - Finished initializing new tmpfs filesystem context 23
lxc-execute test1 20241016072147.490 TRACE    mount_utils - mount_utils.c:fs_set_property:215 - Set "mode" to "0755" on filesystem context 23
lxc-execute test1 20241016072147.490 TRACE    mount_utils - mount_utils.c:fs_set_property:215 - Set "size" to "500000" on filesystem context 23
lxc-execute test1 20241016072147.491 TRACE    mount_utils - mount_utils.c:fs_attach:266 - Mounted 25 onto 24
lxc-execute test1 20241016072147.491 INFO     conf - conf.c:mount_autodev:1276 - Prepared "/dev"
lxc-execute test1 20241016072147.491 DEBUG    conf - conf.c:lxc_mount_auto_mounts:735 - Invalid argument - Tried to ensure procfs is unmounted
lxc-execute test1 20241016072147.491 TRACE    conf - conf.c:lxc_mount_auto_mounts:742 - Created procfs mountpoint under 22
lxc-execute test1 20241016072147.491 DEBUG    conf - conf.c:lxc_mount_auto_mounts:758 - Invalid argument - Tried to ensure sysfs is unmounted
lxc-execute test1 20241016072147.491 TRACE    conf - conf.c:lxc_mount_auto_mounts:765 - Created sysfs mountpoint under 22
lxc-execute test1 20241016072147.491 TRACE    conf - conf.c:lxc_mount_auto_mounts:819 - Mounted automount "proc" on "/usr/lib/lxc/rootfs/proc" read-write with flags 14
lxc-execute test1 20241016072147.491 TRACE    conf - conf.c:lxc_mount_auto_mounts:819 - Mounted automount "/usr/lib/lxc/rootfs/proc/sys/net" on "/usr/lib/lxc/rootfs/proc/tty" read-write with flags 4096
lxc-execute test1 20241016072147.491 TRACE    conf - conf.c:lxc_mount_auto_mounts:819 - Mounted automount "/usr/lib/lxc/rootfs/proc/sys" on "/usr/lib/lxc/rootfs/proc/sys" read-write with flags 4096
lxc-execute test1 20241016072147.491 TRACE    conf - conf.c:lxc_mount_auto_mounts:817 - Remounted automount "(null)" on "/usr/lib/lxc/rootfs/proc/sys" read-only with flags 4129
lxc-execute test1 20241016072147.491 TRACE    conf - conf.c:lxc_mount_auto_mounts:819 - Mounted automount "/usr/lib/lxc/rootfs/proc/tty" on "/usr/lib/lxc/rootfs/proc/sys/net" read-write with flags 8192
lxc-execute test1 20241016072147.491 TRACE    conf - conf.c:lxc_mount_auto_mounts:819 - Mounted automount "/usr/lib/lxc/rootfs/proc/sysrq-trigger" on "/usr/lib/lxc/rootfs/proc/sysrq-trigger" read-write with flags 4096
lxc-execute test1 20241016072147.491 TRACE    conf - conf.c:lxc_mount_auto_mounts:817 - Remounted automount "(null)" on "/usr/lib/lxc/rootfs/proc/sysrq-trigger" read-only with flags 4129
lxc-execute test1 20241016072147.492 TRACE    conf - conf.c:lxc_mount_auto_mounts:819 - Mounted automount "sysfs" on "/usr/lib/lxc/rootfs/sys" read-only with flags 1
lxc-execute test1 20241016072147.492 TRACE    conf - conf.c:parse_vfs_attr:2283 - Raising defaults
lxc-execute test1 20241016072147.492 DEBUG    conf - conf.c:mount_entry:2475 - Mounted "shm" on "/usr/lib/lxc/rootfs/dev/shm" with filesystem type "tmpfs"
lxc-execute test1 20241016072147.492 TRACE    conf - conf.c:parse_vfs_attr:2283 - Raising defaults
lxc-execute test1 20241016072147.492 DEBUG    conf - conf.c:mount_entry:2475 - Mounted "mqueue" on "/usr/lib/lxc/rootfs/dev/mqueue" with filesystem type "mqueue"
lxc-execute test1 20241016072147.492 TRACE    conf - conf.c:parse_vfs_attr:2283 - Raising ro
lxc-execute test1 20241016072147.492 DEBUG    conf - conf.c:mount_entry:2412 - Remounting "/lib" on "/usr/lib/lxc/rootfs/lib" to respect bind or remount options
lxc-execute test1 20241016072147.492 DEBUG    conf - conf.c:mount_entry:2431 - Flags for "/lib" were 1056, required extra flags are 0
lxc-execute test1 20241016072147.492 DEBUG    conf - conf.c:mount_entry:2475 - Mounted "/lib" on "/usr/lib/lxc/rootfs/lib" with filesystem type "none"
lxc-execute test1 20241016072147.492 TRACE    conf - conf.c:parse_vfs_attr:2283 - Raising ro
lxc-execute test1 20241016072147.493 DEBUG    conf - conf.c:mount_entry:2412 - Remounting "/usr/lib" on "/usr/lib/lxc/rootfs/usr/lib" to respect bind or remount options
lxc-execute test1 20241016072147.493 DEBUG    conf - conf.c:mount_entry:2431 - Flags for "/usr/lib" were 1056, required extra flags are 0
lxc-execute test1 20241016072147.493 DEBUG    conf - conf.c:mount_entry:2475 - Mounted "/usr/lib" on "/usr/lib/lxc/rootfs/usr/lib" with filesystem type "none"
lxc-execute test1 20241016072147.493 TRACE    sync - sync.c:lxc_sync_wake_parent:104 - Child waking parent with sequence idmapped-mounts
lxc-execute test1 20241016072147.493 TRACE    conf - conf.c:parse_vfs_attr:2283 - Raising defaults
lxc-execute test1 20241016072147.493 TRACE    conf - conf.c:parse_vfs_attr:2283 - Raising defaults
lxc-execute test1 20241016072147.493 TRACE    conf - conf.c:parse_vfs_attr:2283 - Raising ro
lxc-execute test1 20241016072147.493 TRACE    conf - conf.c:parse_vfs_attr:2283 - Raising ro
lxc-execute test1 20241016072147.493 TRACE    conf - conf.c:lxc_idmapped_mounts_child:3096 - Finished setting up idmapped mounts
lxc-execute test1 20241016072147.493 TRACE    conf - conf.c:lxc_idmapped_mounts_parent:4119 - Finished receiving idmapped mount file descriptors from child
lxc-execute test1 20241016072147.493 TRACE    sync - sync.c:lxc_sync_wait_child:116 - Parent waiting for child with sequence cgroup-limits
lxc-execute test1 20241016072147.493 TRACE    cgfsng - cgroups/cgfsng.c:cgfsng_mount:1611 - Mixed cgroup mounts requested
lxc-execute test1 20241016072147.493 TRACE    cgfsng - cgroups/cgfsng.c:cgfsng_mount:1654 - Mounting cgroups not requested or needed
lxc-execute test1 20241016072147.493 INFO     conf - conf.c:lxc_fill_autodev:1313 - Populating "/dev"
lxc-execute test1 20241016072147.494 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "full"
lxc-execute test1 20241016072147.494 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "null"
lxc-execute test1 20241016072147.494 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "random"
lxc-execute test1 20241016072147.494 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "tty"
lxc-execute test1 20241016072147.494 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "urandom"
lxc-execute test1 20241016072147.494 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "zero"
lxc-execute test1 20241016072147.494 INFO     conf - conf.c:lxc_fill_autodev:1401 - Populated "/dev"
lxc-execute test1 20241016072147.494 INFO     conf - conf.c:lxc_transient_proc:3771 - Caller's PID is 1; /proc/self points to 1
lxc-execute test1 20241016072147.494 TRACE    conf - conf.c:lxc_transient_proc:3779 - Correct procfs instance mounted
lxc-execute test1 20241016072147.494 TRACE    mount_utils - mount_utils.c:__fs_prepare:177 - Finished initializing new devpts filesystem context 24
lxc-execute test1 20241016072147.494 TRACE    mount_utils - mount_utils.c:fs_set_property:215 - Set "source" to "devpts" on filesystem context 24
lxc-execute test1 20241016072147.494 TRACE    mount_utils - mount_utils.c:fs_set_property:215 - Set "gid" to "5" on filesystem context 24
lxc-execute test1 20241016072147.494 TRACE    mount_utils - mount_utils.c:fs_set_flag:227 - Set "newinstance" flag on filesystem context 24
lxc-execute test1 20241016072147.494 TRACE    mount_utils - mount_utils.c:fs_set_property:215 - Set "ptmxmode" to "0666" on filesystem context 24
lxc-execute test1 20241016072147.494 TRACE    mount_utils - mount_utils.c:fs_set_property:215 - Set "mode" to "0620" on filesystem context 24
lxc-execute test1 20241016072147.494 TRACE    mount_utils - mount_utils.c:fs_set_property:215 - Set "max" to "6" on filesystem context 24
lxc-execute test1 20241016072147.494 TRACE    conf - conf.c:lxc_setup_devpts_child:1741 - Created detached devpts mount 25
lxc-execute test1 20241016072147.494 DEBUG    conf - conf.c:lxc_setup_devpts_child:1747 - Attached detached devpts mount 25 to 23/pts
lxc-execute test1 20241016072147.494 DEBUG    conf - conf.c:lxc_setup_devpts_child:1833 - Created "/dev/ptmx" file as bind mount target
lxc-execute test1 20241016072147.494 TRACE    mount_utils - mount_utils.c:mount_at:663 - Mounted "/proc/self/fd/26" to "/proc/self/fd/27"
lxc-execute test1 20241016072147.494 DEBUG    conf - conf.c:lxc_setup_devpts_child:1840 - Bind mounted "/dev/pts/ptmx" to "/dev/ptmx"
lxc-execute test1 20241016072147.494 TRACE    mount_utils - mount_utils.c:move_detached_mount:328 - Attach detached mount 28 to filesystem at 26
lxc-execute test1 20241016072147.494 TRACE    conf - conf.c:lxc_setup_dev_console:1999 - Setup console "/dev/pts/0"
lxc-execute test1 20241016072147.495 DEBUG    conf - conf.c:lxc_allocate_ttys:1101 - Created tty with ptx fd 6 and pty fd 8 and index 0
lxc-execute test1 20241016072147.495 DEBUG    conf - conf.c:lxc_allocate_ttys:1101 - Created tty with ptx fd 24 and pty fd 26 and index 1
lxc-execute test1 20241016072147.495 DEBUG    conf - conf.c:lxc_allocate_ttys:1101 - Created tty with ptx fd 27 and pty fd 28 and index 2
lxc-execute test1 20241016072147.495 DEBUG    conf - conf.c:lxc_allocate_ttys:1101 - Created tty with ptx fd 29 and pty fd 30 and index 3
lxc-execute test1 20241016072147.495 DEBUG    conf - conf.c:lxc_allocate_ttys:1101 - Created tty with ptx fd 31 and pty fd 32 and index 4
lxc-execute test1 20241016072147.495 INFO     conf - conf.c:lxc_allocate_ttys:1106 - Finished creating 5 tty devices
lxc-execute test1 20241016072147.496 TRACE    conf - conf.c:lxc_pivot_root:1619 - Changed into new rootfs "/usr/lib/lxc/rootfs"
lxc-execute test1 20241016072147.496 DEBUG    conf - conf.c:setup_personality:1907 - Retaining original personality
lxc-execute test1 20241016072147.496 DEBUG    conf - conf.c:capabilities_deny:3196 - Dropped sys_module (16) capability
lxc-execute test1 20241016072147.496 DEBUG    conf - conf.c:capabilities_deny:3196 - Dropped mac_admin (33) capability
lxc-execute test1 20241016072147.496 DEBUG    conf - conf.c:capabilities_deny:3196 - Dropped mac_override (32) capability
lxc-execute test1 20241016072147.496 DEBUG    conf - conf.c:capabilities_deny:3196 - Dropped sys_time (25) capability
lxc-execute test1 20241016072147.496 DEBUG    conf - conf.c:capabilities_deny:3199 - Capabilities have been setup
lxc-execute test1 20241016072147.496 NOTICE   conf - conf.c:lxc_setup:4464 - The container "test1" is set up
lxc-execute test1 20241016072147.497 TRACE    sync - sync.c:lxc_sync_barrier_parent:90 - Child waking parent with sequence cgroup-limits and waiting for sequence fds
lxc-execute test1 20241016072147.497 TRACE    start - start.c:lxc_spawn:1899 - Set up legacy device cgroup controller limits
lxc-execute test1 20241016072147.497 TRACE    start - start.c:lxc_spawn:1905 - Set up cgroup2 device controller limits
lxc-execute test1 20241016072147.497 TRACE    start - start.c:lxc_spawn:1908 - Finished setting up cgroups
lxc-execute test1 20241016072147.497 TRACE    sync - sync.c:lxc_sync_wake_child:122 - Parent waking child with sequence fds
lxc-execute test1 20241016072147.497 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved cgroup namespace via fd 5 and stashed path as cgroup:/proc/12774/fd/5
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:lxc_recv_devpts_from_child:1677 - Received devpts file descriptor 9 from child
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:lxc_send_devpts_to_parent:1895 - Sent devpts file descriptor 25 to parent
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:lxc_recv_ttys_from_child:4180 - Received pty with ptx fd 12 and pty fd 13 from child
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:__lxc_send_ttys_to_parent:1146 - Sent tty "" with ptx fd 6 and pty fd 8 to parent
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:lxc_recv_ttys_from_child:4180 - Received pty with ptx fd 14 and pty fd 27 from child
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:__lxc_send_ttys_to_parent:1146 - Sent tty "" with ptx fd 24 and pty fd 26 to parent
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:lxc_recv_ttys_from_child:4180 - Received pty with ptx fd 28 and pty fd 29 from child
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:__lxc_send_ttys_to_parent:1146 - Sent tty "" with ptx fd 27 and pty fd 28 to parent
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:lxc_recv_ttys_from_child:4180 - Received pty with ptx fd 30 and pty fd 31 from child
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:__lxc_send_ttys_to_parent:1146 - Sent tty "" with ptx fd 29 and pty fd 30 to parent
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:lxc_recv_ttys_from_child:4180 - Received pty with ptx fd 32 and pty fd 33 from child
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:lxc_recv_ttys_from_child:4185 - Received 5 ttys from child
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:__lxc_send_ttys_to_parent:1146 - Sent tty "" with ptx fd 31 and pty fd 32 to parent
lxc-execute test1 20241016072147.497 TRACE    conf - conf.c:__lxc_send_ttys_to_parent:1153 - Sent 5 ttys to parent
lxc-execute test1 20241016072147.498 TRACE    network - network.c:lxc_network_recv_name_and_ifindex_from_child:4135 - Received network device lo with ifindex 0 from child
lxc-execute test1 20241016072147.498 TRACE    conf - conf.c:lxc_sync_fds_parent:4266 - Finished syncing file descriptors with child
lxc-execute test1 20241016072147.498 DEBUG    terminal - terminal.c:lxc_terminal_peer_default:702 - Using terminal "/dev/tty" as proxy
lxc-execute test1 20241016072147.498 TRACE    terminal - terminal.c:lxc_terminal_signal_init:144 - Created signal fd 35
lxc-execute test1 20241016072147.498 DEBUG    terminal - terminal.c:lxc_terminal_winsz:59 - Set window size to 0 columns and 0 rows
lxc-execute test1 20241016072147.498 TRACE    sync - sync.c:lxc_sync_barrier_child:97 - Parent waking child with sequence ready-start and waiting with sequence restart
lxc-execute test1 20241016072147.498 TRACE    network - network.c:lxc_network_send_name_and_ifindex_to_parent:4101 - Sent network device lo with ifindex 0 to parent
lxc-execute test1 20241016072147.498 TRACE    network - network.c:lxc_network_send_name_and_ifindex_to_parent:4105 - Sent network device names and ifindices to parent
lxc-execute test1 20241016072147.498 TRACE    conf - conf.c:lxc_sync_fds_child:4296 - Finished syncing file descriptors with parent
lxc-execute test1 20241016072147.498 TRACE    sync - sync.c:lxc_sync_wait_parent:110 - Child waiting for parent with sequence ready-start
lxc-execute test1 20241016072147.498 NOTICE   utils - utils.c:lxc_drop_groups:1365 - Dropped supplimentary groups
lxc-execute test1 20241016072147.500 TRACE    confile_utils - confile_utils.c:lxc_log_configured_netdevs:233 - index: 0
lxc-execute test1 20241016072147.500 TRACE    confile_utils - confile_utils.c:lxc_log_configured_netdevs:234 - ifindex: 0
lxc-execute test1 20241016072147.500 TRACE    confile_utils - confile_utils.c:lxc_log_configured_netdevs:297 - type: empty
lxc-execute test1 20241016072147.500 NOTICE   execute - execute.c:execute_post_start:34 - '(null)' started with pid '12775'
lxc-execute test1 20241016072147.500 TRACE    start - start.c:lxc_serve_state_clients:486 - Set container state to RUNNING
lxc-execute test1 20241016072147.500 TRACE    start - start.c:lxc_serve_state_clients:489 - No state clients registered
lxc-execute test1 20241016072147.500 TRACE    mainloop - mainloop.c:__epoll_open:493 - Created epoll instance
lxc-execute test1 20241016072147.500 TRACE    mainloop - mainloop.c:__epoll_open:493 - Created epoll instance
lxc-execute test1 20241016072147.500 TRACE    start - start.c:lxc_poll:629 - Mainloop is ready
lxc-execute test1 20241016072147.501 TRACE    start - start.c:signal_handler:399 - Received signal ssi_signo(17) for ssi_pid(12775), si_signo(17), si_pid(12775)
lxc-execute test1 20241016072147.501 DEBUG    start - start.c:signal_handler:467 - Container init process 12775 exited
lxc-execute test1 20241016072147.501 TRACE    start - start.c:lxc_poll:646 - Closed console mainloop
lxc-execute test1 20241016072147.501 TRACE    start - start.c:lxc_poll:651 - Closed mainloop
lxc-execute test1 20241016072147.501 TRACE    start - start.c:lxc_poll:654 - Closed signal file descriptor 7
lxc-execute test1 20241016072147.501 TRACE    network - network.c:lxc_restore_phys_nics_to_netns:3745 - Moving physical network devices back to parent network namespace
lxc-execute test1 20241016072147.502 INFO     error - error.c:lxc_error_set_and_log:31 - Child <12775> ended on error (139)
lxc-execute test1 20241016072147.502 TRACE    start - start.c:lxc_expose_namespace_environment:909 - Set environment variable LXC_MNT_NS=/proc/12774/fd/22
lxc-execute test1 20241016072147.502 TRACE    start - start.c:lxc_expose_namespace_environment:909 - Set environment variable LXC_PID_NS=/proc/12774/fd/23
lxc-execute test1 20241016072147.502 TRACE    start - start.c:lxc_expose_namespace_environment:909 - Set environment variable LXC_UTS_NS=/proc/12774/fd/24
lxc-execute test1 20241016072147.502 TRACE    start - start.c:lxc_expose_namespace_environment:909 - Set environment variable LXC_IPC_NS=/proc/12774/fd/25
lxc-execute test1 20241016072147.502 TRACE    start - start.c:lxc_expose_namespace_environment:909 - Set environment variable LXC_NET_NS=/proc/12774/fd/26
lxc-execute test1 20241016072147.502 TRACE    start - start.c:lxc_expose_namespace_environment:909 - Set environment variable LXC_CGROUP_NS=/proc/12774/fd/5
lxc-execute test1 20241016072147.502 DEBUG    network - network.c:lxc_delete_network:4159 - Deleted network devices
lxc-execute test1 20241016072147.502 TRACE    start - start.c:lxc_serve_state_clients:486 - Set container state to STOPPING
lxc-execute test1 20241016072147.502 TRACE    start - start.c:lxc_serve_state_clients:489 - No state clients registered
lxc-execute test1 20241016072147.502 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_tree_remove:485 - Removed cgroup tree 10(lxc.payload.test1)
lxc-execute test1 20241016072147.502 TRACE    cgfsng - cgroups/cgfsng.c:cgroup_tree_remove:485 - Removed cgroup tree 11(lxc.payload.test1)
lxc-execute test1 20241016072147.502 TRACE    cgfsng - cgroups/cgfsng.c:__cgroup_tree_create:715 - Reusing 10(lxc.pivot) cgroup
lxc-execute test1 20241016072147.503 TRACE    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_destroy:915 - Removed cgroup tree 10(lxc.monitor.test1)
lxc-execute test1 20241016072147.503 TRACE    cgfsng - cgroups/cgfsng.c:__cgroup_tree_create:715 - Reusing 11(lxc.pivot) cgroup
lxc-execute test1 20241016072147.503 TRACE    cgfsng - cgroups/cgfsng.c:cgfsng_monitor_destroy:915 - Removed cgroup tree 11(lxc.monitor.test1)
lxc-execute test1 20241016072147.503 TRACE    start - start.c:lxc_end:966 - Closed command socket
lxc-execute test1 20241016072147.503 TRACE    start - start.c:lxc_end:977 - Set container state to "STOPPED"

5. could you please help investigate the reason for the failure to start LXC and why the init process exited

thank god for all the error messages!

I assume you've read https://openwrt.org/lxc_openwrt_host ?

I have studied it and found no differences.