3 Replies Latest reply: Sep 15, 2013 8:57 AM by karthiksingh_dba RSS

    Steps to import OEL 5.7 ovf into amazon ec2

    karthiksingh_dba

      Dear Legends,

       

      Forum Administrator: Sorry I was noticed the space name correctly. Thanks for reminding me.

       

      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

      config-2.6.18-274.el5xen      System.map-2.6.18-274.el5xen

      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

      #boot=/dev/sda

      default=0

      timeout=5

      splashimage=(hd0,0)/boot/grub/splash.xpm.gz

      hiddenmenu

      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..)

       

      Ref:

      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

      https://forums.aws.amazon.com/thread.jspa?threadID=125180#

      Using Oracle VM with Amazon EC2

       

      Thanks,

      Karthik

        • 1. Re: Steps to import OEL 5.7 ovf into amazon ec2
          karthiksingh_dba

          Again I'm trying with editing as follows

           

          /boot/boot/grub/mmenu.lst

           

           

          default=0

          timeout=5

          #splashimage=(hd0,0)/boot/grub/splash.xpm.gz

          hiddenmenu

          title OEL 5.7 (2.6.18-274.el5xen)

                  root (hd0,0)

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

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

           

          /etc/fstab

          dev/sda1           /                   ext3defaults    1 1
          #LABEL=/             /                   ext3defaults    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               procdefaults    0 0
          • 2. Re: Steps to import OEL 5.7 ovf into amazon ec2
            Dude!

            Here is another thread, perhaps useful:

             

            Oracle Linux AMI on Amazon EC2

            • 3. Re: Steps to import OEL 5.7 ovf into amazon ec2
              karthiksingh_dba

              Thanks Dude For your response. I have been trying for nearly 5months. But I could not attain any success on it.

              So you mean to say that OEL 5.7 is still under testing for AMI?

               

              Because My requirement would be Migrating my Existing SOA/Weblogic Environment to Amazon which is installed in OEL 5.7 64bit.

               

              Thanks,

              Karthik