NixOS AWS | 64 Members | |
| 15 Servers |
| Sender | Message | Time |
|---|---|---|
| 7 Sep 2024 | ||
| * It seems there's something I'm misunderstanding about the UKI that should be included in appliances. Maybe it includes systemd and some other stuff that removes the need for the https://nixos.org/manual/nixos/stable/#sec-image-repart-appliance There's this repo which seems to be producing a working image that the author is using: https://github.com/tnytown/nixos-lima-vm Trying to do the same thing and launching the | 02:22:06 | |
Hmm even the current image I'm generating with make-nix-image hangs, so either something's wrong with both my images or my QEMU setup is broken. | 03:05:09 | |
* Hmm even the current image I'm generating with make-nix-image hangs, so either something's wrong with both my images or my QEMU setup is broken. NixOS test VMs seem to work fine though (since I was able to run the one used in the amazon-cloudwatch-agent NixOS tests fine). | 03:05:37 | |
| * Hmm playing around with
Only step 2 requires booting up a VM and is optional if you don't need a full NixOS install. Essentially, it takes the disk image from step 1 and then runs NixOS install steps. Step 1 doesn't require a VM just like
| 16:58:36 | |
| * Hmm playing around with
Only step 2 requires booting up a VM and is optional if you don't need a full NixOS install. Essentially, it takes the disk image from step 1 and then runs NixOS install steps. Step 1 doesn't require a VM just like
| 16:58:50 | |
| Nevermind, it's because I disabled hardware virtualization awhile back in an attempt to fix some stability problems. Turning it back on and forcing QEMU to use UEFI lets it proceed. | 18:26:17 | |
| * Nevermind, it's because I disabled hardware virtualization awhile back in an attempt to fix some stability problems. Turning it back on and forcing QEMU to use UEFI lets it proceed. Just fails to mount the root partition now. | 20:57:27 | |
| * Hmm playing around with
Only step 2 requires booting up a VM and is optional if you don't need a full NixOS install. Essentially, it takes the disk image from step 1 and then runs NixOS install steps. Step 1 doesn't require a VM just like
| 21:00:52 | |
| 14 Sep 2024 | ||
| There is no need for nixos-install to make a nixos image | 08:04:36 | |
| You just need a /nix/store. The initrd takes care of setting up all other directories on startup | 08:04:58 | |
| And you need to register the nix store paths into the nix database | 08:05:10 | |
| I can make you a little example that is not appliance based | 08:05:25 | |
| But need to catch a boat now first :') | 08:05:43 | |
| There's also no need for UKIs. You can just put a classic systemd-boot bootloader entry on the ESP as well | 08:06:21 | |
| https://github.com/NixOS/amis/blob/main/modules/amazon-image.nix | 08:07:01 | |
| yeah I have a non-UKI version in a local file I haven't pushed. Didn't get the root partition mount working yet since I got distracted with the EC2 SSH utils stuff (need to get EC2 Instance Connect working for the GitLab auto-scaling AWS runners) | 08:07:29 | |
| This is missing the nix store path registration part though | 08:07:31 | |
| So can do like a boot.postBootCommands =
| 08:10:30 | |
| Someone made the bash script work with nix too | 08:10:52 | |
| Did you see that? Though a go version does sound better tbh | 08:11:07 | |
| Anyhow thanks for all the help on this. Nice to have another person trying to make this nicer. | 08:12:07 | |
| yeah I saw a PR for macOS support that happens to also cover Nix | 08:12:39 | |
| though it seems like the repo's kind of abandoned | 08:12:58 | |
| https://github.com/NixOS/amis/pull/114 | 08:13:41 | |
| I'm meeting with some AWS TAMs on Tuesday to go over a few feature requests. I need to drag some AWS PM and engineer aliases out of them so the feature requests don't get lost in the system | 08:13:45 | |
| oh huh | 08:13:51 | |
| We also have TAMs here so if we can bundle forces to get something roadmapped that helps us lemme know | 08:14:25 | |
| ah they're relying on the fixup phase patching | 08:14:36 | |
| Though I'm on PTO until 23rd :) | 08:14:39 | |
| I was going to try that at first and then just thought it would somehow be easier to rewrite | 08:14:50 | |