This message was deleted.
# random
a
This message was deleted.
b
I haven't tried this myself (my system is still intel), but there's this: https://docs.rancherdesktop.io/ui/preferences/virtual-machine/emulation/#vz
i
yes! I've tried that, but it also fails. I always seem to get the error
ImagePullBackOff
because the kubernetes cluster seem to been configured to fetch arm64 images only.
b
Interesting.. I must have been slow and didn't see your note about enabling virtualization, I'll blame lack of coffee. I tried it on my personal system during a little downtime, and at least
docker run
works with amd64 images. RD is backed by lima, so perhaps it's possible to force it to start the VM as amd64 rather than arm64? https://docs.rancherdesktop.io/how-to-guides/provisioning-scripts/
i
Which processor are you using on the host? arm64 or amd64/x86?
b
arm. I wonder if it just isn't a thing that k8s supports.
i
how did you specifiy the docker run command?
b
docker run --rm -it <my amd64 only image>
๐Ÿ‘€ 1
i
just saw this: https://github.com/rancher-sandbox/rancher-desktop/discussions/1501 suggesting (if I understand it correctly) that it's supported at container runtime level, but not on k8s level
interesting! and you are sure that the image isn't arm compatible too?
Copy code
docker manifest inspect --verbose <image> | jq -r '.[].Descriptor.platform.architecture'
b
pretty sure, i'll check when back on my personal box. its one i built.
๐Ÿ‘ 1
i
thanks!
b
the
test
pod is the one I built. it has one platform (amd64/x86_64).
alpine
is
alpine:3
.
i
thatโ€™s intresting! this is what I get:
Copy code
~  rdctl shell
lima-rancher-desktop:/Users/paif$ uname -a
Linux lima-rancher-desktop 6.6.41-0-virt #1-Alpine SMP PREEMPT_DYNAMIC 2024-07-18 20:00:18 aarch64 Linux

โ˜  ~  kubectl get nodes
NAME                   STATUS   ROLES                  AGE    VERSION
lima-rancher-desktop   Ready    control-plane,master   2d6h   v1.30.3+k3s1

docker run --rm -it  janssenproject/config-api:1.0.9-1
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
however, container seems to start atleast
but I'm unable to pull e.g. the janssen amd64 by leaving out the platform, e.g.,:
docker pull janssenproject/config-api:1.0.9-1
I need to specify
docker pull --platform linux/amd64 janssenproject/config-api:1.0.9-1
Are you able to pull an amd64 image without specifying platform?
b
i was, yes.
on rancherdesktop 1.5.0 myself, for what it's worth.
i
oh, Im using 1.15.1
and you are using VZ + VZ Option (Rosetta support) ?
b
yes
i
hmm, I can't get my head around this..
Seems like we are doing same things but get different results
b
Is weird for sure. I can try 1.5.1 later too.
i
Thanks, please do that if you can
I will see if I can downgrade
which host OS are you running btw? Is it mac or something else? Thinking if it's a difference between mac M(1-3) chips (arm) and other arms
downloaded Version 1.5.0 (1.5.0) of Rancher Desktop now. However I cannot find any option to enable VZ and Rosette there.. How do you do it there? ๐Ÿ˜ฎ
b
macos 14.6.1, m2. click "preferences" in the lower left.
i
ah yeah exatly, but I didn't see that in version 1.5.0 I thought you used? ๐Ÿ™‚
b
that is weird. it definitely says 1.15.0 here.
i
Yeah, exactly. ๐Ÿ˜… Where did u see 1.5.0?
b
wait, i'm sorry! i meant 1.15.0
i
haha no worries ๐Ÿ˜„
b
sigh it's been a week
๐Ÿ˜„ 1
i
anyway, something is really strange. Same setup works for you, but not for me..
one last thing.. what happens if you run from inside rdctl shell:
Copy code
docker pull <http://ghcr.io/janssenproject/jans/auth-server:1.0.22-1|ghcr.io/janssenproject/jans/auth-server:1.0.22-1>
b
indeed. sometimes i find resetting the config entirely and starting over helps. but that has been on my intel system.
i
yeah, I've tried to wipe rancher desktop and reinstalling, but without success
b
no matching manifest.
but if i add
--platform linux/amd64
it works
i
ah yeah, same as me then
b
my test image i didn't specify the platform. but i did the pull from mac, not through rdctl shell. if it makes a difference[.
i
that can be different I think. Maybe you have the env
DOCKER_DEFAULT_PLATFORM=linux/amd64
specified?
b
mmmm, i don't think so? nope.
i
hmm, okay.. Strange
what if you pull that image from your host?
maybe it's related to your test image
b
it works.
i
O.o
Im very confused how you can get that to work