Linux Kernel Versions – Acceptable Linux Kernel Versions for AMI Import to AWS

amazon ec2amazon-web-servicesUbuntu

I have a stock image of Ubuntu Server 16.04 exported as an OVA from VirtualBox. After the proper permissions are set up to import that OVA into AWS EC2 as an image, and it's loaded into S3, the process haults during the import with a status of:

deleted ClientError: Unsupported kernel version 4.4.0-21-generic

My first reaction is to search the AWS documentation for what kernel versions they WOULD accept. That eludes me.

What versions are acceptable for import, and where is the documentation on that in AWS?

Import

aws ec2 import-image --description "Ubuntu Server 16.04 LTS" --disk-containers file://ubuntuContainer.json

ubuntuContainer.json

[{
    "Description": "Import Task",
    "Format": "ova",
    "UserBucket": {
        "S3Bucket": "myBucket",
        "S3Key": "somePath/UbuntuServer16.04LTS.ova"
    }
}]

Check status

aws ec2 describe-import-image-tasks --cli-input-json "{ \"ImportTaskIds\": [\"import-ami-abcd1234\"]}"

Results

IMPORTIMAGETASKS    Shindig Ubuntu Server 16.04 LTS import-ami-abcd1234 deleted ClientError: Unsupported kernel version 4.4.0-21-generic
SNAPSHOTDETAILS 1006215680.0    VMDK
USERBUCKET  myBucket somePath/UbuntuServer16.04LTS.ova

Best Answer

Go to this Importing a VM into Amazon EC2 as an Image

And dig deeper, you will see this VM Import/Export Prerequisites. Although it doesn't mentioned Ubuntu 16.04 in there, you should file a ticket to AWS to ask them whether they accept 16.04 .

You can try to meet ALL the VM creation before submitting the image.

There is a Ubuntu 16.04 AMI found here means somehow they approve it. So please check with AWS .

Related Topic