I am attempting to install k3s on the Rasbian image from BPi.
Linux node1 4.9.241-BPI-M5 #2 SMP PREEMPT Mon Jun 21 16:29:40 HKT 2021 aarch64 GNU/Linux
I’m having issues enabling or ensuring that the cgroup_v2 are running properly
Oct 09 15:47:34 node1 k3s: time="2022-10-09T15:47:34+01:00" level=fatal msg="failed to find cpu cgroup (v2)" Oct 09 15:47:34 node1 systemd: k3s-agent.service: Main process exited, code=exited, status=1/FAILURE
I’ve made the following changes to my /boot/cmdline.txt
cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
Attempted to install the k3s agent:
Command run as root via
sudo su - :
curl -sfL https://get.k3s.io | K3S_TOKEN="MyTokenFromServer" K3S_URL="https://[Server IP]:6443" K3S_NODE_NAME="node1" sh -
I’m wondering if there is a stark difference between the official RaspberyPi Rasbian OS and the Banana Pi Rasbian OS in terms of the kernel and how the cgroups are managed?
According to my
stat -fc %T /sys/fs/cgroup/ and
[ $(stat -fc %T /sys/fs/cgroup/) = "cgroup2fs" ] && echo "unified" || ( [ -e /sys/fs/cgroup/unified/ ] && echo "hybrid" || echo "legacy") I am running cgroupsfs and unified respectively. Indicating that the cgroups v2 is running properly.