CentOS Bug Tracker - Cloud Instance SIG
View Issue Details
0014107Cloud Instance SIG[All Projects] generalpublic2017-11-09 21:302017-12-12 10:55
Reporterhhsnow 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Summary0014107: AWS C5 instance types unavailable with marketplace AMIs
DescriptionThe CentOS 7 (and 6) HVM AMIs in the AWS marketplace do not yet support the recently released C5 instance family.
Steps To Reproduce1. Go to AWS Console/EC2 service
2. Click "Launch Instance"
3. Go to AWS Marketplace, search for "CentOS"
4. Select "CentOS 7 (x86_64) - with Updates HVM"
5. Try to choose types beginning with c5.
Instance types above are grayed out. Error is: "This instance type is not compatible with the selected AMI."
TagsNo tags attached.
Attached Files

Notes
(0030562)
TECK   
2017-11-12 00:37   
I confirm the issue, C5 instances have significant improvements and are cheaper, compared to C4.
(0030573)
jonnytronic   
2017-11-14 19:54   
This issue also occurs when attempting to change instance type. From c4.2xlarge to c5.xlarge: The instance configuration for this AWS Marketplace product is not supported.
us-east-1a
Elastic Network Adapter ENA enabled
kernel 3.10.0-693.5.2.el7.x86_64

We were able to successfully change to a c5 last week, but this week no luck.
(0030588)
jonnytronic   
2017-11-15 22:22   
Today I was able to successfully change the instance type from a c4.xlarge to a c5.xlarge, but when starting the instance up I get the error: Error starting instances
Enhanced networking with the Elastic Network Adapter (ENA) is required for the 'c5.large' instance type. Ensure that your instance is enabled for ENA.

Can confirm ENA is enabled.
(0030624)
gorgonzolae   
2017-11-21 14:59   
I've also hit this. It'd be great to confirm if this is something to fix on the Marketplace side (I believe you need to tell AWS which instances are supported) or more technical. So far I haven't been able to create a CentOS7 image that boots on C5 instances (with NVMe root volume) but I've only been looking for a few hours.
(0030630)
hhsnow   
2017-11-21 16:15   
@gorgonzolae
If you're rolling your own CentOS 7 AMI and are encountering issues booting it on the c5's (but works with other instance families), try running these two before taking the AMI:

yum install dracut-config-generic
dracut -f

From AWS support:
In order to have the correct initramfs to be created with your script I had to install a package named "dracut-config-generic". This package provides the configuration to turn off the host specific initramfs generation with dracut and generates a generic image by default. This package includes a single configuration file for dracut:

| $ cat /usr/lib/dracut/dracut.conf.d/02-generic-image.conf
| hostonly="no"

After I installed this package and rebuild the initramfs with "dracut -f" it started to boot normally on C5s. You can note the size difference between the initramfs files:

* Before the installation of "dracut-config-generic":
-rw------- 1 root root 19719505 Nov 13 16:28 initramfs-3.10.0-693.5.2.el7.x86_64.img

* After the installation of "dracut-config-generic":
-rw------- 1 root root 46942834 Nov 15 01:01 initramfs-3.10.0-693.5.2.el7.x86_64.img
(0030657)
caboteria   
2017-11-27 16:06   
Can confirm that @hhsnow's workaround works for me. Thanks!
(0030660)
jonnytronic   
2017-11-28 18:58   
Dracut hasn't worked for us.
Still getting: Error starting instances
Enhanced networking with the Elastic Network Adapter (ENA) is required for the 'c5.large' instance type. Ensure that your instance is enabled for ENA.
Can confirm running modinfo ena that ENA is enabled.
(0030661)
hhsnow   
2017-11-28 19:14   
@jonnytronic
Is ENA enabled for your instance? Via command line:
aws ec2 describe-instances --instance-ids {instance_id} --query 'Reservations[].Instances[].EnaSupport'

If not (stop instance and):
aws ec2 modify-instance-attribute --instance-id {instance_id} --ena-support

To make the AMI automatically support ENA, you need to enable ENA on the instance before you create the image.

Note that if you're using an AMI based on the CentOS marketplace AMI (has marketplace product codes in the details), you'll need to wait until this ticket is resolved to launch on i5's
(0030692)
fkubota   
2017-12-01 21:56   
From https://aws.amazon.com/ec2/faqs/

"Q. Which operating systems/AMIs are supported on C5 Instances?

EBS backed HVM AMIs with support for ENA networking and booting from NVMe-based storage can be used with C5 instances. The following AMIs are supported on C5:
CentOS 7 or newer, ... "

When would CentOS 6 get support for running on latest AWS hardware?
(0030702)
nevsan   
2017-12-05 16:44   
I would love to see an official CentOS 7 AMI with ENA support. Is this on the roadmap?
(0030708)
Stef62820   
2017-12-06 13:10   
I see Centos 1708_11 was released yesterday and it can boot the c5 instances. But it cannot boot m5 instances yet. When would m5 instances be supported?
(0030711)
nevsan   
2017-12-06 15:14   
+1 for M5 compatibility. I thought the fix to enable C5 was going to enable M5 as well.
(0030712)
Stef62820   
2017-12-06 15:36   
Yep, me too :-)
(0030739)
Stef62820   
2017-12-11 09:34   
The M5 instance types are supported now as well.
(0030741)
centosrocks   
2017-12-11 16:44   
CentOS 7 is working fine with C5/M5 instances. Any similar support coming to CentOS 6 ?
(0030742)
48Laws   
2017-12-12 10:55   
M5 and C5 are all still greyed out when launching CentOS 7 AMI.
Is there any other way to get this?

Issue History
2017-11-09 21:30hhsnowNew Issue
2017-11-12 00:37TECKNote Added: 0030562
2017-11-14 19:54jonnytronicNote Added: 0030573
2017-11-15 22:22jonnytronicNote Added: 0030588
2017-11-21 14:59gorgonzolaeNote Added: 0030624
2017-11-21 16:15hhsnowNote Added: 0030630
2017-11-27 16:06caboteriaNote Added: 0030657
2017-11-28 18:58jonnytronicNote Added: 0030660
2017-11-28 19:14hhsnowNote Added: 0030661
2017-12-01 21:56fkubotaNote Added: 0030692
2017-12-05 16:44nevsanNote Added: 0030702
2017-12-06 13:10Stef62820Note Added: 0030708
2017-12-06 15:14nevsanNote Added: 0030711
2017-12-06 15:36Stef62820Note Added: 0030712
2017-12-11 09:34Stef62820Note Added: 0030739
2017-12-11 16:44centosrocksNote Added: 0030741
2017-12-12 10:5548LawsNote Added: 0030742