Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amazon image: Add NVMe support to the initrd
This is required by the new c5.* instance types. Note that this changes disk names from /dev/xvd* to /dev/nvme0n*. Amazon Linux has a udev rule that calls a Python script named "ec2nvme-nsid" to create compatibility symlinks. We could use that, but it would mean adding Python to the AMI closure...
- Loading branch information
54da9cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has a new AMI been created that includes NVMe? And, if so, given that I'm pinning my nixpkgs to a git commit, how do I ensure that NixOps launches the new AMI that has NVMe fixed? Thanks!
NixOps is deploying ami-d3956fab in my current setup. That AMI never boots correctly so that one never is able to SSH into the box.
Using ami-2bd87953 by explicitly setting deployment.ec2.ami = "ami-2bd87953" in my NixOps file works. Is there a better way to pin things so that I'm not explicitly defining the AMI to use?
54da9cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that ami-2bd87953 has a problem recognizing the true size of the attached EBS storage. It thinks it has only 2 GB (see /dev/disk/by-label/nixos below), but the attached storage is actually 30 GB (I verified this in the AWS console on the instance below).
I launched this with: