大网数据广告活动
服务器运维问答

How Amazon VM import validates kernel version?

· 52CE 我爱测

I'm trying to import a Centos 7.6-1810 VM with the latest stable kernel on Amazon, but the import process fails with the following error: $ aws ec2 describe-import-image-tasks { "Status": "deleted", "SnapshotDetails": [ { "Status…

问题原文

原帖链接 · Eduardo Baitello · CC BY-SA 4.0

I'm trying to import a Centos 7.6-1810 VM with the latest stable kernel on Amazon, but the import process fails with the following error:

$ aws ec2 describe-import-image-tasks    
{
        "Status": "deleted",
        "SnapshotDetails": [
            {
                "Status": "completed",
                "UserBucket": {
                    "S3Bucket": "my-bucket",
                    "S3Key": "packer-import-xxxxxxx.ova"
                },
                "DiskImageSize": 1576340992.0,
                "Format": "VMDK"
            }
        ],
        "StatusMessage": "ClientError: Unsupported kernel version 5.0.8-1.el7.elrepo.x86_64",
        "ImportTaskId": "import-ami-xxxxxxxxx"
    }

I know the VM Import/Export Requirements, but it is not so clear about the CentOS supported kernel versions:

The following operating systems can be imported to and exported from Amazon EC2:

  • Red Hat Enterprise Linux (RHEL) 5.1-5.11, 6.1-6.9, 7.0-7.6 (6.0 lacks required drivers)
  • CentOS 5.1-5.11, 6.1-6.6, 7.0-7.6 (6.0 lacks required drivers)

Imported Linux VMs should use default kernels for best results. VMs that use custom Linux kernels might not migrate successfully.

My question is:

  • How Amazon identifies the Kernel version during the VM import process?
  • Can I assume that only the default CentOS kernel versions are supported? Or the problem is that I'm using an Elrepo kernel package?
  • There is a way to overcome this and use at least the 3.16.65 longterm kernel version? (which contains the latest security fixes).

已采纳解答

原帖链接 · John Mahowald · CC BY-SA 4.0

AWS has not provided a complete list of acceptable kernels for several years now. Despite having specific acceptable minor releases of distros as prerequisites. So it might not be able to comprehend a RHEL 7 instance with a kernel that isn't 3.10. See Server Fault circa 2016: What Linux Kernel Versions are Acceptable for AMI Import to Amazon Web Services?

Remove your third party kernels, and add them back after import.

This is merely speculation, but it is not difficult to inspect the file system on a disk image. The distros store their bootloaders and kernels with predictable file names.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-04-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。