We have a custom Debian10 (buster) ISO and want to create an AMI using this iso.
We followed the steps from AWS documentation Importing a VM as an image using VM Import/Export but getting the below error :
ClientError: Unsupported kernel version 4.19.0-17-cloud-amd64
We tried the same process with the stock Debian10 iso too and got the same error.
Steps followed:
Export image from VMWare
Upload the image to S3
Import the VM using the below command
aws ec2 import-image --description "My server VM" --disk-containers "file://containers.json"
containers.json
[
{
"Description": "Debian 10",
"Format": "ova",
"UserBucket": {
"S3Bucket": "iso-to-ami",
"S3Key": "debian-10.ova"
}
]
Check upload status
aws ec2 describe-import-image-tasks --import-task-ids import-ami-xxxxxxxxxxx
Error message
{
"ImportImageTasks": [
{
"Description": "Debian-10-custom latest OVA",
"ImportTaskId": "import-ami-xxxxxxxxx",
"LicenseType": "BYOL",
"SnapshotDetails": [
{
"DeviceName": "/dev/sdf",
"DiskImageSize": 1271036416.0,
"Format": "VMDK",
"Status": "completed",
"UserBucket": {
"S3Bucket": "iso-to-ami",
"S3Key": "debian-10.ova"
}
}
],
"Status": "deleted",
"StatusMessage": "ClientError: Unsupported kernel version 4.19.0-17-cloud-amd64"
}
]
}