Forked from MennoTammens/gist:95045af97914a00db0e2d542a9b00fe2
Created
June 15, 2021 16:33
-
-
Save alexandreags/2d0d99475537a90f85aa04b3b7a21dfd 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 --enablerepo=extras install epel-release | |
yum -y install patch dkms kernel-devel perl | |
yum update | |
curl -o ena_linux_1.5.0.tar.gz https://codeload.github.com/amzn/amzn-drivers/tar.gz/ena_linux_1.5.0 | |
tar zxvf ena_linux_1.5.0.tar.gz | |
mv amzn-drivers-ena_linux_1.5.0 /usr/src/ena-1.5.0 | |
cat <<EOF > /usr/src/ena-1.5.0/dkms.conf | |
PACKAGE_NAME="ena" | |
PACKAGE_VERSION="1.5.0" | |
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.5.0 | |
dkms build -m ena -v 1.5.0 | |
dkms install -m ena -v 1.5.0 | |
dracut -f --add-drivers ena | |
[root@testing-db004 /usr/src]# modinfo ena | |
filename: /lib/modules/2.6.32-696.16.1.el6.x86_64/extra/ena.ko | |
version: 1.5.0g | |
license: GPL | |
description: Elastic Network Adapter (ENA) | |
author: Amazon.com, Inc. or its affiliates | |
srcversion: 45908797EEF26FC3CC25173 | |
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-696.16.1.el6.x86_64 SMP mod_unload modversions | |
parm: debug:Debug level (0=none,...,16=all) (int) | |
aws ec2 modify-instance-attribute --instance-id i-0123456789abcdef --ena-support |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment