- Newest
- Most votes
- Most comments
When importing a VM image to AWS, there are specific requirements for the kernel version and configuration:
-
Xanmod kernels are not explicitly supported for VM Import/Export. AWS VM Import/Export has specific requirements for supported kernel versions, and custom or modified kernels like xanmod may not be compatible.
-
AWS documentation doesn't specify a minimum kernel version, but rather lists supported operating systems for VM Import/Export. For Ubuntu, you should use the standard kernel that comes with the supported Ubuntu version rather than a custom kernel like xanmod.
-
While not explicitly mentioned in the error message, installing cloud-init is generally recommended for imported VMs to ensure proper initialization in the AWS environment. Cloud-init helps with instance provisioning by handling initial configuration tasks when the instance boots.
-
When importing a VM image, you're creating an Amazon Machine Image (AMI) that can run on AWS's virtualization infrastructure. The source hypervisor type (like KVM or XEN) matters less than ensuring your VM meets AWS's requirements. The import process converts your VM to be compatible with AWS's infrastructure.
To resolve your issue, I recommend:
- Use a standard kernel version that comes with a supported Ubuntu release
- Ensure your VM meets all the requirements listed in the VM Import/Export documentation
- Install cloud-init for better integration with AWS
- Use the import-image command with the correct parameters once your VM is properly configured
Sources
Troubleshooting VM Import/Export - VM Import/Export
ImportImage - Amazon Elastic Compute Cloud
Use ImportImage with a CLI - Amazon Elastic Compute Cloud
Do refer to documentation for VM Import supported OS and kernel versions. From what I can tell, your OS and kernel version is not supported.
Alternatively, you can attempt to do a Snapshot Import. You will need to pre-install the Xen drivers and/or ENA drivers for Xen and Nitro instance types respectively.
Relevant content
- asked 4 years ago
