-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rancher - use vz instead of qemu on M3 macOS >=13.3 #78
Conversation
lib/utils/arch.sh
Outdated
if [[ "$hw_model" == *"M3"* ]]; then | ||
return 0 # This is an M3 Mac. | ||
else | ||
return 1 # This is not an M3 Mac. | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could just be.
if [[ "$hw_model" == *"M3"* ]]; then | |
return 0 # This is an M3 Mac. | |
else | |
return 1 # This is not an M3 Mac. | |
fi | |
[[ "$hw_model" == *"M3"* ]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah nice, fixed: 1bf73db
@@ -120,6 +133,18 @@ function ih::setup::core.rancher::install() { | |||
fi | |||
fi | |||
|
|||
# Use vz (requires macOS >=13.3) instead of qemu on M3 macs to resolve issues. | |||
# More details: https://github.com/lima-vm/lima/issues/1996 | |||
if ih::arch::is_m3_mac; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Planning to only make this switch for m3 mac users for now, since vz is still "experimental" according to the docs. I think a few of the platform team people are going to try using it on non-M3 macs and see if it breaks anything.
@mabel-luo confirmed this fix worked for her. |
Currently rancher 1.12.0 has a known issue causing m3 macs not to work with qemu:
@mabel-luo recently had to switch from qemu to vz manually after encountering this issue: rancher-sandbox/rancher-desktop#5943 (comment)
This PR automatically switches the development profile from qemu to vz if the user is on at least macOS 13.3 and an M3 mac.