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
已提問 3 個月前檢視次數 155 次
2 個答案
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
專家
已回答 3 個月前
  • 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
專家
已回答 3 個月前
  • 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         
    

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南