"Unsupported specified file format" when importing VM as an image from S3

0

I'm trying to import a VM image from S3 to create an EC2 image from it. I'm following this documentation:

https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html

I tried to import a VMDK, then an OVA, then again a VMDK but created differently, and none of this worked. In all case, I'm getting the following error:

"ClientError: Disk validation failed [Unsupported specified file format]",

This is full output:

{
    "ImportImageTasks": [
        {
            "Description": "web-srv",
            "ImportTaskId": "import-ami-xxxxxx",
            "SnapshotDetails": [
                {
                    "DiskImageSize": 0.0,
                    "Status": "completed",
                    "Url": "s3://path/to/image.vmdk"
                }
            ],
            "Status": "deleted",
            "StatusMessage": "ClientError: Disk validation failed [Unsupported specified file format]",
            "Tags": []
        }
    ]
}

This error doesn't appear to be documented, and the documentation is not clear how an image compatible with the ec2 import-image command can be created.

Any idea what can be done? Is it possible to get a detailed error message for example? Or some detailed instructions on how to create an image that will work with AWS?

Laurent
demandé il y a 7 mois533 vues
3 réponses
0

Hi,

Please, follow this page to prepare a VM export properly in order to import into EC2: https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html

This guidance applies to VMware, Citrix, Microsoft Hyper-V and Microsoft Azure as source environments.

Best,

Didier

profile pictureAWS
EXPERT
répondu il y a 7 mois
0

Thank you, but as you can see in my post this is the post I've been following. I did manage to successfully run all the commands so I think everything is setup properly, except that AWS fails to import the image at the end

Laurent
répondu il y a 7 mois
0

Encountered similar message previously. I resolved it by converting VMDK to VHD format using a free V2V converter software.

AWS
EXPERT
Mike_L
répondu il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions