Skip to content

Instantly share code, notes, and snippets.

@pstengel
Last active August 20, 2019 08:01
Show Gist options
  • Save pstengel/ba1d730ed6bf286faee7 to your computer and use it in GitHub Desktop.
Save pstengel/ba1d730ed6bf286faee7 to your computer and use it in GitHub Desktop.
Install the latest ixgbevf driver for AWS enhanced networking
#!/bin/bash
VERSION="2.16.4"
apt-get update && apt-get install -y dkms
wget "http://sourceforge.net/projects/e1000/files/ixgbevf stable/${VERSION}/ixgbevf-${VERSION}.tar.gz"
tar -C /usr/src -zxvf ixgbevf-${VERSION}.tar.gz
rm -f ixgbevf-${VERSION}.tar.gz
cat > /usr/src/ixgbevf-${VERSION}/dkms.conf << EOF
PACKAGE_NAME="ixgbevf"
PACKAGE_VERSION="$VERSION"
CLEAN="cd src/; make clean"
MAKE="cd src/; make BUILD_KERNEL=\${kernelver}"
BUILT_MODULE_LOCATION[0]="src/"
BUILT_MODULE_NAME[0]="ixgbevf"
DEST_MODULE_LOCATION[0]="/updates"
DEST_MODULE_NAME[0]="ixgbevf"
AUTOINSTALL="yes"
EOF
dkms add -m ixgbevf -v $VERSION
dkms build -m ixgbevf -v $VERSION
dkms install -m ixgbevf -v $VERSION
update-initramfs -c -k all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment