9 Replies Latest reply on Jun 27, 2012 10:23 AM by 945902

    Change Red Hat kernel to UEK kernel

    945902
      Hi,

      I am trying on my Red HAT5.8 to change the kernel to UEK. I followed the steps described in this tutorial: http://docs.oracle.com/cd/E20781_01/html/E20788-01/z40000091017148.html.

      Basically i enabled some variables in the public-yum-el5.repo file and then executed the following commands:
      yum list updates
      yum update

      Both commands give the same output like this one:
      http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/base/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
      Trying other mirror.
      Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol5_UEK_base. Please verify its path and try again

      It seems that something is wrong with the repomd.xml file. I entered the address of this file http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/base/x86_64/repodata/repomd.xml into the browser to investigate the problem. The file contains the locations of the packages/dependencies that needs to be downloaded. One of them is "<location href="repodata/other.xml.gz"/>". If you try to add this location to the whole url: http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/base/x86_64/repodata/repodata/other.xml.gz and insert this into the browser it is not accesible. However if you just remove one of the two "repodata" from the path, it works.

      I guess that the content of the xml file is wrong. Therefore I can not install the kernel packages.

      Have you experiences something like this before?

      Irena.
        • 1. Re: Change Red Hat kernel to UEK kernel
          Dude!
          According to https://linux.oracle.com/switch.html registration to Oracle ULN is a required to perform the switch from RHEL to Oracle Linux.

          Question might be if it is also supported using Oracle Public Yum.
          • 2. Re: Change Red Hat kernel to UEK kernel
            Sergio-Oracle
            What's the output of:
            # yum repolist
            Also, are you sure you can reach public-yum.oracle.com, for example, does this work:
            # wget http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/x86_64/kernel-uek-2.6.32-300.27.1.el5uek.x86_64.rpm
            Sergio
            • 3. Re: Change Red Hat kernel to UEK kernel
              Avi Miller-Oracle
              Dude wrote:
              Question might be if it is also supported using Oracle Public Yum.
              You can switch from RHEL to OL using public-yum, but you must take care to disable all RHN or other Red Hat channels before enabling the public-yum-ol5.repo repositories.
              • 4. Re: Change Red Hat kernel to UEK kernel
                Avi Miller-Oracle
                942899 wrote:
                Basically i enabled some variables in the public-yum-el5.repo file and then executed the following commands:
                It seems that something is wrong with the repomd.xml file. I entered the address of this file http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/base/x86_64/repodata/repomd.xml into the browser to investigate the problem. The file contains the locations of the packages/dependencies that needs to be downloaded. One of them is "<location href="repodata/other.xml.gz"/>". If you try to add this location to the whole url: http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/base/x86_64/repodata/repodata/other.xml.gz and insert this into the browser it is not accesible. However if you just remove one of the two "repodata" from the path, it works.
                The location is based off the baseurl, not the computed path, so the second URL would not have a double repodata.
                • 5. Re: Change Red Hat kernel to UEK kernel
                  Dude!
                  The following should do the trick, at least it does for RHEL 5.7 (x86_64):

                  <pre>
                  # uname -r
                  2.6.18-274.el5

                  # cd /etc/yum.repos.d/
                  # mv rhel-debuginfo.repo rhel-debuginfo.repo.disabled
                  # mv rhel-source.repo rhel-source.repo.disabled
                  # yum remove -y yum-rhn-plugin subscription-manager
                  # \rm redhat.repo

                  # wget http://public-yum.oracle.com/public-yum-el5.repo
                  # yum install -y oracle-linux
                  # yum install -y oracle-logos

                  Wait until you see "Complete!"

                  # shutdown -r now

                  # uname -r
                  2.6.32-300.27.1.el5uek
                  </pre>

                  Good luck!
                  • 6. Re: Change Red Hat kernel to UEK kernel
                    945902
                    Hi,

                    Thanks for your reply. I tried executing your commands.

                    Actually i didn't have these files in yum repo directory: rhel-source.repo, yum-rhn-plugin, redhat.repo so i didn't rename them. This are all the files in yum.repos.d:
                    +[root@dbvrts1113 yum.repos.d]# ls+
                    public-yum-el5.repo  rhel-debuginfo.repo.disabled  swrep_x86_64_rhes5.repo  swrep_x86_64_rhes5.repo.1  swrep_x86_64_rhes5.repo.2

                    By executing the yum install command the error appears again:
                    +[root@dbvrts1113 yum.repos.d]# yum install -y oracle-linux+
                    +http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>+
                    Trying other mirror.
                    Error: Cannot retrieve repository metadata (repomd.xml) for repository: el5_latest. Please verify its path and try again
                    • 7. Re: Change Red Hat kernel to UEK kernel
                      945902
                      Yum repolist gives this output
                      [root@dbvrts1113 yum.repos.d]# yum repolist
                      http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
                      Trying other mirror.
                      repo id repo name status
                      el5_latest Oracle Linux 5Server Latest (x86_64) 0
                      swrep_x86_64_rhes5 CERN SWrep x86_64_rhes5 0
                      repolist: 0

                      Yes i can access the public-yum.oracle.com. The wget command works.
                      • 8. Re: Change Red Hat kernel to UEK kernel
                        945902
                        Hi,

                        Thanks for your reply. I managed to change the kernel by following your commands.

                        Anyways i think the problem was that yum was not configured to use the proxy for downloading from Intrenet. I use proxy on my machine and after adding the http_proxy variable=http://proxymachine:8888 to the yum config file it had no problems.

                        This is the output from uname:
                        uname-ru
                        2.6.32-300.27.1.el5uek
                        • 9. Re: Change Red Hat kernel to UEK kernel
                          945902
                          Hi,

                          Now it works. The problem was that the yum was not configured to go through the proxy that i use on my machine.

                          Adding the variable
                          http_proxy=http://proxymachine:8888 in /etc/yum.conf fixed the problem.

                          Thanks