!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

593 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org163 Servers

Load older messages


SenderMessageTime
12 Jun 2024
@adam:robins.wtf@adam:robins.wtfguess i'll deal with that in 24.11 since the alloy module was only just merged12:49:32
@mahmoudk1000:matrix.orgMahmoud joined the room.13:03:50
13 Jun 2024
@griffinht:matrix.orggriffinht joined the room.01:40:50
@steveej0:matrix.orgsteveej

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:matrix.redalder.orgmagic_rb joined the room.19:51:55
14 Jun 2024
@qe7ftcyrpg:matrix.orgFlorian joined the room.19:16:20
15 Jun 2024
@duckl1ng:duckl1ng.xyzduckl1ng joined the room.09:21:37
@steveej0:matrix.orgsteveej
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
@steveej0:matrix.orgsteveej

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
@bhasher:bhasher.com#⏚ joined the room.17:45:14
@steveej0:matrix.orgsteveej
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@adam:robins.wtfany NVME recommendations? 13:53:19
@hexa:lossy.networkhexaconsumer disks?13:55:37
@hexa:lossy.networkhexalow end? high end?13:55:51
@adam:robins.wtf@adam:robins.wtfwell i don't want to pay enterprise prices, but i want enterprise durability :)13:56:10
@adam:robins.wtf@adam:robins.wtflifespan is probably more important to me than high end speed13:56:36
@hexa:lossy.networkhexado we even know the lifespan of NVMe drives? 😄 13:56:54
@adam:robins.wtf@adam:robins.wtfhow about TBW :)13:57:01
@hexa:lossy.networkhexaahh ok13:57:09
@hexa:lossy.networkhexa Samsung is the obvious choice, when you don't want to compare anything and money is shrug 13:57:56
@hexa:lossy.networkhexaI tend to stay away from WD because they've exhibited bad business practices on multiple occassions now.13:58:23
@hexa:lossy.networkhexaThe last drives I bought were from Kioxicia13:58:42
@hexa:lossy.networkhexa * The last drives I bought were from Kioxia13:58:44
@hexa:lossy.networkhexapeak TBW for 2TB is ~1.3PB, and for 4TB around ~2.4PB14:00:36
@adam:robins.wtf@adam:robins.wtfyeah that's pretty good14:01:19
@hexa:lossy.networkhexakioxia offers 800TB at 2TB14:02:08
@hexa:lossy.networkhexawith the excercia pro14:02:25
@adam:robins.wtf@adam:robins.wtflast one i bought was https://www.predatorstorage.com/products/predator-gm7000-pcie-4-ssd.html14:04:49
@abyxcos:beeper.comabyxcos
In reply to @hexa:lossy.network
do we even know the lifespan of NVMe drives? 😄
Unfortunately, yes.
15:33:19
@abyxcos:beeper.comabyxcosWhat exactly are you looking for out of a drive/card? 15:35:10

Show newer messages


Back to Room ListRoom Version: 10