Lxc start failed

I have downloaded openwrt's container successfully, but I got the following error when I started the container.

Any advice? Thanks

root@OpenWrt:/# rm -f /var/test && lxc-start -n alpine -o /va
r/test -l DEBUG -F
[__lxc_start(2007)] warning:ret=0
root@OpenWrt:/# cat /var/test 
lxc-start alpine 20230412021651.118 INFO     lsm - lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver nop
lxc-start alpine 20230412021651.136 DEBUG    seccomp - seccomp.c:parse_config_v2:656 - Host native arch is [1073741864]
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:parse_config_v2:807 - Processing "reject_force_umount  # comment this to allow umount -f;  not recommended"
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:do_resolve_add_rule:524 - Set seccomp rule to reject force umounts
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:parse_config_v2:807 - Processing "[all]"
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:parse_config_v2:807 - Processing "kexec_load errno 1"
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:do_resolve_add_rule:564 - Adding native rule for syscall[347:kexec_load] action[327681:errno] arch[0]
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:parse_config_v2:807 - Processing "open_by_handle_at errno 1"
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:do_resolve_add_rule:564 - Adding native rule for syscall[371:open_by_handle_at] action[327681:errno] arch[0]
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:parse_config_v2:807 - Processing "init_module errno 1"
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:do_resolve_add_rule:564 - Adding native rule for syscall[128:init_module] action[327681:errno] arch[0]
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:parse_config_v2:807 - Processing "finit_module errno 1"
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:do_resolve_add_rule:564 - Adding native rule for syscall[379:finit_module] action[327681:errno] arch[0]
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:parse_config_v2:807 - Processing "delete_module errno 1"
lxc-start alpine 20230412021651.136 INFO     seccomp - seccomp.c:do_resolve_add_rule:564 - Adding native rule for syscall[129:delete_module] action[327681:errno] arch[0]
lxc-start alpine 20230412021651.137 INFO     seccomp - seccomp.c:parse_config_v2:1017 - Merging compat seccomp contexts into main context
lxc-start alpine 20230412021651.137 INFO     start - start.c:lxc_init:884 - Container "alpine" is initialized
lxc-start alpine 20230412021651.137 INFO     cgfsng - cgroups/cgfsng.c:cgfsng_monitor_create:1028 - The monitor process uses "lxc.monitor.alpine" as cgroup
lxc-start alpine 20230412021651.179 DEBUG    storage - storage/storage.c:get_storage_by_name:209 - Detected rootfs type "dir"
lxc-start alpine 20230412021651.181 INFO     cgfsng - cgroups/cgfsng.c:cgfsng_payload_create:1136 - The container process uses "lxc.payload.alpine" as inner and "lxc.payload.alpine" as limit cgroup
lxc-start alpine 20230412021651.184 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWNS
lxc-start alpine 20230412021651.184 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWPID
lxc-start alpine 20230412021651.184 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWUTS
lxc-start alpine 20230412021651.184 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWIPC
lxc-start alpine 20230412021651.184 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWNET
lxc-start alpine 20230412021651.184 INFO     start - start.c:lxc_spawn:1765 - Cloned CLONE_NEWCGROUP
lxc-start alpine 20230412021651.184 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved mnt namespace via fd 17 and stashed path as mnt:/proc/3238/fd/17
lxc-start alpine 20230412021651.184 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved pid namespace via fd 18 and stashed path as pid:/proc/3238/fd/18
lxc-start alpine 20230412021651.184 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved uts namespace via fd 19 and stashed path as uts:/proc/3238/fd/19
lxc-start alpine 20230412021651.184 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved ipc namespace via fd 20 and stashed path as ipc:/proc/3238/fd/20
lxc-start alpine 20230412021651.184 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved net namespace via fd 21 and stashed path as net:/proc/3238/fd/21
lxc-start alpine 20230412021651.184 DEBUG    start - start.c:lxc_try_preserve_namespace:139 - Preserved cgroup namespace via fd 22 and stashed path as cgroup:/proc/3238/fd/22
lxc-start alpine 20230412021651.185 INFO     cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits:2831 - Limits for the unified cgroup hierarchy have been setup
lxc-start alpine 20230412021651.186 DEBUG    conf - conf.c:lxc_mount_rootfs:1432 - Mounted rootfs "/srv/lxc/alpine/rootfs" onto "/usr/lib/lxc/rootfs" with options "(null)"
lxc-start alpine 20230412021651.186 INFO     conf - conf.c:setup_utsname:875 - Set hostname to "alpine"
lxc-start alpine 20230412021651.186 DEBUG    network - network.c:lxc_network_setup_in_child_namespaces_common:3948 - Network device "lo" has been setup
lxc-start alpine 20230412021651.186 INFO     network - network.c:lxc_setup_network_in_child_namespaces:4005 - Finished setting up network devices with caller assigned names
lxc-start alpine 20230412021651.186 INFO     conf - conf.c:mount_autodev:1215 - Preparing "/dev"
lxc-start alpine 20230412021651.187 INFO     conf - conf.c:mount_autodev:1276 - Prepared "/dev"
lxc-start alpine 20230412021651.188 DEBUG    conf - conf.c:lxc_mount_auto_mounts:735 - Invalid argument - Tried to ensure procfs is unmounted
lxc-start alpine 20230412021651.189 DEBUG    conf - conf.c:lxc_mount_auto_mounts:758 - Invalid argument - Tried to ensure sysfs is unmounted
lxc-start alpine 20230412021651.190 DEBUG    conf - conf.c:mount_entry:2412 - Remounting "/sys/fs/fuse/connections" on "/usr/lib/lxc/rootfs/sys/fs/fuse/connections" to respect bind or remount options
lxc-start alpine 20230412021651.190 DEBUG    conf - conf.c:mount_entry:2431 - Flags for "/sys/fs/fuse/connections" were 1070, required extra flags are 14
lxc-start alpine 20230412021651.190 DEBUG    conf - conf.c:mount_entry:2475 - Mounted "/sys/fs/fuse/connections" on "/usr/lib/lxc/rootfs/sys/fs/fuse/connections" with filesystem type "none"
lxc-start alpine 20230412021651.191 DEBUG    cgfsng - cgroups/cgfsng.c:__cgroupfs_mount:1541 - Mounted cgroup filesystem cgroup2 onto 19((null))
lxc-start alpine 20230412021651.191 INFO     conf - conf.c:lxc_fill_autodev:1313 - Populating "/dev"
lxc-start alpine 20230412021651.191 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "full"
lxc-start alpine 20230412021651.191 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "null"
lxc-start alpine 20230412021651.191 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "random"
lxc-start alpine 20230412021651.191 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "tty"
lxc-start alpine 20230412021651.191 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "urandom"
lxc-start alpine 20230412021651.191 DEBUG    conf - conf.c:lxc_fill_autodev:1322 - Created device node "zero"
lxc-start alpine 20230412021651.191 INFO     conf - conf.c:lxc_fill_autodev:1401 - Populated "/dev"
lxc-start alpine 20230412021651.191 INFO     conf - conf.c:lxc_transient_proc:3771 - Caller's PID is 1; /proc/self points to 1
lxc-start alpine 20230412021651.191 DEBUG    conf - conf.c:lxc_setup_devpts_child:1747 - Attached detached devpts mount 20 to 18/pts
lxc-start alpine 20230412021651.191 DEBUG    conf - conf.c:lxc_setup_devpts_child:1833 - Created "/dev/ptmx" file as bind mount target
lxc-start alpine 20230412021651.192 DEBUG    conf - conf.c:lxc_setup_devpts_child:1840 - Bind mounted "/dev/pts/ptmx" to "/dev/ptmx"
lxc-start alpine 20230412021651.192 DEBUG    conf - conf.c:lxc_allocate_ttys:1101 - Created tty with ptx fd 22 and pty fd 23 and index 1
lxc-start alpine 20230412021651.192 DEBUG    conf - conf.c:lxc_allocate_ttys:1101 - Created tty with ptx fd 24 and pty fd 25 and index 2
lxc-start alpine 20230412021651.193 DEBUG    conf - conf.c:lxc_allocate_ttys:1101 - Created tty with ptx fd 26 and pty fd 27 and index 3
lxc-start alpine 20230412021651.193 DEBUG    conf - conf.c:lxc_allocate_ttys:1101 - Created tty with ptx fd 28 and pty fd 29 and index 4
lxc-start alpine 20230412021651.193 INFO     conf - conf.c:lxc_allocate_ttys:1106 - Finished creating 4 tty devices
lxc-start alpine 20230412021651.193 DEBUG    conf - conf.c:lxc_setup_ttys:1028 - Bind mounted "" onto "/dev/lxc/tty1"
lxc-start alpine 20230412021651.193 DEBUG    conf - conf.c:lxc_setup_ttys:1028 - Bind mounted "" onto "/dev/lxc/tty2"
lxc-start alpine 20230412021651.193 DEBUG    conf - conf.c:lxc_setup_ttys:1028 - Bind mounted "" onto "/dev/lxc/tty3"
lxc-start alpine 20230412021651.193 DEBUG    conf - conf.c:lxc_setup_ttys:1028 - Bind mounted "" onto "/dev/lxc/tty4"
lxc-start alpine 20230412021651.193 INFO     conf - conf.c:lxc_setup_ttys:1072 - Finished setting up 4 /dev/tty<N> device(s)
lxc-start alpine 20230412021651.194 INFO     conf - conf.c:setup_personality:1913 - Set personality to "0lx8"
lxc-start alpine 20230412021651.194 DEBUG    conf - conf.c:capabilities_deny:3196 - Dropped mac_admin (33) capability
lxc-start alpine 20230412021651.194 DEBUG    conf - conf.c:capabilities_deny:3196 - Dropped mac_override (32) capability
lxc-start alpine 20230412021651.194 DEBUG    conf - conf.c:capabilities_deny:3196 - Dropped sys_time (25) capability
lxc-start alpine 20230412021651.194 DEBUG    conf - conf.c:capabilities_deny:3196 - Dropped sys_module (16) capability
lxc-start alpine 20230412021651.194 DEBUG    conf - conf.c:capabilities_deny:3196 - Dropped sys_rawio (17) capability
lxc-start alpine 20230412021651.194 DEBUG    conf - conf.c:capabilities_deny:3199 - Capabilities have been setup
lxc-start alpine 20230412021651.195 NOTICE   conf - conf.c:lxc_setup:4464 - The container "alpine" is set up
lxc-start alpine 20230412021651.195 DEBUG    terminal - terminal.c:lxc_terminal_peer_default:702 - Using terminal "/dev/tty" as proxy
lxc-start alpine 20230412021651.196 DEBUG    terminal - terminal.c:lxc_terminal_winsz:59 - Set window size to 0 columns and 0 rows
lxc-start alpine 20230412021651.196 NOTICE   utils - utils.c:lxc_drop_groups:1365 - Dropped supplimentary groups
lxc-start alpine 20230412021651.196 NOTICE   start - start.c:start:2162 - Exec'ing "/sbin/init"
lxc-start alpine 20230412021651.203 NOTICE   start - start.c:post_start:2173 - Started "/sbin/init" with pid "3239"
lxc-start alpine 20230412021651.248 DEBUG    start - start.c:signal_handler:467 - Container init process 3239 exited
lxc-start alpine 20230412021651.249 DEBUG    start - start.c:__lxc_start:2115 - UNSUPPORTED(4) - Container "alpine" init exited
lxc-start alpine 20230412021651.250 INFO     error - error.c:lxc_error_set_and_log:34 - Child <3239> ended on signal UNSUPPORTED(4)
lxc-start alpine 20230412021651.250 DEBUG    network - network.c:lxc_delete_network:4159 - Deleted network devices

The result of lxc-checkconfig is as followed.

root@OpenWrt:/# lxc-checkconfig 
LXC version 4.0.12
--- 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 namespace: enabled

Cgroup v1 mount points: 


Cgroup v2 mount points: 
/sys/fs/cgroup

Cgroup v1 systemd controller: missing
Cgroup v1 freezer controller: missing
Cgroup ns_cgroup: required
Cgroup device: missing
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

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

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

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

My cpu is armv7l but it doesn't support hard float.
So the armhf container image can't be run.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.