Hydra | 391 Members | |
| 109 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Jun 2022 | ||
In reply to @kenran_:matrix.orgI manage my computers with flakes and want to have my hydra build the configurations and ideally I would deploy from that | 19:33:14 | |
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 | |
In reply to @ulrikstrid:matrix.orgOh, 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 | |
In reply to @lewo:matrix.orgAdding kvm to the system features is already wrong. Nix autodetects kvm and adds the feature | 19:36:46 | |
| kenran_: and if KVM is not available, it can be pretty hard to get NixOS test working. | 19:37:08 | |
In reply to @janne.hess:helsinki-systems.dehttps://github.com/NixOS/nix/blob/master/src/libstore/globals.cc#L128-L129 | 19:37:33 | |
In reply to @lewo:matrix.orgI 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 | |
| vm tests should run, just very very veeeeeryyyy slow | 19:39:07 | |
| KVM provide hardware acceleration of virtualization functions. So, if you don't have it, it can be really slow (order of magnitude)... | 19:39:50 | |
| * 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 | |
In reply to @andreas.schraegle:helsinki-systems.deYeah, 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 | |
| So, fisrt, you need to be sure KVM is available. | 19:41:52 | |