Changing an old instance to `c5.large` fails: `Enhanced networking with the Elastic Network Adapter (ENA) is required for the 'c5.large' instance type. Ensure that your instance 'i-0abc' is enabled for ENA.`
AdvancedTroubleshootingEC2, Auto Scaling and Load Balancing
Answer
Likely causes → The instance came from an old AMI built for Xen (for example m4 or t2). Nitro types need the ENA driver for networking and NVMe drivers for EBS, and the instance attribute enaSupport must be true.
Diagnose →
aws ec2 describe-instances --instance-ids i-0abc --query 'Reservations[].Instances[].EnaSupport'
# on the instance:
modinfo ena; lsmod | grep -E 'ena|nvme'
Fix →
- Install or confirm the ENA and NVMe drivers inside the OS, and add them to the initramfs
- Stop the instance and run
aws ec2 modify-instance-attribute --instance-id i-0abc --ena-support - Change the type, and change
/etc/fstabto use UUIDs, because device names become/dev/nvme*
Prevent → Use current AMIs (AL2023, Ubuntu 22.04/24.04) and move off previous-generation types in planned windows.