Browse code

AWS AMI: Enable SRIOV networking

Some EC2 instance types (such as C3, D4, D2, I2 etc) provide enhanced
networking capabilities (upto 10 Gbps bandwidth) with the Intel 82599
VF interface, which uses the Intel ixgbevf driver. To use this, we
need to register the AMI with sriov-net support enabled. So modify the
AMI generator script to add sriov-net support, in addition to the
(already existing) support for ENA.

Change-Id: I79b66d015e12335d1729d8c44daceba167375cef
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4890
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

Srivatsa S. Bhat authored on 2018/03/16 09:01:17
Showing 1 changed files
... ...
@@ -301,7 +301,7 @@ while : ; do
301 301
 done
302 302
 
303 303
 #register the image name
304
-AMI_IMAGE_ID=`aws ec2 register-image --region $AWS_DEFAULT_REGION --name $TAR_FILE --root-device-name $EBS_IMAGE_ROOT_DEVICE_NAME --ena-support --block-device-mappings DeviceName=$EBS_IMAGE_ROOT_DEVICE_NAME,Ebs={SnapshotId=$SNAPSHOT_ID} --virtualization-type hvm --architecture x86_64 --output=text --query 'ImageId'`
304
+AMI_IMAGE_ID=`aws ec2 register-image --region $AWS_DEFAULT_REGION --name $TAR_FILE --root-device-name $EBS_IMAGE_ROOT_DEVICE_NAME --sriov-net-support simple --ena-support --block-device-mappings DeviceName=$EBS_IMAGE_ROOT_DEVICE_NAME,Ebs={SnapshotId=$SNAPSHOT_ID} --virtualization-type hvm --architecture x86_64 --output=text --query 'ImageId'`
305 305
 
306 306
 #check the status of the AMI
307 307
 count=0