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         
    

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ