-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register AWS AMIs as preferring UEFI over legacy BIOS #582
base: flatcar-master
Are you sure you want to change the base?
Conversation
What instance types did you test on? We run kola tests on I'm also going to capture here because I tested it: |
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.
lgtm
I used
That could be a reason to go with |
Strike half of that, |
That would mean dropping support for m4/c4 instance types. What would be the impact of that? |
Right, so anything Xen-based. Sucks that we can't have both unless we register separate AMIs. Having said that, looking at the ore code, I think you can register more than one AMI from a single snapshot? |
I spoke to @t-lo and he agreed. However, having looked at the code again, it gets quite messy. Some code assumes there is only one AMI being created or only one per region. That could be fixed, but we also publish lists of the AMIs. Again, these assume one AMI per region. We have "all" vs "hvm" listings, which are actually the same, but I guess these were different at some point. We could create another variant, but we may be crossing the point where it's no longer worth the effort. @t-lo says that AWS discourages users from deploying these older instance types. We would only be breaking new deployments here, not upgrades. @jepio, what do you think? |
Gen5 and higher (i.e. kvm-based instances) are cheaper to operate, and there has been a general push away from Xen based instances. Gen5 has been available from 2015 onwards (iirc). Let's bring this up in the dev sync next Wednesday and check what others think? |
68313d5
to
024e8ab
Compare
Signed-off-by: James Le Cuirot <[email protected]>
The message said "raw or vmdk", but these actually need to be uppercased. Signed-off-by: James Le Cuirot <[email protected]>
I'm not aware of any instance types that don't support UEFI, so we could possibly set this to UEFI only, but best play it safe. Signed-off-by: James Le Cuirot <[email protected]>
024e8ab
to
4c64272
Compare
Register AWS AMIs as preferring UEFI over legacy BIOS
I'm not aware of any instance types that don't support UEFI, so we could possibly set this to UEFI only, but best play it safe.
Also use actual values in the image format error message. The message said
raw or vmdk
, but these actually need to be uppercased.On a sidenote, I wondered what would happen to existing instances if we eventually drop BIOS support. You can convert them to UEFI, but it involves taking an AMI snapshot, registering it as a new image, and launching a new instance, which is a little tedious.
How to use
Use
ore aws upload
, spawn an instance, and runsudo efibootmgr
to verify that it booted using UEFI.Testing done
I've done the above.