Enabling ENI on CentOS7

Enabling ENI on CentOS7

yum update
modinfo ena
exit
modinfo ena
exit
ethtool -i eth0
aws ec2 modify-instance-attribute --instance-id i-xxxxxxxxxxxxx --ena-support
exit
yum -y install gcc make rpm-build
make
cd ena/
ls
cd amzn-drivers/
ls
cd kernel/
ls
cd linux/
ls
cd rpm/
ls
make cd .. && git archive --format=tar --prefix=ena-1.5.3/ -o rpm/ena-1.5.3.tar ena_linux_1.5.3
make
cd ..
git archive --format=tar --prefix=ena-1.5.3/ -o rpm/ena-1.5.3.tar ena_linux_1.5.3
git archive --format=tar --prefix=ena-1.5.3/ -o rpm/ena-1.5.3.tar ena_linux_1.5.3
rpmbuild -bs             --define '_topdir %(pwd)' --define '_ntopdir %(pwd)'             --define '_builddir  %{_ntopdir}'             --define '_sourcedir %{_ntopdir}'             --define '_specdir   %{_ntopdir}'             --define '_rpmdir    %{_ntopdir}'             --define '_srcrpmdir %{_ntopdir}'         ena.spec
ls
cd rpm/
ls
git archive --format=tar --prefix=ena-1.5.3/ -o rpm/ena-1.5.3.tar ena_linux_1.5.3
rpmbuild -bs             --define '_topdir %(pwd)' --define '_ntopdir %(pwd)'             --define '_builddir  %{_ntopdir}'             --define '_sourcedir %{_ntopdir}'             --define '_specdir   %{_ntopdir}'             --define '_rpmdir    %{_ntopdir}'             --define '_srcrpmdir %{_ntopdir}'         ena.spec
ls
rpmbuild --rebuild ena-1.5.3-1.el7.7.src.rpm 
yum list dkms
yum install dkms
man dracut
dracut -f -v
ls
cd amzn-drivers/
ls
cd kernel/
ls
cd linux/
ls
cd ena/
ls
cd ..
ls
cd rpm/
ls
cd ..
ls
cd ..
ls
cd ..
ls
vi README.md 
cd ./kernel/linux/rpm/README-rpm.txt
ls
cd ./kernel/linux/rpm/README-rpm.txt
cd ./kernel/linux/rpm/
vi README-rpm.txt 
yum -y install kernel-{devel,headers}
vi README-rpm.txt 
pwd
vi README-rpm.txt 
cd
exit
yum --enablerepo=extras install epel-release
yum -y install patch dkms kernel-devel perl
cd /tmp
curl -o ena_linux_1.5.3.tar.gz https://codeload.github.com/amzn/amzn-drivers/tar.gz/ena_linux_1.5.3
tar zxvf ena_linux_1.5.3.tar.gz
mv amzn-drivers-ena_linux_1.5.3 /usr/src/ena-1.5.3
cat <<EOF > /usr/src/ena-1.5.3/dkms.conf
PACKAGE_NAME="ena"
PACKAGE_VERSION="1.5.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.5.3
dkms build -m ena -v 1.5.3
dkms install -m ena -v 1.5.3
dracut -f --add-drivers ena
modinfo ena
cd
exit
sudo sed -i '/^GRUB\_CMDLINE\_LINUX/s/\"$/\ net\.ifnames\=0\"/' /etc/default/grub
vi /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
exit
clear
exit

Published:
comments powered by Disqus