Last active
September 29, 2020 09:13
-
-
Save kwilczynski/36914ee29e31f7dbd27b4f6742dc96b3 to your computer and use it in GitHub Desktop.
Amazon Elastic Network Adapter (ENA) on CentOS 6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum -y install patch dkms kernel-devel | |
wget https://github.com/amzn/amzn-drivers/archive/ena_linux_1.1.3.tar.gz | |
tar zxvf ena_linux_1.1.3.tar.gz -C /usr/src/ | |
mv /usr/src/amzn-drivers-ena_linux_1.1.3 /usr/src/ena-1.1.3 | |
cat <<EOF > /usr/src/ena-1.1.3/dkms.conf | |
PACKAGE_NAME="ena" | |
PACKAGE_VERSION="1.1.3" | |
AUTOINSTALL="yes" | |
REMAKE_INITRD="yes" | |
BUILT_MODULE_LOCATION[0]="kernel/linux/ena" | |
BUILT_MODULE_NAME[0]="ena" | |
DEST_MODULE_LOCATION[0]="/updates" | |
DEST_MODULE_NAME[0]="ena" | |
CLEAN="cd kernel/linux/ena; make clean" | |
MAKE="cd kernel/linux/ena; make BUILD_KERNEL=\${kernelver}" | |
EOF | |
dkms add -m ena -v 1.1.3 | |
dkms build -m ena -v 1.1.3 | |
dkms install -m ena -v 1.1.3 | |
dracut -f --add-drivers ena | |
[root@testing-db004 /usr/src]# modinfo ena | |
filename: /lib/modules/2.6.32-642.15.1.el6.x86_64/extra/ena.ko | |
version: 1.1.3 | |
license: GPL | |
description: Elastic Network Adapter (ENA) | |
author: Amazon.com, Inc. or its affiliates | |
srcversion: 95D68BE3C0E363A5CDA8E13 | |
alias: pci:v00001D0Fd0000EC21sv*sd*bc*sc*i* | |
alias: pci:v00001D0Fd0000EC20sv*sd*bc*sc*i* | |
alias: pci:v00001D0Fd00001EC2sv*sd*bc*sc*i* | |
alias: pci:v00001D0Fd00000EC2sv*sd*bc*sc*i* | |
depends: | |
vermagic: 2.6.32-642.15.1.el6.x86_64 SMP mod_unload modversions | |
parm: debug:Debug level (0=none,...,16=all) (int) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @frank3427, I did.
I use in my Packer build, see: https://github.com/kwilczynski/packer-templates/blob/master/scripts/ec2/networking.sh