aws ec2 export-image failure: "ClientError: Unable to determine machine architecture, cannot locate kernel modules"

0

fail to export ami to S3 bucket. execute command:

aws ec2 export-image --image-id ami-xxxxxx --disk-image-format VMDK --s3-export-location S3Bucket=my-s3-bucket,S3Prefix=/

response:

{
    "DiskImageFormat": "VMDK",
    "ExportImageTaskId": "export-ami-03d9fd4a9cae4a944",
    "ImageId": "ami-xxxxxx",
    "Progress": "0",
    "S3ExportLocation": {
        "S3Bucket": "my-s3-bucket",
        "S3Prefix": "/"
    },
    "Status": "active",
    "StatusMessage": "validating"
}

execute command:

aws ec2 describe-export-image-tasks --export-image-task-ids export-ami-03d9fd4a9cae4a944

response:

{
    "ExportImageTasks": [
        {
            "ExportImageTaskId": "export-ami-03d9fd4a9cae4a944",
            "S3ExportLocation": {
                "S3Bucket": "my-s3-bucket",
                "S3Prefix": "/"
            },
            "Status": "cancelling",
            "StatusMessage": "ClientError: Unable to determine machine architecture, cannot locate kernel modules",
            "Tags": []
        }
    ]
}
spensor
asked 8 months ago302 views
2 Answers
0

Hello.

I couldn't find much useful information even after searching for the error message.
The following document is a troubleshooting document, but it did not mention the error you are encountering.
https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-troubleshooting.html

By the way, is the kernel version of the AMI OS listed in the document below?
If you are using something that is not listed, that may be the cause of the error.
https://docs.aws.amazon.com/vm-import/latest/userguide/prerequisites.html#vmimport-operating-systems

profile picture
EXPERT
answered 8 months ago
  • the ami is created based on

      ami-0c8c75e1963a52738
      debian-11-amd64-20240104-1616
      Debian 11 (20240104-1616)
      OwnerAlias: amazon    
      Platform: Debian    
      Architecture: x86_64    
      Owner: 136693071363 
      Publish date: 2024-01-04
      Root device type: ebs    
      Virtualization: hvm                         
      ENA enabled: Yes             
    
    

    as i know ,

      Operating system: Debian , 
      Version: 11
      Kernel: 5.10.0
    
0

Hi,

Can you tell us more about the EC2 instance that you're exporting: ec2 instance type, initial ami, os version, etc. ?

Best,

Didier

profile pictureAWS
EXPERT
answered 8 months ago
  • ec2 Instance type: t3.xlarge initial ami and os version as following

      ami-0c8c75e1963a52738
      debian-11-amd64-20240104-1616
      Debian 11 (20240104-1616)
      OwnerAlias: amazon    
      Platform: Debian    
      Architecture: x86_64    
      Owner: 136693071363 
      Publish date: 2024-01-04
      Root device type: ebs    
      Virtualization: hvm                         
      ENA enabled: Yes         
    

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions