| 12 Jun 2024 |
@adam:robins.wtf | guess i'll deal with that in 24.11 since the alloy module was only just merged | 12:49:32 |
| Mahmoud joined the room. | 13:03:50 |
| 13 Jun 2024 |
| griffinht joined the room. | 01:40:50 |
steveej | anyone familiar here with nix-snapshotter? i'm trying to manually run an image with nerdctl and it cannot find resolve the image:
$ sudo -E nerdctl run --privileged --rm "nix:0$(nix build --impure .#image --print-out-paths):latest"
warning: Git tree '/home/steveej/src/steveej/infra' is dirty
INFO[0000] trying next host error="failed to do request: Head \"https://nix:0/v2/nix/store/a0f150y8p4gbfm0aldap3nyp9ca4hfb5-nix-image-mycelium.tar/manifests/latest\": dial tcp: lookup nix: no such host" host="nix:0"
FATA[0000] failed to resolve reference "nix:0/nix/store/a0f150y8p4gbfm0aldap3nyp9ca4hfb5-nix-image-mycelium.tar:latest": failed to do request: Head "https://nix:0/v2/nix/store/a0f150y8p4gbfm0aldap3nyp9ca4hfb5-nix-image-mycelium.tar/manifests/latest": dial tcp: lookup nix: no such host
if i use an image that was previously loaded into the snapshotter via k3s i can run it manually as well. how can i manually load an image?
| 15:49:48 |
| magic_rb joined the room. | 19:51:55 |
| 14 Jun 2024 |
| Florian joined the room. | 19:16:20 |
| 15 Jun 2024 |
| duckl1ng joined the room. | 09:21:37 |
steveej | In reply to @steveej0:matrix.org
anyone familiar here with nix-snapshotter? i'm trying to manually run an image with nerdctl and it cannot find resolve the image:
$ sudo -E nerdctl run --privileged --rm "nix:0$(nix build --impure .#image --print-out-paths):latest"
warning: Git tree '/home/steveej/src/steveej/infra' is dirty
INFO[0000] trying next host error="failed to do request: Head \"https://nix:0/v2/nix/store/a0f150y8p4gbfm0aldap3nyp9ca4hfb5-nix-image-mycelium.tar/manifests/latest\": dial tcp: lookup nix: no such host" host="nix:0"
FATA[0000] failed to resolve reference "nix:0/nix/store/a0f150y8p4gbfm0aldap3nyp9ca4hfb5-nix-image-mycelium.tar:latest": failed to do request: Head "https://nix:0/v2/nix/store/a0f150y8p4gbfm0aldap3nyp9ca4hfb5-nix-image-mycelium.tar/manifests/latest": dial tcp: lookup nix: no such host
if i use an image that was previously loaded into the snapshotter via k3s i can run it manually as well. how can i manually load an image?
i figured this one out. it needs to be loaded first:
sudo nix2container load ./result
| 12:09:44 |
steveej | still figuring out how the rest of this should work. i'm point the container to
entrypoint = "${self.nixosConfigurations.default.config.system.build.toplevel}/init";
and when starting that thing can't find any binary. probably it's not setting up the mounts of the nix store paths right.
+ sudo -E nerdctl run --privileged --rm nix:0/nix/store/1aqp8zcvllikmfdapkvpizr0qxxq4hfd-nix-image-mycelium.tar:latest
<<< NixOS Stage 2 >>>
/nix/store/r9ica7hd8h1v64mkrcvz5jnp2bznb79f-nixos-system-nixos-24.05.20240611.47b604b/init: line 78: /nix/store/bm6ijd9ngfxc6b0sllgprkq3z4ckxrwz-util-linux-2.40.1-bin/bin/mount: No such file or directory
/nix/store/r9ica7hd8h1v64mkrcvz5jnp2bznb79f-nixos-system-nixos-24.05.20240611.47b604b/init: line 86: resolvconf: command not found
/nix/store/r9ica7hd8h1v64mkrcvz5jnp2bznb79f-nixos-system-nixos-24.05.20240611.47b604b/init: line 94: tee: command not found
/nix/store/r9ica7hd8h1v64mkrcvz5jnp2bznb79f-nixos-system-nixos-24.05.20240611.47b604b/init: line 146: /run/current-system/systemd/lib/systemd/systemd: No such file or directory
starting systemd...
| 12:12:09 |
| #⏚ joined the room. | 17:45:14 |
steveej | In reply to @steveej0:matrix.org
still figuring out how the rest of this should work. i'm point the container to
entrypoint = "${self.nixosConfigurations.default.config.system.build.toplevel}/init";
and when starting that thing can't find any binary. probably it's not setting up the mounts of the nix store paths right.
+ sudo -E nerdctl run --privileged --rm nix:0/nix/store/1aqp8zcvllikmfdapkvpizr0qxxq4hfd-nix-image-mycelium.tar:latest
<<< NixOS Stage 2 >>>
/nix/store/r9ica7hd8h1v64mkrcvz5jnp2bznb79f-nixos-system-nixos-24.05.20240611.47b604b/init: line 78: /nix/store/bm6ijd9ngfxc6b0sllgprkq3z4ckxrwz-util-linux-2.40.1-bin/bin/mount: No such file or directory
/nix/store/r9ica7hd8h1v64mkrcvz5jnp2bznb79f-nixos-system-nixos-24.05.20240611.47b604b/init: line 86: resolvconf: command not found
/nix/store/r9ica7hd8h1v64mkrcvz5jnp2bznb79f-nixos-system-nixos-24.05.20240611.47b604b/init: line 94: tee: command not found
/nix/store/r9ica7hd8h1v64mkrcvz5jnp2bznb79f-nixos-system-nixos-24.05.20240611.47b604b/init: line 146: /run/current-system/systemd/lib/systemd/systemd: No such file or directory
starting systemd...
it almost works fine now. except the systemd credentials mechanism is broken. the credential directories all show up empty. any idea what the root cause could be there? | 19:30:51 |
| 16 Jun 2024 |
@adam:robins.wtf | any NVME recommendations? | 13:53:19 |
hexa | consumer disks? | 13:55:37 |
hexa | low end? high end? | 13:55:51 |
@adam:robins.wtf | well i don't want to pay enterprise prices, but i want enterprise durability :) | 13:56:10 |
@adam:robins.wtf | lifespan is probably more important to me than high end speed | 13:56:36 |
hexa | do we even know the lifespan of NVMe drives? 😄 | 13:56:54 |
@adam:robins.wtf | how about TBW :) | 13:57:01 |
hexa | ahh ok | 13:57:09 |
hexa | Samsung is the obvious choice, when you don't want to compare anything and money is shrug | 13:57:56 |
hexa | I tend to stay away from WD because they've exhibited bad business practices on multiple occassions now. | 13:58:23 |
hexa | The last drives I bought were from Kioxicia | 13:58:42 |
hexa | * The last drives I bought were from Kioxia | 13:58:44 |
hexa | peak TBW for 2TB is ~1.3PB, and for 4TB around ~2.4PB | 14:00:36 |
@adam:robins.wtf | yeah that's pretty good | 14:01:19 |
hexa | kioxia offers 800TB at 2TB | 14:02:08 |
hexa | with the excercia pro | 14:02:25 |
@adam:robins.wtf | last one i bought was https://www.predatorstorage.com/products/predator-gm7000-pcie-4-ssd.html | 14:04:49 |
abyxcos | In reply to @hexa:lossy.network do we even know the lifespan of NVMe drives? 😄 Unfortunately, yes. | 15:33:19 |
abyxcos | What exactly are you looking for out of a drive/card? | 15:35:10 |