NixOS AWS | 64 Members | |
| 14 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 Jul 2024 | ||
| Yes, I have IPv6 enabled:
| 08:49:07 | |
| Yeh so there is a race condition in the ec2 metadata script | 21:33:42 | |
| Network-online.target is either reached when ipv6 or ipv4 is ready and our script only reaches out on the metadata server on ipv4 | 21:34:18 | |
| And then fails and crashes | 21:34:24 | |
| That ifconfig suggests ipv6 is disabled | 21:34:57 | |
| You don't have an ipv6 address assigned | 21:35:09 | |
| So you must have run into something else | 21:35:22 | |
In reply to @arianvp:matrix.org(I meant it's enabled in Linux kernel.) | 21:37:21 | |
| I'm talking about enabling it in AWS. As it's a known bug. | 22:52:43 | |
| 5 Jul 2024 | ||
| 03:12:04 | ||
| 9 Jul 2024 | ||
| 16:49:46 | ||
| 10 Jul 2024 | ||
| 00:36:08 | ||
| 20 Jul 2024 | ||
| 10:39:23 | ||
| 22 Jul 2024 | ||
| 22:24:00 | ||
| 23 Jul 2024 | ||
| 08:21:01 | ||
| 29 Jul 2024 | ||
| 19:09:41 | ||
| Hello all! I've set up NixOS on AWS by booting into a NixOS AMI, then doing Now I have the AMI-created EBS volume still, although it's not attached to anything. I'd like to get rid of it. I think the cleanest way would be to detach the NixOS AMI from the EC2 instance. AFAIK I don't need the AMI anymore, since I have the OS installed to EBS. But I don't find a way to have an EC2 instance without an AMI! Any advice on how to get rid of the AMI or its EBS volume? | 19:14:07 | |
| There is no need to do this. The AMI is a proper NixOS installation | 19:43:21 | |
| you can just do nixos-rebuild switch on the existing EBS volume | 19:43:27 | |
| Note that the AMI is and EBS volume already | 19:44:04 | |
| it’s a pointer to an EBS snapshot; that then gets mounted as an EBS volume | 19:44:17 | |
| What exactly are you trying ot do? | 19:45:04 | |
| if you want to change the EBS volume type; you can do that already without nixos-installing to a different EBS volume. You can select the EBS volume type in the DeviceMapping | 19:45:40 | |
| e.g. if you’re using Terraform:
Will boot the NixOS AMI on an io2 EBS volume of 500GB size. NixOS will resize the partition and file system automatically on first boot | 19:48:04 | |
| EC2 instance must have an associated AMI and Root Block Device. You cant detach it | 19:49:00 | |
| 30 Jul 2024 | ||
I want to install NixOS on an EBS volume that's decoupled from the instance. For example, if I delete the EC2 instance with the NixOS AMI, then the default 4 GB EBS volume gets deleted. I want to be able to replace the instance with something larger or smaller without losing my OS install. | 16:03:41 | |
| You can set this as an option on the instance | 16:09:45 | |
| https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#delete_on_termination | 16:10:02 | |
| set | 16:10:23 | |
| Note that you can resize instances without destroying the instance | 16:10:33 | |