!zghijEASpYQWYFzriI:nixos.org

Hydra

382 Members
110 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
12 Jun 2022
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgWhat is the correct way of building a nixosConfiguration?17:44:38
@kenran_:matrix.orgkenran_
In reply to @ulrikstrid:matrix.org
What is the correct way of building a nixosConfiguration?
What do you mean exactly? A NixOS configuration with a hydra service? Your question sounds like it's about the flake output type.
19:18:01
@kenran_:matrix.orgkenran_
In reply to @lewo:matrix.org
kenran_: is KVM enabled on your Hydra instance?
It's in system-features, but that's probably not what you mean!? The machine is a VM in the cloud; I'll check tomorrow, but given that it takes 5 minutes to run this test I don't think it is :)
19:19:24
@ulrikstrid:matrix.org@ulrikstrid:matrix.org
In reply to @kenran_:matrix.org
What do you mean exactly? A NixOS configuration with a hydra service? Your question sounds like it's about the flake output type.
I manage my computers with flakes and want to have my hydra build the configurations and ideally I would deploy from that
19:33:14
@lewo:matrix.orglewo kenran_: having kvm in system-features is not enough to ensure Nix have enough permissions on /dev/kvm (if nested KVM is provided by your cloud provider) 19:36:15
@kenran_:matrix.orgkenran_
In reply to @ulrikstrid:matrix.org
I manage my computers with flakes and want to have my hydra build the configurations and ideally I would deploy from that
Oh, that sounds very nice! I'm interested in knowing more now, too!
Is the building part just adding a hydraJobs.my-host.${system} = self.nixosConfigurations.my-host?
19:36:28
@janne.hess:helsinki-systems.dedas_j
In reply to @lewo:matrix.org
kenran_: having kvm in system-features is not enough to ensure Nix have enough permissions on /dev/kvm (if nested KVM is provided by your cloud provider)
Adding kvm to the system features is already wrong. Nix autodetects kvm and adds the feature
19:36:46
@lewo:matrix.orglewo kenran_: and if KVM is not available, it can be pretty hard to get NixOS test working. 19:37:08
@janne.hess:helsinki-systems.dedas_j
In reply to @janne.hess:helsinki-systems.de
Adding kvm to the system features is already wrong. Nix autodetects kvm and adds the feature
https://github.com/NixOS/nix/blob/master/src/libstore/globals.cc#L128-L129
19:37:33
@kenran_:matrix.orgkenran_
In reply to @lewo:matrix.org
kenran_: having kvm in system-features is not enough to ensure Nix have enough permissions on /dev/kvm (if nested KVM is provided by your cloud provider)
I probably know way too little about kvm, but I was under the impression (someone in the nixos channel told me) that they should be running even without "actual" kvm support.
Surely you're right of course. I'm just trying to understand: does that explain why some versions of the tests work, but others don't?
19:38:35
@andreas.schraegle:helsinki-systems.deajs124vm tests should run, just very very veeeeeryyyy slow19:39:07
@lewo:matrix.orglewoKVM provide hardware acceleration of virtualization functions. So, if you don't have it, it can be really slow (order of magnitude)...19:39:50
@lewo:matrix.orglewo * KVM provides hardware acceleration of virtualization functions. So, if you don't have it, it can be really slow (order of magnitude)...19:40:00
@kenran_:matrix.orgkenran_
In reply to @andreas.schraegle:helsinki-systems.de
vm tests should run, just very very veeeeeryyyy slow
Yeah, that's what I saw happening :D veeeeerry slow indeed! The same 5-minute test runs in like 15 seconds on my machine.
19:40:09
@lewo:matrix.orglewoSo, fisrt, you need to be sure KVM is available.19:41:52
@kenran_:matrix.orgkenran_Ok, so thanks! I know what I can try first: this hydra instance is something I set up to test how things work, and if you can use it for some projects at work, and I'm loving it so far (except for those NixOS tests). I don't think the provider enables kvm for that kind of virtual machine, though, so I'll have to see what other options there are to set it up on.19:41:56
@kenran_:matrix.orgkenran_ * Ok, so thanks! I know what I can try first: this hydra instance is something I set up to test how things work, and if we can use it for some projects at work, and I'm loving it so far (except for those NixOS tests). I don't think the provider enables kvm for that kind of virtual machine, though, so I'll have to see what other options there are to set it up on.19:42:15
@kenran_:matrix.orgkenran_And when that's done and the tests run: fine! If not, I can come here and try to pester you with questions again :)19:42:54
@ulrikstrid:matrix.org@ulrikstrid:matrix.org
In reply to @kenran_:matrix.org
Oh, that sounds very nice! I'm interested in knowing more now, too!
Is the building part just adding a hydraJobs.my-host.${system} = self.nixosConfigurations.my-host?

        servern = self.nixosConfigurations.servern.config.system.build.toplevel;

This seems to build it, but it looks very hacky and I'm not sure I can use it to deploy anything 🤪

20:13:12
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgFrom here https://github.com/ulrikstrid/nix-config/blob/main/flake.nix#L119-L12220:13:30
@kenran_:matrix.orgkenran_
In reply to @ulrikstrid:matrix.org

        servern = self.nixosConfigurations.servern.config.system.build.toplevel;

This seems to build it, but it looks very hacky and I'm not sure I can use it to deploy anything 🤪

Oh yeah, this looks awful :D but have you tried doing anything with it? Say, nixos-rebuild switch --flake .#hydraJobs.servern.x86_64-linux, for science?
20:15:07
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgNot at my computer but can try out tomorrow morning20:21:34
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgMy hydra builds or btw, but the output is < 1mb20:22:17
@ulrikstrid:matrix.org@ulrikstrid:matrix.orgThe closure is in the GB range so I'm pretty sure it's building20:22:43
13 Jun 2022
@dandellion:dodsorf.asDandellion

I'm trying to build a flake in hydra, but I'm having a lot of issues

When I evaluate I get

hydra-eval-jobs returned exit code 1:
Collecting from unknown thread
child process (309593) killed by signal=6
error: unexpected EOF reading a line

Has anyone seen aything like that before?

21:16:03
14 Jun 2022
@kayla.fire:matrix.orgkayla (she/they)
In reply to @dandellion:dodsorf.as

I'm trying to build a flake in hydra, but I'm having a lot of issues

When I evaluate I get

hydra-eval-jobs returned exit code 1:
Collecting from unknown thread
child process (309593) killed by signal=6
error: unexpected EOF reading a line

Has anyone seen aything like that before?

Seems like some code in the hydra-eval-jobs worker thread is calling abort(). I grepped for the Collecting from unknown thread and variations of that but didn't find anything on my first pass. '
09:43:11
@kayla.fire:matrix.orgkayla (she/they)
In reply to @dandellion:dodsorf.as

I'm trying to build a flake in hydra, but I'm having a lot of issues

When I evaluate I get

hydra-eval-jobs returned exit code 1:
Collecting from unknown thread
child process (309593) killed by signal=6
error: unexpected EOF reading a line

Has anyone seen aything like that before?

* Seems like some code in the hydra-eval-jobs worker process is calling abort(). I grepped for the Collecting from unknown thread and variations of that but didn't find anything on my first pass. '
09:43:25
@kayla.fire:matrix.orgkayla (she/they) * Seems like some code in the hydra-eval-jobs worker process is calling abort(). I grepped for the Collecting from unknown thread and variations of that but didn't find anything on my first pass. 09:43:45

Show newer messages


Back to Room ListRoom Version: 6