You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you provide some useful info, such as whether it's root? And the output of lxc-checkconfigor adb logcat -s lxc.
Actually I think I unable to install properly.. if you guide how to install then it will be great..
Now I am using Termux lxc but cgroup2 not supported so I want to use your lxc but don't understand installation process.. how to install or unpack to Termux
If you just want to use it in Termux, you can unpack it to /data/share. The prefix is set during compilation. Or you can compile it yourself in Termux and use it's own prefix.
If you just want to use it in Termux, you can unpack it to /data/share. The prefix is set during compilation. Or you can compile it yourself in Termux and use it's own prefix.
Ok i will try to build myself.. but never compile lxc .. i checked meson option.. it's complex..
If you provide meson build configure setup it would be great
If you just want to use it in Termux, you can unpack it to /data/share. The prefix is set during compilation. Or you can compile it yourself in Termux and use it's own prefix.
Ok i will try to build myself.. but never compile lxc .. i checked meson option.. it's complex..
If you provide meson build configure setup it would be great
Thank you 😊
You can refer to ci:main.yml or just use the one pasted below:
To lower the barrier to compilation and rely entirely on Android's built-in libraries, we made some sacrifices for seccomp. If you're not familiar with libminijail's seccomp configuration, you can disable -Dseccomp-minijail and enable -Dseccomp instead. Note that they are mutually exclusive.
Hi, @Saikatsaha1996
If you just want to use it in Termux, you can unpack it to /data/share. The prefix is set during compilation. Or you can compile it yourself in Termux and use it's own prefix.
Ok i will try to build myself.. but never compile lxc .. i checked meson option.. it's complex..
If you provide meson build configure setup it would be great
Thank you 😊
You can refer to ci:main.yml or just use the one pasted below:
To lower the barrier to compilation and rely entirely on Android's built-in libraries, we made some sacrifices for seccomp. If you're not familiar with libminijail's seccomp configuration, you can disable -Dseccomp-minijail and enable -Dseccomp instead. Note that they are mutually exclusive.
Always getting this error unable to start contaner
~/Termux-LXC-Guide $ sudo cat lxc.log lxc-start ubuntu 20260503160836.807 TRACE parse - ../src/lxc/parse.c:lxc_file_for_each_line_mmap:62 - MFD_NOEXEC_SEAL may unsupported, using MFD_CLOEXEC only
lxc-start ubuntu 20260503160836.808 TRACE commands - ../src/lxc/commands.c:lxc_server_init:2138 - Created abstract unix socket "/data/user/0/com.termux/files/usr/var/lib/lxc/ubuntu/command"
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_init_handler:956 - Unix domain socket 5 for command server is ready
lxc-start ubuntu 20260503160836.808 WARN start - ../src/lxc/start.c:lxc_check_inherited:367 - Inherited fd 3
lxc-start ubuntu 20260503160836.808 WARN start - ../src/lxc/start.c:lxc_check_inherited:367 - Inherited fd 6
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_start:2431 - Doing lxc_start
lxc-start ubuntu 20260503160836.808 INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver nop
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_init:979 - Initialized LSM
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:521 - Set container state to STARTING
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:524 - No state clients registered
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_init:985 - Set container state to "STARTING"
lxc-start ubuntu 20260503160836.809 TRACE start - ../src/lxc/start.c:lxc_init:1041 - Set environment variables
lxc-start ubuntu 20260503160836.809 TRACE start - ../src/lxc/start.c:lxc_init:1046 - Ran pre-start hooks
lxc-start ubuntu 20260503160836.809 TRACE start - ../src/lxc/start.c:setup_signal_fd:408 - Created signal file descriptor 9
lxc-start ubuntu 20260503160836.809 TRACE start - ../src/lxc/start.c:lxc_init:1059 - Set up signal fd
lxc-start ubuntu 20260503160836.810 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_hierarchy_add:331 - Adding cgroup hierarchy mounted at and base cgroup (null)
lxc-start ubuntu 20260503160836.810 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_hierarchy_add:333 - The hierarchy contains the cpu controller
lxc-start ubuntu 20260503160836.810 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_hierarchy_add:333 - The hierarchy contains the io controller
lxc-start ubuntu 20260503160836.810 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_hierarchy_add:333 - The hierarchy contains the pids controller
lxc-start ubuntu 20260503160836.810 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_hierarchy_add:333 - The hierarchy contains the rdma controller
lxc-start ubuntu 20260503160836.810 TRACE cgroup2_devices - ../src/lxc/cgroups/cgroup2_devices.c:bpf_program_load_kernel:335 - Loaded bpf program: func#0 @0
0: R1=ctx(id=0,off=0,imm=0) R10=fp0
0: (61) r2 = *(u32 *)(r1 +0)
1: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0
1: (54) w2 &= 65535
2: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R10=fp0
2: (61) r3 = *(u32 *)(r1 +0)
3: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R3_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0
3: (74) w3 >>= 16
4: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R3_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R10=fp0
4: (61) r4 = *(u32 *)(r1 +4)
5: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R3_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R4_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0
5: (61) r5 = *(u32 *)(r1 +8)
6: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R3_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R4_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R5_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0
6: (b7) r0 = 1
7: R0_w=inv1 R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R3_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R4_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R5_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0
7: (95) exit
processed 8 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
lxc-start ubuntu 20260503160836.811 TRACE cgroup2_devices - ../src/lxc/cgroups/cgroup2_devices.c:bpf_devices_cgroup_supported:553 - The bpf device cgroup is supported
lxc-start ubuntu 20260503160836.811 TRACE cgroup - ../src/lxc/cgroups/cgroup.c:cgroup_init:41 - Initialized cgroup driver cgfsng
lxc-start ubuntu 20260503160836.811 TRACE cgroup - ../src/lxc/cgroups/cgroup.c:cgroup_init:44 - Unified cgroup layout
lxc-start ubuntu 20260503160836.811 TRACE start - ../src/lxc/start.c:lxc_init:1066 - Initialized cgroup driver
lxc-start ubuntu 20260503160836.811 TRACE start - ../src/lxc/start.c:lxc_init:1073 - Read seccomp policy
lxc-start ubuntu 20260503160836.811 TRACE start - ../src/lxc/start.c:lxc_init:1080 - Initialized LSM
lxc-start ubuntu 20260503160836.811 INFO start - ../src/lxc/start.c:lxc_init:1082 - Container "ubuntu" is initialized
lxc-start ubuntu 20260503160836.811 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:487 - Created 12(lxc.monitor.ubuntu) cgroup
lxc-start ubuntu 20260503160836.811 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:501 - Opened newly created cgroup lxc.monitor.ubuntu as 13
lxc-start ubuntu 20260503160836.811 INFO cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_monitor_create:1442 - The monitor process uses "lxc.monitor.ubuntu" as cgroup
lxc-start ubuntu 20260503160836.821 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_monitor_enter:1592 - Moved monitor (21777) into cgroup 13
lxc-start ubuntu 20260503160836.821 DEBUG storage - ../src/lxc/storage/storage.c:get_storage_by_name:209 - Detected rootfs type "dir"
lxc-start ubuntu 20260503160836.821 TRACE conf - ../src/lxc/conf.c:lxc_rootfs_init:387 - Pinned rootfs 15(.lxc_keep)
lxc-start ubuntu 20260503160836.821 TRACE conf - ../src/lxc/conf.c:lxc_rootfs_init:403 - Unlinked pinned file 14(.lxc_keep)
lxc-start ubuntu 20260503160836.822 TRACE sync - ../src/lxc/sync.c:lxc_sync_init:139 - Initialized synchronization infrastructure
lxc-start ubuntu 20260503160836.822 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:487 - Created 12(lxc.payload.ubuntu) cgroup
lxc-start ubuntu 20260503160836.822 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:501 - Opened newly created cgroup lxc.payload.ubuntu as 19
lxc-start ubuntu 20260503160836.822 INFO cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_payload_create:1551 - The container process uses "lxc.payload.ubuntu" as inner and "lxc.payload.ubuntu" as limit cgroup
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:521 - Set container state to ABORTING
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:524 - No state clients registered
lxc-start ubuntu 20260503160836.822 ERROR start - ../src/lxc/start.c:__lxc_start:2317 - Failed to spawn container "ubuntu"
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:521 - Set container state to ABORTING
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:524 - No state clients registered
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:521 - Set container state to STOPPING
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:524 - No state clients registered
lxc-start ubuntu 20260503160836.823 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_tree_remove:359 - Removed cgroup tree 12(lxc.payload.ubuntu)
lxc-start ubuntu 20260503160836.823 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:487 - Reusing 12(lxc.pivot) cgroup
lxc-start ubuntu 20260503160836.823 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:501 - Opened cgroup lxc.pivot as 14
lxc-start ubuntu 20260503160836.824 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_monitor_destroy:667 - Removed cgroup tree 12(lxc.monitor.ubuntu)
lxc-start ubuntu 20260503160836.824 TRACE start - ../src/lxc/start.c:lxc_end:1164 - Closed command socket
lxc-start ubuntu 20260503160836.824 TRACE start - ../src/lxc/start.c:lxc_end:1175 - Set container state to "STOPPED"
lxc-start ubuntu 20260503160836.824 INFO utils - ../src/lxc/utils.c:run_script_argv:588 - Executing script "/data/data/com.termux/files/home/Termux-LXC-Guide/src/required-lxc-configuration/scripts/utils/utils.post-stop.sh" for container "ubuntu"
lxc-start ubuntu 20260503160836.824 TRACE utils - ../src/lxc/utils.c:run_script_argv:631 - Set environment variable: LXC_HOOK_TYPE=post-stop
lxc-start ubuntu 20260503160836.824 TRACE utils - ../src/lxc/utils.c:run_script_argv:636 - Set environment variable: LXC_HOOK_SECTION=lxc
lxc-start ubuntu 20260503160836.881 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:307 - The container failed to start
lxc-start ubuntu 20260503160836.881 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:313 - Additional information can be obtained by setting the --logfile and --logpriority options
Hi, @Saikatsaha1996
If you just want to use it in Termux, you can unpack it to /data/share. The prefix is set during compilation. Or you can compile it yourself in Termux and use it's own prefix.
Ok i will try to build myself.. but never compile lxc .. i checked meson option.. it's complex..
If you provide meson build configure setup it would be great
Thank you 😊
You can refer to ci:main.yml or just use the one pasted below:
To lower the barrier to compilation and rely entirely on Android's built-in libraries, we made some sacrifices for seccomp. If you're not familiar with libminijail's seccomp configuration, you can disable -Dseccomp-minijail and enable -Dseccomp instead. Note that they are mutually exclusive.
Always getting this error unable to start contaner
~/Termux-LXC-Guide $ sudo cat lxc.log lxc-start ubuntu 20260503160836.807 TRACE parse - ../src/lxc/parse.c:lxc_file_for_each_line_mmap:62 - MFD_NOEXEC_SEAL may unsupported, using MFD_CLOEXEC only
lxc-start ubuntu 20260503160836.808 TRACE commands - ../src/lxc/commands.c:lxc_server_init:2138 - Created abstract unix socket "/data/user/0/com.termux/files/usr/var/lib/lxc/ubuntu/command"
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_init_handler:956 - Unix domain socket 5 for command server is ready
lxc-start ubuntu 20260503160836.808 WARN start - ../src/lxc/start.c:lxc_check_inherited:367 - Inherited fd 3
lxc-start ubuntu 20260503160836.808 WARN start - ../src/lxc/start.c:lxc_check_inherited:367 - Inherited fd 6
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_start:2431 - Doing lxc_start
lxc-start ubuntu 20260503160836.808 INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver nop
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_init:979 - Initialized LSM
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:521 - Set container state to STARTING
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:524 - No state clients registered
lxc-start ubuntu 20260503160836.808 TRACE start - ../src/lxc/start.c:lxc_init:985 - Set container state to "STARTING"
lxc-start ubuntu 20260503160836.809 TRACE start - ../src/lxc/start.c:lxc_init:1041 - Set environment variables
lxc-start ubuntu 20260503160836.809 TRACE start - ../src/lxc/start.c:lxc_init:1046 - Ran pre-start hooks
lxc-start ubuntu 20260503160836.809 TRACE start - ../src/lxc/start.c:setup_signal_fd:408 - Created signal file descriptor 9
lxc-start ubuntu 20260503160836.809 TRACE start - ../src/lxc/start.c:lxc_init:1059 - Set up signal fd
lxc-start ubuntu 20260503160836.810 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_hierarchy_add:331 - Adding cgroup hierarchy mounted at and base cgroup (null)
lxc-start ubuntu 20260503160836.810 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_hierarchy_add:333 - The hierarchy contains the cpu controller
lxc-start ubuntu 20260503160836.810 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_hierarchy_add:333 - The hierarchy contains the io controller
lxc-start ubuntu 20260503160836.810 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_hierarchy_add:333 - The hierarchy contains the pids controller
lxc-start ubuntu 20260503160836.810 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_hierarchy_add:333 - The hierarchy contains the rdma controller
lxc-start ubuntu 20260503160836.810 TRACE cgroup2_devices - ../src/lxc/cgroups/cgroup2_devices.c:bpf_program_load_kernel:335 - Loaded bpf program: func#0 @0
0: R1=ctx(id=0,off=0,imm=0) R10=fp0
0: (61) r2 = *(u32 *)(r1 +0)
1: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0
1: (54) w2 &= 65535
2: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R10=fp0
2: (61) r3 = *(u32 *)(r1 +0)
3: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R3_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0
3: (74) w3 >>= 16
4: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R3_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R10=fp0
4: (61) r4 = *(u32 *)(r1 +4)
5: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R3_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R4_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0
5: (61) r5 = *(u32 *)(r1 +8)
6: R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R3_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R4_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R5_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0
6: (b7) r0 = 1
7: R0_w=inv1 R1=ctx(id=0,off=0,imm=0) R2_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R3_w=inv(id=0,umax_value=65535,var_off=(0x0; 0xffff)) R4_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R5_w=inv(id=0,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R10=fp0
7: (95) exit
processed 8 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
lxc-start ubuntu 20260503160836.811 TRACE cgroup2_devices - ../src/lxc/cgroups/cgroup2_devices.c:bpf_devices_cgroup_supported:553 - The bpf device cgroup is supported
lxc-start ubuntu 20260503160836.811 TRACE cgroup - ../src/lxc/cgroups/cgroup.c:cgroup_init:41 - Initialized cgroup driver cgfsng
lxc-start ubuntu 20260503160836.811 TRACE cgroup - ../src/lxc/cgroups/cgroup.c:cgroup_init:44 - Unified cgroup layout
lxc-start ubuntu 20260503160836.811 TRACE start - ../src/lxc/start.c:lxc_init:1066 - Initialized cgroup driver
lxc-start ubuntu 20260503160836.811 TRACE start - ../src/lxc/start.c:lxc_init:1073 - Read seccomp policy
lxc-start ubuntu 20260503160836.811 TRACE start - ../src/lxc/start.c:lxc_init:1080 - Initialized LSM
lxc-start ubuntu 20260503160836.811 INFO start - ../src/lxc/start.c:lxc_init:1082 - Container "ubuntu" is initialized
lxc-start ubuntu 20260503160836.811 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:487 - Created 12(lxc.monitor.ubuntu) cgroup
lxc-start ubuntu 20260503160836.811 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:501 - Opened newly created cgroup lxc.monitor.ubuntu as 13
lxc-start ubuntu 20260503160836.811 INFO cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_monitor_create:1442 - The monitor process uses "lxc.monitor.ubuntu" as cgroup
lxc-start ubuntu 20260503160836.821 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_monitor_enter:1592 - Moved monitor (21777) into cgroup 13
lxc-start ubuntu 20260503160836.821 DEBUG storage - ../src/lxc/storage/storage.c:get_storage_by_name:209 - Detected rootfs type "dir"
lxc-start ubuntu 20260503160836.821 TRACE conf - ../src/lxc/conf.c:lxc_rootfs_init:387 - Pinned rootfs 15(.lxc_keep)
lxc-start ubuntu 20260503160836.821 TRACE conf - ../src/lxc/conf.c:lxc_rootfs_init:403 - Unlinked pinned file 14(.lxc_keep)
lxc-start ubuntu 20260503160836.822 TRACE sync - ../src/lxc/sync.c:lxc_sync_init:139 - Initialized synchronization infrastructure
lxc-start ubuntu 20260503160836.822 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:487 - Created 12(lxc.payload.ubuntu) cgroup
lxc-start ubuntu 20260503160836.822 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:501 - Opened newly created cgroup lxc.payload.ubuntu as 19
lxc-start ubuntu 20260503160836.822 INFO cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_payload_create:1551 - The container process uses "lxc.payload.ubuntu" as inner and "lxc.payload.ubuntu" as limit cgroup
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:521 - Set container state to ABORTING
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:524 - No state clients registered
lxc-start ubuntu 20260503160836.822 ERROR start - ../src/lxc/start.c:__lxc_start:2317 - Failed to spawn container "ubuntu"
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:521 - Set container state to ABORTING
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:524 - No state clients registered
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:521 - Set container state to STOPPING
lxc-start ubuntu 20260503160836.822 TRACE start - ../src/lxc/start.c:lxc_serve_state_clients:524 - No state clients registered
lxc-start ubuntu 20260503160836.823 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgroup_tree_remove:359 - Removed cgroup tree 12(lxc.payload.ubuntu)
lxc-start ubuntu 20260503160836.823 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:487 - Reusing 12(lxc.pivot) cgroup
lxc-start ubuntu 20260503160836.823 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:__cgroup_tree_create:501 - Opened cgroup lxc.pivot as 14
lxc-start ubuntu 20260503160836.824 TRACE cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_monitor_destroy:667 - Removed cgroup tree 12(lxc.monitor.ubuntu)
lxc-start ubuntu 20260503160836.824 TRACE start - ../src/lxc/start.c:lxc_end:1164 - Closed command socket
lxc-start ubuntu 20260503160836.824 TRACE start - ../src/lxc/start.c:lxc_end:1175 - Set container state to "STOPPED"
lxc-start ubuntu 20260503160836.824 INFO utils - ../src/lxc/utils.c:run_script_argv:588 - Executing script "/data/data/com.termux/files/home/Termux-LXC-Guide/src/required-lxc-configuration/scripts/utils/utils.post-stop.sh" for container "ubuntu"
lxc-start ubuntu 20260503160836.824 TRACE utils - ../src/lxc/utils.c:run_script_argv:631 - Set environment variable: LXC_HOOK_TYPE=post-stop
lxc-start ubuntu 20260503160836.824 TRACE utils - ../src/lxc/utils.c:run_script_argv:636 - Set environment variable: LXC_HOOK_SECTION=lxc
lxc-start ubuntu 20260503160836.881 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:307 - The container failed to start
lxc-start ubuntu 20260503160836.881 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:313 - Additional information can be obtained by setting the --logfile and --logpriority options
Could you print out the current env? The logs aren't really helpful right now, and honestly, the upstream doesn't provide much help with the container spawn process either. Did you use the -F flag with lxc-start? Also, I noticed you're using Termux-LXC-Guide for the container setup, not that it makes much difference.
Is this the complete container config? I don't see the rootfs definition anywhere. Could you paste the full config and see if lxc.rootfs.path is there? :)
Activity
DreamConnected commentedon May 2, 2026
Can you provide some useful info, such as whether it's root? And the output of
lxc-checkconfigoradb logcat -s lxc.Saikatsaha1996 commentedon May 2, 2026
Actually I think I unable to install properly.. if you guide how to install then it will be great..
Now I am using Termux lxc but cgroup2 not supported so I want to use your lxc but don't understand installation process.. how to install or unpack to Termux
DreamConnected commentedon May 2, 2026
Hi, @Saikatsaha1996
If you just want to use it in Termux, you can unpack it to
/data/share. The prefix is set during compilation. Or you can compile it yourself in Termux and use it's own prefix.Saikatsaha1996 commentedon May 2, 2026
Ok i will try to build myself.. but never compile lxc .. i checked meson option.. it's complex..
If you provide meson build configure setup it would be great
Thank you 😊
DreamConnected commentedon May 2, 2026
You can refer to ci:
main.ymlor just use the one pasted below:To lower the barrier to compilation and rely entirely on Android's built-in libraries, we made some sacrifices for seccomp. If you're not familiar with libminijail's seccomp configuration, you can disable
-Dseccomp-minijailand enable-Dseccompinstead. Note that they are mutually exclusive.Saikatsaha1996 commentedon May 3, 2026
Always getting this error unable to start contaner
DreamConnected commentedon May 3, 2026
Could you print out the current env? The logs aren't really helpful right now, and honestly, the upstream doesn't provide much help with the container spawn process either. Did you use the
-Fflag withlxc-start? Also, I noticed you're usingTermux-LXC-Guidefor the container setup, not that it makes much difference.Saikatsaha1996 commentedon May 3, 2026
@DreamConnected i actually modified for cgroup2 only
https://github.com/Saikatsaha1996/Termux-LXC-Guide/tree/exp1
sudo lxc-start -F -n ubuntu -l DEBUG -o log.txt
DreamConnected commentedon May 3, 2026
Sorry for the late reply. I was sleeping from 0-8 o'clock.
rm log.txt, and change the log level to
TRACE, do lxc-start again then upload the logfile.DreamConnected commentedon Jun 13, 2026
Is this the complete container config? I don't see the rootfs definition anywhere. Could you paste the full config and see if
lxc.rootfs.pathis there? :)