1

I'm trying to accomplish something that's a bit outside of my comfort area, and after asking around and googling without success I thought I'd try here.

I'm trying to import a Linux VirtualBox VM into AWS. The issue is that the AWS import routine doesn’t like Oracle Enterprise/Unbreakable Linux (which the VirtualBox images that I'm in receipt of are built on). According to a blog post there are 4 supported distributions and Oracle Linux isn’t one of them (however RedHat, which Oracle Linux is based upon, is on the list). I am hopeful that swapping to RedHat would solve the issue.

I’ve found a blog post showing how to swap the kernel in the grub bootloader (this is their picture, not mine):

enter image description here

However I’m straying outside of my area of expertise here. I can vi the file, however (unlike the image above) the only listing is Oracle Linux, there are no entries for Red Hat etc. that I can swap to.

The question that I need a bit of help with is how do I get extra entries into grub.conf? I’m assuming that I need to load the RedHat kernel and then point to it here. Is that right?

Thanks for any help

DuncanDavies
  • 41
  • 1
  • 6
  • If you created an HVM instance you shouldn't need to do anything special to boot the system. – Michael Hampton Jun 07 '15 at 21:29
  • Thanks Michael. I don't even get to the point of being able to boot however. The 'ec2-import-instance' command fails with 'ClientError: Unsupported kernel version 2.6.39-400.215.10.el5uek'. – DuncanDavies Jun 07 '15 at 23:12

1 Answers1

1

You need to install package named 'kernel':

yum install kernel

In Oracle UEK, there are 3 types of kernel packages available:

  • kernel
  • kernel-transition
  • kernel-uek

Kernel obviously is RedHat Compatible Kernel (RHCK), transition package enables you to move dependencies from RHCK to Oracle kernel, and kernel-uek is actual Oracle kernel.

Installing the package will, if successful, bring grub entries.

Jakov Sosic
  • 5,157
  • 3
  • 22
  • 33