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         
    

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인