Open johnklehm opened 2 years ago
It looks like this is a limitation of qemu when using the hvf
(Apple's Hypervisor Framework) accelerator to run at native speed.
There is a lot of background information at https://github.com/utmapp/UTM/issues/3180
TL;DR:
accel=hvf
is not implemented (patch not accepted upstream)Tasks:
Good to know what the root cause is - although it actually means that running on e.g. a Mac Studio with 20 cores and e.g. assigning 14 Cores for containerized workloads does not work. Is there any other solution for this?
Is there any other solution for this?
Unfortunately I don't see one right now. I'm not following the qemu mailing list, but it looks like the discussions about these things are somewhat contentious. 😞
I hope that one day we can take a look at using the Apple virtual machine framework as a configurable alternative to qemu, but I have no idea how much work this will be.
I just started to download UTM and spawn an x86_64 emulated VM on Linux basis with 32 GB memory and 12 Cores - so far so good
@rak-phillip we should have a separate ticket to have a UI hard limit with a tool tip for this. "We know you have 24 CPUs but based on the VM limitations, it'll be set to 8." or something.
The QEMU issue to track GICv3 support which would enable -smp > 8 is this: https://gitlab.com/qemu-project/qemu/-/issues/743. I would appreciate Tested-by / Reviewed-by tags on the mailing list to push it forward :).
Actual Behavior
If I request 9 cores on the Kubernetes settings menu Rancher Desktop fails to start the cluster. The culprit seems to be found when looking at ha.stderr.log:
Hoping we can get the cpu slider dealio to restrict the number of cpus to be the lesser of either the available core count or whatever the max supported by qemu is.
Steps to Reproduce
Result
The culprit seems to be found when looking at ha.stderr.log:
Full ha.stderr.log:
Hoping we can get the cpu slider dealio to restrict the number of cpus to be the lesser of either the available core count or whatever the max supported by qemu is.
Expected Behavior
For the cluster to restart with the settings I specified. For the GUI to only allow me to set a valid configuration.
Additional Information
M1 Pro (10 cores)
Rancher Desktop Version
1.3.0
Rancher Desktop K8s Version
1.23.6
Which container runtime are you using?
containerd (nerdctl)
What operating system are you using?
macOS
Operating System / Build Version
ProductName: macOS ProductVersion: 12.3.1 BuildVersion: 21E258
What CPU architecture are you using?
arm64 (Apple Silicon)
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response