I amaged to expand the filesystem by getting another APU and a mSATA <-> USB board. Now to the original task of getting python and some libraries working. I followed the setup instructions at the given LXC tutorial. There were some install errors:
pkg_hash_check_unresolved: cannot find dependency libiwinfo20210430 for luci-mod-status
but assuming LUCI is irrelevant for this project, I decided to just ignore this. Then I tried checking the config as the tutorial instructed:
root@OpenWrt:~# lxc-checkconfig
LXC version 4.0.5
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
--- Control groups ---
Cgroups: enabled
Cgroup v1 mount points:
Cgroup v2 mount points:
/sys/fs/cgroup
Cgroup v1 systemd controller: missing
Cgroup v1 freezer controller: missing
Cgroup namespace: 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, not loaded
Vlan: enabled, not loaded
Bridges: enabled, not loaded
Advanced netfilter: enabled, not loaded
CONFIG_NF_NAT_IPV4: missing
CONFIG_NF_NAT_IPV6: missing
CONFIG_IP_NF_TARGET_MASQUERADE: missing
CONFIG_IP6_NF_TARGET_MASQUERADE: missing
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled, not loaded
CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled, loaded
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: missing
CONFIG_INET_DIAG: missing
CONFIG_PACKET_DIAG: missing
CONFIG_NETLINK_DIAG: enabled
File capabilities:
Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig
The config differs from the tutorial, but the tutorial is concerned with arm stuff, so once again I ignore things that I don't understand, and just check if it could work:
lxc-create --name myLMS --template download -- --dist debian --release buster --arch x86_64
Failed to create lock for myLMS
lxc-create: myLMS: tools/lxc_create.c: main: 260 Failed to create lxc container
... Probably wrong name for arch parameter, trying again with different (that I found on the internet)
root@OpenWrt:~# lxc-create --name myLMS --template download -- --dist debian --release buster --arch amd64
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver
lxc-create: myLMS: lxccontainer.c: create_run_template: 1616 Failed to create container from template
lxc-create: myLMS: tools/lxc_create.c: main: 319 Failed to create container myLMS
I also tried the web UI, but it coudln't set up the container anyways, so I assume something to be very much not configured correctly.
EDIT: Nevermind, just used gui and the other mirror to get the container
EDIT2:
The container won't start via LUCI nor via terminal. The log output I get:
lxc-start debian 20210630111452.893 ERROR cgfsng - cgroups/cgfsng.c:cg_legacy_set_data:2824 - No such file or directory - Failed to setup limits for the " devices" controller. The controller seems to be unused by "cgfsng" cgroup driver or not enabled on the cgroup hierarchy
lxc-start debian 20210630111452.893 ERROR cgfsng - cgroups/cgfsng.c:cgfsng_setup_limits_legacy:2873 - No such file or directory - Failed to set "devices.d eny" to "a"
lxc-start debian 20210630111452.893 ERROR start - start.c:lxc_spawn:1828 - Failed to setup legacy device cgroup controller limits
lxc-start debian 20210630111452.893 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:860 - Received container state "ABORTING" instead of "RUN NING"
lxc-start debian 20210630111452.894 ERROR lxc_start - tools/lxc_start.c:main:308 - The container failed to start
lxc-start debian 20210630111452.894 ERROR lxc_start - tools/lxc_start.c:main:311 - To get more details, run the container in foreground mode
lxc-start debian 20210630111452.894 ERROR lxc_start - tools/lxc_start.c:main:314 - Additional information can be obtained by setting the --logfile and --l ogpriority options
lxc-start debian 20210630111452.895 ERROR start - start.c:__lxc_start:1999 - Failed to spawn container "debian"
command used:
lxc-start -n debian --logfile lxclog.log --logpriority ERROR