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: Idfa56c9839ae0581df5ffd4d716a1871296b885b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4893
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Dheeraj S Shetty <dheerajs@vmware.com>
| ... | ... |
@@ -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 |