Amazon EC2 how to install ixgbevf on a Centos 7 instance?

I am trying to install ixgbevf on an instance of Amazon EC2 CentOS7. The steps look good, but every time I start the instance in extended network mode, for example M4.xlarge, the network seems to be unsuccessful (I can not connect to the instance after starting).

Here is what I did:

wget http://elrepo.org/linux/elrepo/el7/x86_64/RPMS/kmod-ixgbevf-2.16.1-1.el7.elrepo.x86_64.rpm
rpm -ivh kmod-ixgbevf-2.16.1-1.el7.elrepo.x86_64.rpm
cp -p /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
dracut -f

Then turn off the instance and install sriov

ec2-modify-instance-attribute instance_id --sriov simple

It's all. Whenever a type (e.g. T2.micro) does not support Enhanced Networking, the instance works fine. But if I change the type to Enhanced Networking enabled (e.g. M4.xlarge), the instance simply cannot be accessed. Anyone got any about this? Did I miss something?

+4
source share
2 answers

The answer lies in this section of the source documentation:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking.html#enhanced-networking-linux

, CentOS 7 ixgbevf, , . - , , " ", .

, , 6 :

$ rpm -qa | grep -e '^systemd-[0-9]\+\|^udev-[0-9]\+'
$ sudo sed -i '/^GRUB\_CMDLINE\_LINUX/s/\"$/\ net\.ifnames\=0\"/' /etc/default/grub
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg

:

  • AWS

!

+12

Oracle Linux 6.9 ( , RHEL6/CENTOS6), aws, iperf3 r2.xlarge, 2.5Gbps. ethtools vif, ixgbevf. SRIOV , , , 1 /.

[  4] local 10.11.5.61 port 52754 connected to 10.11.5.222 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   268 MBytes  2.25 Gbits/sec   56    559 KBytes
[  4]   1.00-2.00   sec   296 MBytes  2.48 Gbits/sec   54    629 KBytes
[  4]   2.00-3.00   sec   296 MBytes  2.48 Gbits/sec   61    551 KBytes
[  4]   3.00-4.00   sec   296 MBytes  2.48 Gbits/sec   62    454 KBytes
[  4]   4.00-5.00   sec   296 MBytes  2.48 Gbits/sec   55    551 KBytes
[  4]   5.00-6.00   sec   288 MBytes  2.42 Gbits/sec   50    454 KBytes
[  4]   6.00-7.00   sec   291 MBytes  2.44 Gbits/sec   55    559 KBytes
[  4]   7.00-8.00   sec   296 MBytes  2.48 Gbits/sec   55    507 KBytes
[  4]   8.00-9.00   sec   296 MBytes  2.48 Gbits/sec   60    472 KBytes
[  4]   9.00-10.00  sec   296 MBytes  2.48 Gbits/sec   59    559 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  2.85 GBytes  2.45 Gbits/sec  567             sender
[  4]   0.00-10.00  sec  2.85 GBytes  2.45 Gbits/sec                  receiver

, , , .

ENA, , m4 c4. m5 c5.

0

All Articles