https://rancher.com/ logo
Title
d

delightful-author-23241

03/15/2023, 11:04 PM
Hello everyone! I may be having a very edge-casey issue. I tried setting up k3s on Asahi Linux on an M1 Mac for the fun of it, and I seem to be getting the following issue across the board:
Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image "rancher/mirrored-pause:3.6": failed to pull image "rancher/mirrored-pause:3.6": failed to pull and unpack image "<http://docker.io/rancher/mirrored-pause:3.6|docker.io/rancher/mirrored-pause:3.6>": failed to extract layer sha256:c640e628658788773e4478ae837822c9bc7db5b512442f54286a98ad50f88fd4: mount callback failed on /var/lib/rancher/k3s/agent/containerd/tmpmounts/containerd-mount3367908043: signal: segmentation fault: : unknown
Segmentation fault always seems like there is quite something going wrong, and I couldn't find anything related to this when googling (additionally, I have no idea what I'm doing when it comes to k8s), so I thought maybe you people can give me some guidance here. Or is this more of an issue with containerd itself?
c

creamy-pencil-82913

03/15/2023, 11:11 PM
Unfortunately if that IS the case I’m not sure there’s much you can do about it unless Asahi offers a kernel with 4k pages.
d

delightful-author-23241

03/15/2023, 11:16 PM
This was the closest issue I could find as well. However, running
getconf PAGESIZE
returns
16384
for me, but it's certainly not 4k. On the Asahi project page it says "The Asahi Linux kernel is compiled to use 16K pages. This both performs better, and is required with our kernel branch right now in order to work properly with the M1’s IOMMUs. Unfortunately, some Linux software has problems running with 16K pages", so yeah, that's probably it... I take it there's not much I can do about it then?
c

creamy-pencil-82913

03/15/2023, 11:18 PM
ah yeah. anything not 4k will blow up.
I’m not sure if theres any way for you to use the amd64 binary instead?
I don’t know much about Linux on M1 so I’m not sure if that’s a thing thats possible, or if it only works on OS X?
d

delightful-author-23241

03/15/2023, 11:21 PM
I think it's possible to get it to work on Asahi as well. I may give this a try. Would this mean that I am restricted to running all my containers on amd64 as well? If so, this would be a big hit on performance
c

creamy-pencil-82913

03/15/2023, 11:24 PM
well, some number of the binaries in arm64 container images will probably crash for the same reason. Most stuff expects a 4k page size since that’s the standard for most distros.
d

delightful-author-23241

03/15/2023, 11:29 PM
dang, that's a bummer. Looks like Linux on Apple Silicon still has some ways to go. Thanks for the quick help though! Much appreciated