Unable to create SpanVA AMI image from OVA
search cancel

Unable to create SpanVA AMI image from OVA

book

Article ID: 275175

calendar_today

Updated On:

Products

CASB Gateway Advanced

Issue/Introduction

When running the python command to import the image, it returns the error: Invalid JSON received:

 

 

Resolution

1) Follow the steps in the AWS documentation to create a policy, create a role, then assign the policy to the role.

2) Create a file named containers.json with the following content. Modify the S3Bucket with your bucket name. Also modify the path to the image .ova file if needed

[
  {
    "Description": "SpanVA",
    "Format": "ova",
    "UserBucket": {
        "S3Bucket": "<your bucket name>",
        "S3Key": "ova/agent_image_1.15.3.151.0-8rc_generic.ova"
    }
  }
]

3) From the AWS CLI prompt, run the following command:

aws ec2 import-image --region <your AWS region> --cli-input-json containers.json

 

When the command runs, it will return an ImportTaskId. You can check the status of that import with the following command:

aws ec2 describe-import-image-tasks --import-task-ids <ImportTaskId>