-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Lima not supporting vz in Mac - works when compiled manually #346006
Comments
Might this be related to the recent darwin PR improving tooling for building? I cannot for the life of me remember the PR, but I know its there somewhere |
I am a nix newbie, I can't figure out why the |
Let's recheck after #346043 lands... |
After #346043, all that will need to be done is adding |
i happened to stumble across this while looking for something completely unrelated, but i've been using Lima from nixpkgs with |
how? Just installed it again and it is on version 0.22.0, and I still get the same error: FATA[0000] vm driver 'vz' needs macOS 13 or later (Hint: try recompiling Lima if you are seeing this error on macOS 13) Anything special to do to get it working? |
Tried #354552 but it does not work. Apple SDK 11.3 is still used instead of Apple 15 as I tried to force. |
When #355729 appears in unstable I will test and close this issue |
It is working in [nix-shell:~]$ limactl --version
limactl version 1.0.1
[nix-shell:~]$ limactl list
NAME STATUS SSH VMTYPE ARCH CPUS MEMORY DISK DIR
test Stopped 127.0.0.1:0 vz aarch64 4 4GiB 100GiB ~/.lima/test
[nix-shell:~]$ limactl start test
...
INFO[0000] Starting the instance "test" with VM driver "vz"
...
INFO[0001] [hostagent] [VZ] - vm state change: running
...
INFO[0015] READY. Run `limactl shell test` to open the shell. Thanks! |
Describe the bug
The lima nix package is unable to use
vz
in Mac due to some build tooling being stale regarding the MacOS SDK version it "sees".Steps To Reproduce
Steps to reproduce the behavior:
vz
.FATA[0000] vm driver 'vz' needs macOS 13 or later (Hint: try recompiling Lima if you are seeing this error on macOS 13)
make binaries
)Expected behavior
I would expect the nix package would work with
vz
just like the manual compilation does.Additional context
Was trying to write a flake to reproduce and debug. This is what I found out:
vz
explicitly depending on the output ofxcrun
tool.xcrun
tool run by the nix package is within the nix packagexcbuild
which replaces xcrun with a script wrapperMacOS11.0.sdk
Seems the script itself is dynamic. Does it mean it basically depends on what version of MacOS X is running it?
Is there any easy known workaround to get this nix package working with
vz
?Notify maintainers
@r-ryantm
@wegank
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: