!atvIbxHoEqNcAIxYpN:nixos.org

NixOS AWS

64 Members
16 Servers

Load older messages


SenderMessageTime
6 Nov 2024
@commiterate:matrix.orgcommiterateI just don't know how open they are to it. Amazon seems to have very flew blessed OSes/distros (Amazon Linux, RHEL, Ubuntu, Windows Server, macOS) and they probably only want SSM public parameters for images they publish/control. https://docs.aws.amazon.com/managedservices/latest/appguide/ams-amis.html Everyone else I imagine they just redirect to the AWS marketplace.23:13:18
@commiterate:matrix.orgcommiterate *

I just don't know how open they are to it. Amazon seems to have very flew blessed OSes/distros (Amazon Linux, RHEL, Ubuntu, Windows Server, macOS) and they probably only want SSM public parameters for images they publish/control.

Everyone else I imagine they just redirect to the AWS marketplace.

23:14:30
@commiterate:matrix.orgcommiterateWait really?23:16:35
@commiterate:matrix.orgcommiterate Well that's fun. I'll need to bring that up as part of chasing down the team that actually owns ImportImage and ImportSnapshot and ask they to add Cfn support because Image Bulider isn't the team and doesn't seem keen on taking ownership of those APIs. 23:17:54
@arianvp:matrix.orgArianYeh if your image doesn't contain an /etc/fstab it crashes 23:33:23
@arianvp:matrix.orgArianThen I haedcoded an /etc/fstab and it crashed again23:34:05
@arianvp:matrix.orgArianThey do some analysis of the image by mounting it 23:34:14
@arianvp:matrix.orgArianAlso import image takes *waaaay* longer than import-snapshot23:34:25
@arianvp:matrix.orgArianLike 25-30 minutes23:34:30
7 Nov 2024
@commiterate:matrix.orgcommiterateFeature request on the public Cfn roadmap: https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/2175 Will be chasing AWS internally for this one as well.00:16:05
@commiterate:matrix.orgcommiterate * Feature request on the public Cfn roadmap: https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/2175 00:29:24
@colemickens:matrix.orgcolemickensPlease do let me know if there's any help I can lend to this PR, besides testing/reviewing: https://github.com/NixOS/nixpkgs/pull/34393915:46:40
@arianvp:matrix.orgArianJust seems to need a rebase and a re-review15:49:10
@arianvp:matrix.orgArianWe did go into breaking changes freeze for 24.11 though. So idk if I can still merge it :/15:49:31
@quyse:matrix.orgquyse joined the room.19:52:46
@quyse:matrix.orgquyse hi!
I'm using my custom NixOS AMI built with "${modulesPath}/../maintainers/scripts/ec2/amazon-image.nix" module. The EC2 serial console in the AWS web interface works (shows boot messages like it's a display), but "get system log" in the web interface, and the aws ec2 get-console-output command both always return empty output.
Is the system log thing even supposed to work? I am not very familiar with AWS, but I thought it works via the same mechanism as the EC2 serial console, and since the amazon-image.nix module enables serial console via kernel param (console=ttyS0), it should work too
20:04:28
@quyse:matrix.orgquyse * hi!
I'm using my custom NixOS AMI built with "${modulesPath}/../maintainers/scripts/ec2/amazon-image.nix" module. The EC2 serial console in the AWS web interface works (shows boot messages like it's a display), but "get system log" in the web interface, and the aws ec2 get-console-output command both always return empty output.
Is the system log thing even supposed to work? I am not very familiar with AWS, but I thought it works via the same mechanism as the EC2 serial console, and since the amazon-image.nix module enables serial console via kernel param (console=ttyS0), it should work too
20:04:40
@arianvp:matrix.orgArianThis is expected for Nitro instances you need to call get-console-output with --latest20:13:04
@arianvp:matrix.orgArianget-console-output without --latest is only available after instance termination 20:13:28
@arianvp:matrix.orgArianOr Connect -> EC2 Serial Console. Should work roo20:14:19
@arianvp:matrix.orgArian* Or Connect -> EC2 Serial Console. Should work too20:14:26
@arianvp:matrix.orgArian* get-console-output without --latest is only available after instance termination . Or around 15 minutes after the instance started20:14:45
@quyse:matrix.orgquyse
In reply to @arianvp:matrix.org
get-console-output without --latest is only available after instance termination . Or around 15 minutes after the instance started
oh, thank you very much! indeed it returns the output after termination. I wonder why the web interface doesn't warn about it
20:17:25
@arianvp:matrix.orgArianBut the --latest flag should work too20:18:18
@quyse:matrix.orgquyse
In reply to @arianvp:matrix.org
But the --latest flag should work too
yes, just tried it, it works! not immediately after instance launch, but quite quickly
20:20:56
@quyse:matrix.orgquyse interesting, after termination the output is again empty, with --latest or without 20:27:40
@quyse:matrix.orgquyseok, a few more munutes after the termination get-console-output starts returning the full output again. I guess it's just a bit of weirdness on AWS side20:32:47
8 Nov 2024
@tuxiqae:matrix.orgtuxiqae

Arian: Thanks for the help the other day
I was able to write the following thanks to your help!

https://github.com/tuxiqae/autovm

22:56:29
@tuxiqae:matrix.orgtuxiqae BTW, had to use 24.05 since AMI building in unstable seems to be broken due to hash mismatch in the getty package. Couldn't figure where the faulty hash is defined so I didn't fix it yet 22:58:29
@tuxiqae:matrix.orgtuxiqaeimage.png
Download image.png
22:58:33

Show newer messages


Back to Room ListRoom Version: 10