kmesh-net / kmesh

High Performance ServiceMesh Data Plane Based on Programmable Kernel
https://kmesh.net
Apache License 2.0
397 stars 51 forks source link

Start kmesh failed on Mac m1 #588

Open Patrick0308 opened 1 month ago

Patrick0308 commented 1 month ago

What happened:

[main][~/projects/kmesh/deploy/helm]$ k logs kmesh-kvlpg -n kmesh-system
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --bpf-fs-path=\"/sys/fs/bpf\"" subsys=manager
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --cgroup2-path=\"/mnt/kmesh_cgroup2\"" subsys=manager
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --cni-etc-path=\"/etc/cni/net.d\"" subsys=manager
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --conflist-name=\"\"" subsys=manager
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --enable-bpf-log=\"true\"" subsys=manager
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --enable-bypass=\"false\"" subsys=manager
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --enable-mda=\"false\"" subsys=manager
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --enable-secret-manager=\"false\"" subsys=manager
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --help=\"false\"" subsys=manager
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --mode=\"workload\"" subsys=manager
time="2024-07-16T08:10:59Z" level=info msg="FLAG: --plugin-cni-chained=\"true\"" subsys=manager
Error: unexpected error detecting memory cgroup accounting: function not implemented
time="2024-07-16T08:10:59Z" level=error msg="unexpected error detecting memory cgroup accounting: function not implemented" subsys=main

What you expected to happen: Start successfully

How to reproduce it (as minimally and precisely as possible): Do those commands on mac with apple silicon

kind create cluster -n kmesh-cluster
istioctl install --set profile=ambient --skip-confirmation
git clone https://github.com/kmesh-net/kmesh.git
helm install kmesh ./deploy/helm -n kmesh-system --create-namespace

Anything else we need to know?:

Environment:

Okabe-Rintarou-0 commented 1 month ago

kmesh depends on cgroup

Patrick0308 commented 1 month ago

kmesh depends on cgroup

cgroup v1 ?

[main][~/projects/kmesh/deploy/helm]$ docker info |grep Cgroup
WARNING: daemon is not using the default seccomp profile
 Cgroup Driver: cgroupfs
 Cgroup Version: 2

My docker engine support cgroup v2.

Okabe-Rintarou-0 commented 1 month ago

Reproduce in my Mac M1 too. I suggest you using linux, like ubuntu 22.04, openEuler 23.03.

@hzxuzhonghu Do we only support linux now?

hzxuzhonghu commented 1 month ago

I think so, i am not sure anyone else tried with mac