-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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-bin: init binary derivation at 0.14.2 #209171
Conversation
Should colima be updated to depend on lima-bin? It currently pulls |
@roblabla Yes, that is my plan. |
Probably only on |
Good point. So should I then only provide darwin as binaries? |
I think we can provide all available platforms as binaries. If users want to use them on linux they could override. |
@dennajort @roblabla @dhess |
lima is complaining to not have the vz entitlements:
|
Are you using it via I've ginned something up here in our overlay, and it works with |
@roblabla What command did you run? |
I think I've found the source of the problem. If I add |
@roblabla I cannot reproduce this. Works on my machine: result/bin/limactl start colima
INFO[0000] Using the existing instance "colima"
INFO[0000] [hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/tricktron/.lima/colima/serial.log")
INFO[0000] SSH Local Port: 61892
INFO[0000] [hostagent] Waiting for the essential requirement 1 of 5: "ssh"
INFO[0010] [hostagent] Waiting for the essential requirement 1 of 5: "ssh"
INFO[0020] [hostagent] Waiting for the essential requirement 1 of 5: "ssh"
INFO[0020] [hostagent] The essential requirement 1 of 5 is satisfied
INFO[0020] [hostagent] Waiting for the essential requirement 2 of 5: "user session is ready for ssh"
INFO[0020] [hostagent] The essential requirement 2 of 5 is satisfied
INFO[0020] [hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed"
INFO[0020] [hostagent] The essential requirement 3 of 5 is satisfied
INFO[0020] [hostagent] Waiting for the essential requirement 4 of 5: "/etc/fuse.conf (/etc/fuse3.conf) to contain \"user_allow_other\""
INFO[0020] [hostagent] The essential requirement 4 of 5 is satisfied
INFO[0020] [hostagent] Waiting for the essential requirement 5 of 5: "the guest agent to be running"
INFO[0020] [hostagent] The essential requirement 5 of 5 is satisfied
INFO[0020] [hostagent] Mounting "/Users/tricktron" on "/Users/tricktron"
INFO[0020] [hostagent] Mounting "/tmp/colima" on "/tmp/colima"
INFO[0020] [hostagent] Waiting for the final requirement 1 of 1: "boot scripts must have finished"
INFO[0020] [hostagent] Forwarding "/var/run/docker.sock" (guest) to "/Users/tricktron/.colima/default/docker.sock" (host)
INFO[0020] [hostagent] Forwarding "/var/run/docker.sock" (guest) to "/Users/tricktron/.colima/docker.sock" (host)
INFO[0020] [hostagent] Forwarding "/run/lima-guestagent.sock" (guest) to "/Users/tricktron/.lima/colima/ga.sock" (host)
INFO[0021] [hostagent] The final requirement 1 of 1 is satisfied
INFO[0021] READY. Run `limactl shell colima` to open the shell. |
So I checked the
The former was generated using I'm running this on a macos13 installation. Not sure what I can do to find what's different between our environments. |
@tricktron your VM is running qemu
That works on my end too. But I'm trying to get a |
for an easier reproducer:
And here's the ha.stderr.log:
|
@roblabla Great catch. I could reproduce it and disabled the stripping to fix it. Thank you for the precise testing! |
Maybe we should only disable stripping on darwin because the entitlements are only in the darwin binaries? |
This is what I added on my PR for the non binary version of lima https://github.com/NixOS/nixpkgs/pull/206285/files#diff-adecdcf421866f9b6153fa6fa3608ee1e62ef5a5518ff91ef7fecf4a8908ce23R37 |
Great stuff. Thanks for the hint! |
@tricktron you have merge conflicts (maybe due to my changes on |
@dennajort Thanks for the heads-up. I resolved the merge conflict. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Awesome! We should update Colima to reference this version as well. |
Here you go: #212980. |
Description of changes
Adds lima binary derivation.
Why?
Lima added support for Apple's Virtualization.framework aka vz in 0.14.0 which needs the apple sdk 13 to build it from source. In nixpkgs, we are currently on sdk 11 and I tried to make it work with sdk11 but failed. See #206285 (comment).
Instead, it makes more sense to provide the lima binary, which this pr does.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes