What do I need to do before migrating my EC2 instance to a sixth generation instance to make sure that I get maximum network performance?

Last updated: 2022-08-16

I want to migrate my Amazon Elastic Compute Cloud (Amazon EC2) instance to a sixth generation instance. What steps should I take before migrating to make sure that I get the optimal networking performance from my new instance?

Short description

Sixth generation instances (except C6g, M6g, and R6g instances) might require an updated driver for the Elastic Network Adapter (ENA). Running older ENA drivers with sixth generation instances might lead to suboptimal performance or elastic network interface attachment failure. Before migrating to sixth generation instances, make sure that your AMI includes compatible drivers. Or, if you plan to launch the instance with a new AMI, make sure that you select the correct AMI version with embedded compatible drivers.


To make sure that the appropriate driver is installed before migration, do the following:

1.    If you're using Amazon Linux 2, or if you ever updated the ENA driver for any OS from the Amazon ENA GitHub repository, then verify the ENA driver version by running the following command:

modinfo ena

2.    Use the command results and the following table to verify that your ENA driver is updated. If the results are lower than the value in the Version column of the table, then update the driver.

Environment Version
Linux ENA GitHub ENA driver version v2.2.9
Linux upstream Kernel version 5.9
Amazon Linux 2 Kernel 4.14.186
Red Hat Enterprise Linux (RHEL) RHEL 8.3 kernel 4.18.0-240.1.1.el8_3.ARCH
SUSE Linux Enterprise Server (SLES) SLE 12 SP4 kernel 4.12.14-95.99.3
SLE 12 SP5 kernel 4.12.14-122.116.1
SLE 15 kernel 4.12.14-150000.150.92.2
SLE 15 SP1 kernel 4.12.14-150100.197.114.2
SLE 15 SP2 kernel 5.3.18-24.15.1 and all later SLE version kernels
Linux Ubuntu 20.04 kernel 5.4.0-1025-aws
Windows ENA driver version v2.2.3 and May 2021 Windows AMI or newer
DPDK v20.11
FreeBSD v2.3.1

Note: The following older ENA driver versions result in elastic network interface attachment failure with sixth generation instances.

  • ENA Linux: Less than v1.2.0
  • ENA Windows: Less than v2.0.0
  • ENA DPDK: Less than v1.1.1
  • ENA VMware ESXi: Less than 1.6.0
  • ENA FreeBSD: Less than v2.3.1

Did this article help?

Do you need billing or technical support?