Importing the vSZ Image

Follow these steps to import the vSZ image into AWS shared AMI.
  1. Create a JSON file called import.json using the following commands. Replace the bucket name with the storage bucket name that you created. In this example, the vSZ image file name is vscg-3.4.0.0.750.ova.
    {
        "Description": "Import vSZ",
        "DiskContainers": [
            {
                "Description": "vSZ 3.4.0.0.750",
                "UserBucket":{
                    "S3Bucket": "<bucket-name>",
                    "S3Key": "vscg-3.4.0.0.750.ova"
                }
            }
        ]
    }
  2. Run the following command to attach the policy to the role created. # aws ec2 import-image --cli-input-json file://import.json
  3. The system displays the below response.
    {
        "Status": "active", 
        "Description": "Import vSZ", 
        "Progress": "2", 
        "SnapshotDetails": [
            {
                "UserBucket": {
                    "S3Bucket": "<bucket-name>",                 "S3Key": "vscg-3.4.0.0.750.ova"
                }, 
                "DiskImageSize": 0.0
            }
        ], 
        "StatusMessage": "pending", 
        "ImportTaskId": "import-ami-ffgof9w1"
    }
  4. Check the status of the import vSZ image by running the following command. Ensure to enter the correct import task identifier.# aws ec2 describe-import-image-tasks --import-task-ids "import-ami-ffgof9w1"
  5. You will see the following converting status response. Check the status until the converting is complete. The estimated time for conversion is 30 minutes.
    {
        "ImportImageTasks": [
            {
                "Status": "active", 
                "Description": "vSZ test", 
                "Progress": "28", 
                "SnapshotDetails": [
                    {
                        "UserBucket": {
                            "S3Bucket": "<bucket-name>", 
                            "S3Key": "vscg-3.4.0.0.750.ova"
                        }, 
                        "DiskImageSize": 964430848.0, 
                        "Format": "VMDK"
                    }
                ], 
                "StatusMessage": "converting", 
                "ImportTaskId": "import-ami-ffgof9w1"
            }
        ]
    }