<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.ciscolinux.co.uk/index.php?action=history&amp;feed=atom&amp;title=AWS%2FEnable_ENA_Support_in_Ubuntu</id>
	<title>AWS/Enable ENA Support in Ubuntu - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ciscolinux.co.uk/index.php?action=history&amp;feed=atom&amp;title=AWS%2FEnable_ENA_Support_in_Ubuntu"/>
	<link rel="alternate" type="text/html" href="http://wiki.ciscolinux.co.uk/index.php?title=AWS/Enable_ENA_Support_in_Ubuntu&amp;action=history"/>
	<updated>2026-04-05T09:01:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>http://wiki.ciscolinux.co.uk/index.php?title=AWS/Enable_ENA_Support_in_Ubuntu&amp;diff=3425&amp;oldid=prev</id>
		<title>Pio2pio: Pio2pio moved page AWS Enable ENA Support in Ubuntu to AWS/Enable ENA Support in Ubuntu without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="http://wiki.ciscolinux.co.uk/index.php?title=AWS/Enable_ENA_Support_in_Ubuntu&amp;diff=3425&amp;oldid=prev"/>
		<updated>2018-12-20T19:29:04Z</updated>

		<summary type="html">&lt;p&gt;Pio2pio moved page &lt;a href=&quot;/index.php?title=AWS_Enable_ENA_Support_in_Ubuntu&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;AWS Enable ENA Support in Ubuntu (page does not exist)&quot;&gt;AWS Enable ENA Support in Ubuntu&lt;/a&gt; to &lt;a href=&quot;/index.php/AWS/Enable_ENA_Support_in_Ubuntu&quot; title=&quot;AWS/Enable ENA Support in Ubuntu&quot;&gt;AWS/Enable ENA Support in Ubuntu&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:29, 20 December 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pio2pio</name></author>
	</entry>
	<entry>
		<id>http://wiki.ciscolinux.co.uk/index.php?title=AWS/Enable_ENA_Support_in_Ubuntu&amp;diff=2568&amp;oldid=prev</id>
		<title>Pio2pio: Created page with &quot;In order to enable this feature, you must launch an HVM AMI with the appropriate drivers. C5, R4, X1, I3, P3, P2, G3, and m4.16xlarge instances provide the Elastic Network Ada...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ciscolinux.co.uk/index.php?title=AWS/Enable_ENA_Support_in_Ubuntu&amp;diff=2568&amp;oldid=prev"/>
		<updated>2017-11-25T18:39:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In order to enable this feature, you must launch an HVM AMI with the appropriate drivers. C5, R4, X1, I3, P3, P2, G3, and m4.16xlarge instances provide the Elastic Network Ada...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In order to enable this feature, you must launch an HVM AMI with the appropriate drivers. C5, R4, X1, I3, P3, P2, G3, and m4.16xlarge instances provide the Elastic Network Adapter (ENA) interface (which uses the “ena” Linux driver) for Enhanced Networking. C3, C4, R3, I2, M4 (except m4.16xlarge) and D2 instances use Intel® 82599g Virtual Function Interface (which uses the “ixgbevf” Linux driver). Amazon Linux AMI includes both of these drivers by default. For AMIs that do not contain these drivers, you will need to download and install the appropriate drivers based on the instance types you plan to use. You can use Linux or Windows instructions to enable Enhanced Networking in AMIs that do not include the SR-IOV driver by default. Enhanced Networking is only supported in Amazon VPC.&lt;br /&gt;
&lt;br /&gt;
This is required for any instance running on new Amazon EC2 (own built hypervisor) built on core Linux Kernel-based Virtual Machine (KVM) technology, but does not include general purpose operating system components&lt;br /&gt;
&lt;br /&gt;
= Verify current settings =&lt;br /&gt;
== Verify Instance Attribute (enaSupport) ==&lt;br /&gt;
 aws ec2 describe-instances --instance-ids i-0303ce0e47eac5f7d --query 'Reservations[].Instances[].EnaSupport' --profile devops-vpc&lt;br /&gt;
 Verify Image Attribute (enaSupport)&lt;br /&gt;
 aws ec2 describe-images --image-id ami-8fd760f6 --query 'Images[].EnaSupport' --profile devops-vpc #official eu-west-1 xenial 16.04 amd64 hvm-ssd 20171121.1 ami-8fd760f6&lt;br /&gt;
 [&lt;br /&gt;
     true&lt;br /&gt;
 ]&lt;br /&gt;
&lt;br /&gt;
== Check if your network adapter is using ena driver ==&lt;br /&gt;
 [ec2-user ~]$ ethtool -i eth0&lt;br /&gt;
 driver: ena&lt;br /&gt;
 version: 0.6.6&lt;br /&gt;
&lt;br /&gt;
= Enable ENA =&lt;br /&gt;
==Update ENA drives on Ubuntu 16.04 and modify an instance-attribute to SupportENA==&lt;br /&gt;
===Install driver===&lt;br /&gt;
 ubuntu:~$ sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade -y&lt;br /&gt;
 ubuntu:~$ sudo apt-get install -y build-essential dkms&lt;br /&gt;
 ubuntu:~$ git clone https://github.com/amzn/amzn-drivers&lt;br /&gt;
 ubuntu:~$ sudo mv amzn-drivers /usr/src/amzn-drivers-1.0.0&lt;br /&gt;
&lt;br /&gt;
Create DMKS config file&lt;br /&gt;
 ubuntu:~$ sudo touch /usr/src/amzn-drivers-1.0.0/dkms.conf&lt;br /&gt;
 ubuntu:~$ sudo vim /usr/src/amzn-drivers-1.0.0/dkms.conf&lt;br /&gt;
 PACKAGE_NAME=&amp;quot;ena&amp;quot;&lt;br /&gt;
 PACKAGE_VERSION=&amp;quot;1.0.0&amp;quot;&lt;br /&gt;
 CLEAN=&amp;quot;make -C kernel/linux/ena clean&amp;quot;&lt;br /&gt;
 MAKE=&amp;quot;make -C kernel/linux/ena/ BUILD_KERNEL=${kernelver}&amp;quot;&lt;br /&gt;
 BUILT_MODULE_NAME[0]=&amp;quot;ena&amp;quot;&lt;br /&gt;
 BUILT_MODULE_LOCATION=&amp;quot;kernel/linux/ena&amp;quot;&lt;br /&gt;
 DEST_MODULE_LOCATION[0]=&amp;quot;/updates&amp;quot;&lt;br /&gt;
 DEST_MODULE_NAME[0]=&amp;quot;ena&amp;quot;&lt;br /&gt;
 AUTOINSTALL=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Build, and install the ena module on your instance using dkms&lt;br /&gt;
 ubuntu:~$ sudo dkms add -m amzn-drivers -v 1.0.0       # Add the module to dkms&lt;br /&gt;
 ubuntu:~$ sudo dkms build -m amzn-drivers -v 1.0.0     # Build the module using dkms&lt;br /&gt;
 ubuntu:~$ sudo dkms install -m amzn-drivers -v 1.0.0   # Install the module using dkms&lt;br /&gt;
&lt;br /&gt;
Rebuild initramfs so the correct module is loaded at boot time.&lt;br /&gt;
 ubuntu:~$ sudo update-initramfs -c -k all&lt;br /&gt;
&lt;br /&gt;
=== Modify ec2 instance-attribute to SupportENA ===&lt;br /&gt;
 aws ec2  stop-instances --instance-ids i-0b7f3342388888888 --dry-run --profile devops-vpc&lt;br /&gt;
 aws ec2 modify-instance-attribute --instance-id i-0b7f3342388888888 --ena-support --profile devops-vpc&lt;br /&gt;
 aws ec2 describe-instances --instance-ids i-0b7f3342388888888 --query 'Reservations[].Instances[].EnaSupport' --profile devops-vpc&lt;br /&gt;
 [&lt;br /&gt;
     true&lt;br /&gt;
 ]&lt;br /&gt;
 aws ec2 start-instances --instance-ids i-0b7f3342388888888&lt;br /&gt;
To avoid stop starting instances you can reload kernel module (not recommended)&lt;br /&gt;
 sudo rmmod ena &amp;amp;&amp;amp; sudo modprobe ena&lt;br /&gt;
&lt;br /&gt;
Now login to a box and check a network interface driver in use&lt;br /&gt;
 [ec2-user ~]$ ethtool -i eth0&lt;br /&gt;
 driver: ena&lt;br /&gt;
 version: 1.4.0g&lt;br /&gt;
&lt;br /&gt;
= References =&lt;br /&gt;
* [http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking-ena.html#enhanced-networking-ena-ubuntu Enabling Enhanced Networking with the Elastic Network Adapter (ENA) on Ubuntu Instances in a VPC] AWS docs&lt;/div&gt;</summary>
		<author><name>Pio2pio</name></author>
	</entry>
</feed>