To change instance type from t2.large to t3.large on AWS Linux 1, I got an error when I went to start the instance:
An error occurred (InvalidParameterCombination) when calling the StartInstances operation:
Enhanced networking with the Elastic Network Adapter (ENA) is required for the 't3.large' instance type. Ensure that your instance 'i-04ae4c6f7bfa96e51' is enabled for ENA.
Below are the steps I needed to follow.
Summary Steps
Pre-flight Tests on t2
modinfo ena
→ see “ERROR: modinfo: could not find module ena”
ethtool -i eth0 | grep ^driver:
→ see “driver: vif”
Install the Latest Drivers
sudo yum -y update
sudo reboot
modinfo ena | grep ^description:
→ see “description: Elastic Network Adapter (ENA)”
Convert the Instance to t3 to Get ENA Working
aws ec2 stop-instances --instance-ids {instanceid}
aws ec2 modify-instance-attribute --instance-id {instanceid} --instance-type t3.large
aws ec2 start-instances --instance-ids {instanceid}
ethtool -i eth0 | grep ^driver:
→ see “driver: ena”
Detailed Steps
Ensure the latest drivers are installed:
sudo yum -y update
After the reboot, check to ensure the driver is loaded properly:
modinfo ena
Driver not installed:
ERROR: modinfo: could not find module ena
√ Driver installed:
filename: /lib/modules/4.14.232-123.381.amzn1.x86_64/kernel/drivers/amazon/net/ena/ena.ko
version: 2.4.0g
license: GPL
description: Elastic Network Adapter (ENA)
author: Amazon.com, Inc. or its affiliates
srcversion: A0EBAF712C13F1157615C85
alias: pci:v00001D0Fd0000EC21sv*sd*bc*sc*i*
...
Enable ENA on the Instance:
aws ec2 modify-instance-attribute --instance-id {instanceid} --ena-support
aws ec2 modify-instance-attribute --instance-id {instanceid} --no-ena-support
Check that it is enabled:
aws ec2 describe-instances --instance-ids {instanceid} --query "Reservations[].Instances[].EnaSupport"
You should see the string ‘True’ as the result when enabled, and nothing when disabled.
Stop the instance so you can change the instance type:
aws ec2 stop-instances --instance-ids {instanceid}
Change instance type from T2 to T3:
aws ec2 modify-instance-attribute --instance-id {instanceid} --instance-type t3.large
Start the instance:
aws ec2 start-instances --instance-ids {instanceid}
Check the interface:
ethtool -i eth0
Driver not installed:
driver: vif
version:
firmware-version:
bus-info: vif-0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
√ Driver installed:
driver: ena
version: 2.4.0g
firmware-version:
bus-info: 0000:00:05.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
For reference, here is the AWS docs page.
To learn more, visit the Tungsten Clustering Docs or reach out.
Comments
Add new comment