Tuesday, 30 April 2019

How to resolve ERROR Invalid kernel (EC2 incompatible kernel) by Raj Gupta

If our EC2 server are giving below error

ERROR Invalid kernel: elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images xc_dom_parse_image returned -1 


Root Cause:-

• Supplied kernel is not supported by GRUB
• Fallback kernel does not exist

Solution:- 

A.  If server is Amazon EBS-backed:-

Use the following procedure: 

1. Stop the instance. 
2. Replace with working kernel. 
3. Install a fallback kernel. 
4. Modify the AMI by correcting the kernel.

B. If server is Instance store-backed:-

Use the following procedure: 

1. Terminate the instance and launch a new instance with the correct kernel. 
2. Create an AMI with the correct kernel.

1 comment: