Merge pull request #2824 from justincormack/aws-fixes

Fix sriov flag on AWS
This commit is contained in:
Rolf Neugebauer 2017-12-27 22:49:59 +01:00 committed by GitHub
commit b5d4940f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,9 @@ $ linuxkit build -format aws examples/aws.yml
## Push image
Before you do this you need to create a `vmimport` service role as explained in
[the VM import documentation](http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html).
Do `linuxkit push aws -bucket bucketname aws.raw` to upload it to the
specified bucket, and create a bootable image from the stored image.

View File

@ -48,6 +48,9 @@ func pushAWS(args []string) {
timeout := getIntValue(timeoutVar, *timeoutFlag, 600)
bucket := getStringValue(bucketVar, *bucketFlag, "")
name := getStringValue(nameVar, *nameFlag, "")
if *sriovNetFlag == "" {
sriovNetFlag = nil
}
sess := session.Must(session.NewSession())
storage := s3.New(sess)