This discussion is archived
1 Reply Latest reply: Sep 15, 2013 5:41 AM by rukbat RSS

Install OEL in Amazon EC2

karthiksingh_dba Explorer
Currently Being Moderated

Dear Legends,


Can any one please let me know what should be required to install OEL 5.7 x64 in a local VM ware or VBox and then I need to move it to Amazon EC2.

1. Install kernel ec2

2. Enable PVM


And also How should be the /etc/fstab  and /boot/grub/menu.lst should look like? Is the following one is right one?


[root@localhost ~]# cat /etc/fstab

/dev/sda1               /                       ext3    defaults        1 1

#LABEL=/                 /                       ext3    defaults        1 1

tmpfs                   /dev/shm                tmpfs   defaults        0 0

devpts                  /dev/pts                devpts  gid=5,mode=620  0 0

sysfs                   /sys                    sysfs   defaults        0 0

proc                    /proc                   proc    defaults        0 0


[root@localhost boot]# ls


grub                          vmlinuz-2.6.18-274.el5xen

initrd-2.6.18-274.el5xen.img  xen.gz-2.6.18-274.el5

symvers-2.6.18-274.el5xen.gz  xen-syms-2.6.18-274.el5


[root@localhost grub]# cat menu.lst

# grub.conf generated by anaconda


# Note that you do not have to rerun grub after making changes to this file

# NOTICE:  You do not have a /boot partition.  This means that

#          all kernel and initrd paths are relative to /, eg.

#          root (hd0,0)

#          kernel /boot/vmlinuz-version ro root=/dev/sda1

#          initrd /boot/initrd-version.img






title OEL 5.7 (2.6.18-274.el5xen) --> I need to boot this in EC2

        root (hd0,0)

        kernel /boot/xen.gz-2.6.18-274.el5

        module /boot/vmlinuz-2.6.18-274.el5xen ro root=/dev/sda1 rhgb quiet

        module /boot/initrd-2.6.18-274.el5xen.img

title Oracle Linux Server (2.6.18-274.el5xen)

        root (hd0,0)

        kernel /boot/xen.gz-2.6.18-274.el5

        module /boot/vmlinuz-2.6.18-274.el5xen ro root=LABEL=/ rhgb quiet

        module /boot/initrd-2.6.18-274.el5xen.img

[root@localhost grub]#


Or this to be modified and should look like this?

title OEL 5.7 (2.6.18-274.el5xen)

        root (hd0,0)

        kernel /boot/vmlinuz-2.6.18-274.el5xen ro root=/dev/sda1 rhgb quiet

        initrd /boot/initrd-2.6.18-274.el5xen.img


Any kind of help would be much appreciated. Breaking my heads into pieces even after referring all links but am hitting the same wall(Kernel Panic, Error 15, etc..)



Installing Cent OS 5.5 on EC2 with the Cent OS 5.5 Kernel

Amazon Web Services Blog: VM Import - Bring Your VMware Images to The Cloud

Painful lessons – Porting Centos 5.8 from Virtualbox to Amazon EC2 |

How to convert VMDK virtual hard disks to Amazon Elastic Compute Cloud (EC2) AMI format

Creating an Amazon EC2 EBS AMI from a running instance | Chicken of the Web

Using Oracle VM with Amazon EC2





  • Correct Answers - 10 points
  • Helpful Answers - 5 points